[mercury-users] Re: Problem building on Mac OS X / Xcode 4 / clang

Sean Johnson sean at snootymonkey.com
Tue May 22 19:36:33 AEST 2012


Julien and all,

	Building without a parallel build did fix the problem with transform_hlds.ctgc.structure_reuse.indirect.int3 not being found. Do you know why that is?

	Without parallel, the make completed. The make install then failed with:

/Users/sean/build/mercury-compiler-11.07.1/install_grade_dir.hlc.par.gc/scripts/mgnuc --grade hlc.par.gc      --c-debug --no-ansi   --       -c mercury.c -o mercury.o
/Users/sean/build/mercury-compiler-11.07.1/install_grade_dir.hlc.par.gc/scripts/mgnuc --grade hlc.par.gc      --c-debug --no-ansi   --       -c mercury_accurate_gc.c -o mercury_accurate_gc.o
In file included from mercury_accurate_gc.c:42:
In file included from ./mercury_imp.h:62:
./mercury_engine.h:465:12: error: thread-local storage is unsupported for the current target
    extern __thread MercuryEngine *MR_thread_engine_base;
           ^
1 error generated.
make[2]: *** [mercury_accurate_gc.o] Error 1
To clean up from failed install, remove /Users/sean/build/mercury-compiler-11.07.1/install_grade_dir.hlc.par.gc
make[1]: *** [install_grades] Error 1
make: *** [install] Error 2

	The full history of the configure and build is here:

https://raw.github.com/gist/ae562ad7a8ad1dbe2943/2763a58434e3721572c8d404b96d4ac82aa521b4/gistfile1.txt

	As a reminder, I have a bootstrapped Mercury 11.07.1 built with:

./configure --with-cc=clang --disable-most-grades

	And now I'm trying to build a more complete Mercury with:

./configure --with-cc=clang --enable-erlang-grade --enable-java-grade

	Any more suggestions are greatly appreciated!

Cheers,
Sean


>> 
>> 
>> 	I can try it w/o parallel build if that's the suggestion.
>> 
> 
> Yes, please do.
> 
> Cheers,
> Julien.
> --------------------------------------------------------------------------
> 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
> --------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20120522/6c324cce/attachment.html>


More information about the users mailing list