[mercury-users] Compilation Error

jiri divis jiridivis at gmail.com
Thu Jul 30 09:41:50 AEST 2009


Hello, could anyone help me with this:

I am trying to compile mercury 0.13.1 with deep profiling enabled an I
keep getting the error I attached to the end of this message.

I also tried versions rotd-2007-08-13 and rotd-2008-10-31, which work
fine. Unfortunately I need the version 0.13.1 or something really
close, because I have made some program that uses code from Mercury
Compiler of that version. I have tried to compile the program with
rotd-2007-08-13 sources, but I got some errors.

Perhaps my problem would be solved If could get somewhere some earlier
rotd than rotd-2007-08-13. Could anyone tell me where I can get it?


Thank you,
Jiri Divis

--------------
The error that occurs while running make install:
/mnt/raid1-1/home/mmctst/2checkout/reduktor/mercury/tmp_dir/scripts/mgnuc
--grade asm_fast.gc.profdeep        --       -c exception.c -o
exception.o
exception.m:1972: error: static declaration of
‘mercury_data__proc_layout__mercury__exception__builtin_throw_1_0’
follows non-static declaration
exception.c:2657: error: previous declaration of
‘mercury_data__proc_layout__mercury__exception__builtin_throw_1_0’ was
here
gmake[3]: *** [exception.o] Error 1
gmake[3]: Leaving directory
`/mnt/raid1-1/home/mmctst/2checkout/reduktor/mercury/tmp_dir/library'


I have following gcc version:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib
--disable-checking --disable-werror --enable-secureplt
--disable-libunwind-exceptions --disable-multilib --enable-libmudflap
--disable-libssp --enable-java-awt=gtk --enable-objc-gc
--enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2)

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