[mercury-users] Compiling on FreeBSD 8.1 (amd64)
Nicolas Pelletier
sxatrxtfxcrwamvjkaga at gmail.com
Thu Oct 28 16:15:19 AEDT 2010
Hello,
I am trying to compile Mercury (rotd from october 25th) on FreeBSD 8.1
(amd64). The compilation (make step) fails with the following
messages:
<excerpt>
sform_hlds.term_pass1.o transform_hlds.term_pass2.o
transform_hlds.term_traversal.o transform_hlds.term_util.o
transform_hlds.termination.o transform_hlds.trailing_analysis.o
transform_hlds.trans_opt.o transform_hlds.transform.o
transform_hlds.tupling.o transform_hlds.unneeded_code.o
transform_hlds.untupling.o transform_hlds.unused_args.o \
../main.o ../trace/libmer_eventspec.a ../trace/libmer_trace.a
../trace/libmer_eventspec.a ../ssdb/libmer_ssdb.a
../browser/libmer_browser.a ../mdbcomp/libmer_mdbcomp.a
../library/libmer_std.a ../runtime/libmer_rt.a ../boehm_gc/libgc.a
make.util.o(.text+0x6a5c): In function `<predicate
'make:util.create_job_ctl'/4 mode 0>':
: undefined reference to `pthread_mutexattr_setpshared'
gmake[1]: *** [top_level] Error 1
gmake[1]: Leaving directory
`/home/nicolas/dev/mercury-compiler-rotd-2010-10-25/compiler'
gmake: *** [compiler] Error 2
*** Error code 2
Stop in /home/nicolas/dev/mercury-compiler-rotd-2010-10-25.
</excerpt>
I tried setting LDFLAGS='-lpthread', then 'make clean distclean &&
./configure && make', but got the same result.
I also tried make clean distclean && ./configure LIBS=-lpthread &&
make, but got the same result.
It seems Mercury only supports static linking on FreeBSD, so I made
sure I have a /usr/lib/libpthread.a.
I then tried compiling the latest stable version of Mercury (10.04.2),
and again got the same results.
The web site reports that Mercury could be compiled on FreeBSD, back
in the days of FreeBSD 3.0, and the mailing list archives contain a
few messages about the problems that occured at that time. Nothing
seemed to be relevant to my case.
So I am wondering:
- has support for FreeBSD been dropped some time ago ?
- did someone successfully compile Mercury on a recent version of FreeBSD ?
- is this a known issue ?
- am I doing something wrong or stupid ?
I would be thankful for any hints.
Regards,
--
Nicolas
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list