[mercury-users] Build Mercury 11.01

Denis Kononenko deniskononenko at gmail.com
Tue Sep 20 12:09:58 AEST 2011


I solve problem :)

for default:

ls -l /usr/bin/gcc
lrwxr-xr-x  1 root  wheel  12 19 сен 06:32 /usr/bin/gcc -> llvm-gcc-4.2

llvm-gcc-4.2 --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Need:
gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

solve:
./configure CC=gcc-4.2

Profit





19.09.2011, в 22:33, Julien Fischer написал(а):

> Hi,
> 
> On Mon, 19 Sep 2011, Denis Kononenko wrote:
> 
>> I have a new problem:
>> I want rebuild Mercury.
>> 
>> tar -xzf mercury-11.01.tar.gz
>> cd mercury-11.01
>> ./configure
>> make
>> 
>> atomic_ops/sysdeps/gcc/x86_64.h: In function AO_test_and_set_full:
>> atomic_ops/sysdeps/gcc/x86_64.h:120: error: unsupported inline asm: input constraint with a matching output constraint of incompatible type!
>> make[6]: *** [atomic_ops.o] Error 1
>> make[5]: *** [install-recursive] Error 1
>> make[4]: *** [install-recursive] Error 1
>> make[3]: *** [libatomic_ops-install] Error 2
>> make[2]: *** [submake] Error 2
>> make[1]: *** [boehm_gc] Error 2
>> make: *** [all] Error 2
>> ------------------------------------------------------------
>> 
>> gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> You cannot use llvm-gcc to build Mercury, you will need to use normal
> gcc.  (With the 11.07-beta release you could use clang instead of gcc.)
> 
> 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
> --------------------------------------------------------------------------


--------------------------------------------------------------------------
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