On 12 January 2015 at 15:56, Prathamesh Kulkarni <prathamesh.kulkarni@xxxxxxxxxx> wrote: > On 12 January 2015 at 15:51, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: >> On 11 January 2015 at 23:44, Prathamesh Kulkarni wrote: >>> Hi David, >>> I tried to build gcc trunk on x86_64-unknown-linux-gnu with ISL enabled, >>> Configured with --enable-languages=all,go,ada,jit --enable-host-shared >>> and got following error messages: >>> /usr/bin/ld: /home/prathamesh.kulkarni/gnu-toolchain/flatten-cfgloop/build/./isl/.libs/libisl.a(isl_val_gmp.o): >>> relocation R_X86_64_32 against `.rodata.str1.1' can not be used when >>> making a shared object; recompile with -fPIC >>> /home/prathamesh.kulkarni/gnu-toolchain/flatten-cfgloop/build/./isl/.libs/libisl.a: >>> could not read symbols: Bad value >>> collect2: error: ld returned 1 exit status >>> make[3]: *** [libgccjit.so.0.0.1] Error 1 >>> make[3]: *** Waiting for unfinished jobs.... >>> make[2]: *** [all-stage2-gcc] Error 2 >>> make[1]: *** [stage2-bubble] Error 2 >>> make: *** [all] Error 2 >>> >>> I rebuilt leaving jit and the build succeeded. Am I building jit incorrectly ? >> >> You need --enable-host-shared > I had passed --enable-host-shared to configure. > I configured gcc as: > ../gcc/configure --enable-languages=all,go,ada,jit --enable-host-shared The jit builds fine without ISL enabled. Thanks, Prathamesh > > Thanks, > Prathamesh