Hi there
I'm new to LLVM & am trying to build llvm-gcc.
I'm using Ubuntu 10.0.4. on an AMD64 processor.
I've had no problems with building the LLVM suite itself, but during
llvm-gcc compilation I am presented with the following error message - does
anybody happen to know if there is any remedy?
/root/llvm_gcc_source/llvm-gcc-objects/./gcc/xgcc
-B/root/llvm_gcc_source/llvm-gcc-objects/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../trunk/gcc
-I../../trunk/gcc/. -I../../trunk/gcc/../include
-I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber
-I../libdecnumber -I/root/llvm_source/llvm/include -DSHARED -fexceptions -c
../../trunk/gcc/gthr-gnat.c -o libgcc/./gthr-gnat_s.o
/root/llvm_gcc_source/llvm-gcc-objects/./gcc/xgcc
-B/root/llvm_gcc_source/llvm-gcc-objects/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../trunk/gcc
-I../../trunk/gcc/. -I../../trunk/gcc/../include
-I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber
-I../libdecnumber -I/root/llvm_source/llvm/include -DSHARED -fexceptions -c
../../trunk/gcc/unwind-c.c -o libgcc/./unwind-c_s.o
{ nm -pg libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o
libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o
libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o
libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o
libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o
libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o
libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o
libgcc/./_bswapsi2_s.o libgcc/./_bswapdi2_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o
libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o
libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o
libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o
libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o; echo
%%; \
cat ../../trunk/gcc/libgcc-std.ver
../../trunk/gcc/config/i386/libgcc-x86_64-glibc.ver \
| sed -e '/^[ ]*#/d' \
-e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' \
| /root/llvm_gcc_source/llvm-gcc-objects/./gcc/xgcc
-B/root/llvm_gcc_source/llvm-gcc-objects/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../trunk/gcc
-I../../trunk/gcc/. -I../../trunk/gcc/../include
-I../../trunk/gcc/../libcpp/include -I../../trunk/gcc/../libdecnumber
-I../libdecnumber -I/root/llvm_source/llvm/include -E -xassembler-with-cpp
-; \
} | gawk -f ../../trunk/gcc/mkmap-symver.awk > libgcc/./tmp-libgcc.map
mv 'libgcc/./tmp-libgcc.map' libgcc/./libgcc.map
/root/llvm_gcc_source/llvm-gcc-objects/./gcc/xgcc
-B/root/llvm_gcc_source/llvm-gcc-objects/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o
./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o
libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o
libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o
libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o
libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o
libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o
libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o
libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o
libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o
libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o
libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o
libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o
libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o
libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o
libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o
libgcc/./_bswapsi2_s.o libgcc/./_bswapdi2_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o
libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o
libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o
libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o
libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc
&&
rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f
./libgcc_s.so.1
./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp
./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
*** glibc detected *** /usr/bin/ld: munmap_chunk(): invalid pointer:
0x0000000001d39368 ***
======= Backtrace: ========/lib/libc.so.6(+0x775b6)[0x2b9876d7f5b6]
/usr/lib/libbfd-2.20.1-system.20100303.so(_bfd_elf_discard_section_eh_frame+0x3ee)[0x2b987667c5fe]
/usr/lib/libbfd-2.20.1-system.20100303.so(bfd_elf_discard_info+0x2ed)[0x2b98766702cd]
/usr/bin/ld[0x41fc5c]
/usr/bin/ld[0x413abd]
/usr/bin/ld[0x418306]
/lib/libc.so.6(__libc_start_main+0xfd)[0x2b9876d26c4d]
/usr/bin/ld[0x404269]
======= Memory map: =======00400000-00487000 r-xp 00000000 08:01 1316016
/usr/bin/ld.bfd
00686000-00687000 r--p 00086000 08:01 1316016
/usr/bin/ld.bfd
00687000-00688000 rw-p 00087000 08:01 1316016
/usr/bin/ld.bfd
00688000-0068a000 rw-p 00000000 00:00 0
0174d000-01e28000 rw-p 00000000 00:00 0
[heap]
2b98763e4000-2b9876404000 r-xp 00000000 08:01 1046555
/lib/ld-2.11.1.so
2b9876404000-2b9876452000 rw-p 00000000 00:00 0
2b9876603000-2b9876604000 r--p 0001f000 08:01 1046555
/lib/ld-2.11.1.so
2b9876604000-2b9876605000 rw-p 00020000 08:01 1046555
/lib/ld-2.11.1.so
2b9876605000-2b9876606000 rw-p 00000000 00:00 0
2b9876606000-2b98766d7000 r-xp 00000000 08:01 1308238
/usr/lib/libbfd-2.20.1-system.20100303.so
2b98766d7000-2b98768d7000 ---p 000d1000 08:01 1308238
/usr/lib/libbfd-2.20.1-system.20100303.so
2b98768d7000-2b98768e5000 r--p 000d1000 08:01 1308238
/usr/lib/libbfd-2.20.1-system.20100303.so
2b98768e5000-2b98768e8000 rw-p 000df000 08:01 1308238
/usr/lib/libbfd-2.20.1-system.20100303.so
2b98768e8000-2b98768ec000 rw-p 00000000 00:00 0
2b98768ec000-2b98768ee000 r-xp 00000000 08:01 1046657
/lib/libdl-2.11.1.so
2b98768ee000-2b9876aee000 ---p 00002000 08:01 1046657
/lib/libdl-2.11.1.so
2b9876aee000-2b9876aef000 r--p 00002000 08:01 1046657
/lib/libdl-2.11.1.so
2b9876aef000-2b9876af0000 rw-p 00003000 08:01 1046657
/lib/libdl-2.11.1.so
2b9876af0000-2b9876af1000 rw-p 00000000 00:00 0
2b9876af1000-2b9876b07000 r-xp 00000000 08:01 1046967
/lib/libz.so.1.2.3.3
2b9876b07000-2b9876d06000 ---p 00016000 08:01 1046967
/lib/libz.so.1.2.3.3
2b9876d06000-2b9876d07000 r--p 00015000 08:01 1046967
/lib/libz.so.1.2.3.3
2b9876d07000-2b9876d08000 rw-p 00016000 08:01 1046967
/lib/libz.so.1.2.3.3
2b9876d08000-2b9876e82000 r-xp 00000000 08:01 1046641
/lib/libc-2.11.1.so
2b9876e82000-2b9877081000 ---p 0017a000 08:01 1046641
/lib/libc-2.11.1.so
2b9877081000-2b9877085000 r--p 00179000 08:01 1046641
/lib/libc-2.11.1.so
2b9877085000-2b9877086000 rw-p 0017d000 08:01 1046641
/lib/libc-2.11.1.so
2b9877086000-2b987708d000 rw-p 00000000 00:00 0
2b987708d000-2b98770a3000 r-xp 00000000 08:01 1046852
/lib/libgcc_s.so.1
2b98770a3000-2b98772a2000 ---p 00016000 08:01 1046852
/lib/libgcc_s.so.1
2b98772a2000-2b98772a3000 r--p 00015000 08:01 1046852
/lib/libgcc_s.so.1
2b98772a3000-2b98772a4000 rw-p 00016000 08:01 1046852
/lib/libgcc_s.so.1
7fffcf3b1000-7fffcf3c8000 rw-p 00000000 00:00 0
[stack]
7fffcf3ff000-7fffcf400000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
collect2: ld terminated with signal 6 [Aborted]
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/root/llvm_gcc_source/llvm-gcc-objects/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/root/llvm_gcc_source/llvm-gcc-objects/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/root/llvm_gcc_source/llvm-gcc-objects'
make: *** [all] Error 2
Thanks,
Andrew.
--
View this message in context:
http://old.nabble.com/Build-problems-with-llvm-gcc-tp30971814p30971814.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.