This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: libgccjit.so build fails with ISL enabled
- From: Prathamesh Kulkarni <prathamesh dot kulkarni at linaro dot org>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: David Malcolm <dmalcolm at redhat dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 12 Jan 2015 16:12:38 +0530
- Subject: Re: libgccjit.so build fails with ISL enabled
- Authentication-results: sourceware.org; auth=none
- References: <CAAgBjMn+3p1Ow4eO6mchac6cSkEPDn5VoeXLqb6883bkfwqtVw at mail dot gmail dot com> <CAH6eHdRfF7kGh6noK4iWZMPeGUQKD28TGfr9rsx+H_a+tYZQrg at mail dot gmail dot com> <CAAgBjMmOjFwTEF4EgZbXzasM6Avww4rmsZ1i17=qGR7vDCbKmw at mail dot gmail dot com>
On 12 January 2015 at 15:56, Prathamesh Kulkarni
<prathamesh.kulkarni@linaro.org> wrote:
> On 12 January 2015 at 15:51, Jonathan Wakely <jwakely.gcc@gmail.com> 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