Clean build with JIT fails at stage 2.

Ed Smith-Rowland 3dw4rd@verizon.net
Mon Dec 15 17:00:00 GMT 2014


I wanted to try out gcc-jit on my x86_64-linux box:
I started with a completely empty build directory.
Configure;
ed@bad-horse:~/obj$ ../gcc/configure --prefix=/home/ed/bin --enable-lto 
--enable-languages=c,c++,fortran,go,jit,lto,objc,obj-c++

Let me know if there is some other configuration product I should attach.

The build stops in stage 2 with:
make[3]: Entering directory '/home/ed/obj/gcc'
/home/ed/obj/./prev-gcc/xg++ -B/home/ed/obj/./prev-gcc/ 
-B/home/ed/bin/x86_64-unknown-linux-gnu/bin/ -nostdinc++ 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu 
-I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include 
-I/home/ed/gcc/libstdc++-v3/libsupc++ 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c  
-DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror 
-fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. 
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I/home/ed/obj/./gmp -I/home/ed/gcc/gmp -I/home/ed/obj/./mpfr/src 
-I/home/ed/gcc/mpfr/src -I/home/ed/gcc/mpc/src  
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid 
-I../libdecnumber -I../../gcc/gcc/../libbacktrace 
-I/home/ed/obj/./isl/include -I/home/ed/gcc/isl/include  -o 
cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo 
cc1-checksum.c
/home/ed/obj/./prev-gcc/xg++ -B/home/ed/obj/./prev-gcc/ 
-B/home/ed/bin/x86_64-unknown-linux-gnu/bin/ -nostdinc++ 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu 
-I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include 
-I/home/ed/gcc/libstdc++-v3/libsupc++ 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c  
-DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror 
-fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. 
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I/home/ed/obj/./gmp -I/home/ed/gcc/gmp -I/home/ed/obj/./mpfr/src 
-I/home/ed/gcc/mpfr/src -I/home/ed/gcc/mpc/src  
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid 
-I../libdecnumber -I../../gcc/gcc/../libbacktrace 
-I/home/ed/obj/./isl/include -I/home/ed/gcc/isl/include  -o 
cc1plus-checksum.o -MT cc1plus-checksum.o -MMD -MP -MF 
./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
/home/ed/obj/./prev-gcc/xg++ -B/home/ed/obj/./prev-gcc/ 
-B/home/ed/bin/x86_64-unknown-linux-gnu/bin/ -nostdinc++ 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu 
-I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include 
-I/home/ed/gcc/libstdc++-v3/libsupc++ 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -g 
-O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror 
-fno-common  -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc  -o 
libgccjit.so.0.0.1 -shared \
      attribs.o jit/dummy-frontend.o jit/libgccjit.o jit/jit-recording.o 
jit/jit-playback.o jit/jit-result.o jit/jit-tempdir.o jit/jit-builtins.o 
libbackend.a libcommon-target.a libcommon.a \
      ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a 
../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a 
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a 
-L/home/ed/obj/./isl/.libs  -lisl -L/home/ed/obj/./gmp/.libs 
-L/home/ed/obj/./mpfr/src/.libs -L/home/ed/obj/./mpc/src/.libs -lmpc 
-lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz \
      -Wl,--version-script=../../gcc/gcc/jit/libgccjit.map \
      -Wl,-soname,libgccjit.so.0
/home/ed/obj/./prev-gcc/xg++ -B/home/ed/obj/./prev-gcc/ 
-B/home/ed/bin/x86_64-unknown-linux-gnu/bin/ -nostdinc++ 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-B/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu 
-I/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include 
-I/home/ed/gcc/libstdc++-v3/libsupc++ 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs 
-L/home/ed/obj/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -c  
-DIN_GCC_FRONTEND -g -O2 -gtoggle -DIN_GCC    -fno-exceptions -fno-rtti 
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings 
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic 
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror 
-fno-common  -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. 
-I../../gcc/gcc/../include -I../../gcc/gcc/../libcpp/include 
-I/home/ed/obj/./gmp -I/home/ed/gcc/gmp -I/home/ed/obj/./mpfr/src 
-I/home/ed/gcc/mpfr/src -I/home/ed/gcc/mpc/src  
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid 
-I../libdecnumber -I../../gcc/gcc/../libbacktrace 
-I/home/ed/obj/./isl/include -I/home/ed/gcc/isl/include  -o 
cc1obj-checksum.o -MT cc1obj-checksum.o -MMD -MP -MF 
./.deps/cc1obj-checksum.TPo cc1obj-checksum.c
/usr/bin/ld: attribs.o: relocation R_X86_64_32 against `.rodata' can not 
be used when making a shared object; recompile with -fPIC
attribs.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
../../gcc/gcc/jit/Make-lang.in:80: recipe for target 
'libgccjit.so.0.0.1' failed
make[3]: *** [libgccjit.so.0.0.1] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/ed/obj/gcc'
Makefile:4377: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/ed/obj'
Makefile:24781: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/ed/obj'
Makefile:902: recipe for target 'all' failed
make: *** [all] Error 2



More information about the Gcc-help mailing list