Problem while building GCC 4.6.0 with Graphite enabled

248 views
Skip to first unread message

Wei-Jen Chen

unread,
Jun 12, 2011, 10:08:16 AM6/12/11
to GCC GRAPHITE
Hi, all

I have a trouble with building GCC 4.6.0 with Graphite enabled. Here
is my flow,

Step 1. Install PPL 0.11.2

Step 2. Install CLooG 0.16.2

Step 3. Build GCC 4.6.0 with Graphite enabled

./configure --enable-cloog-backend=isl \
--with-ppl=/tmp/chenwj/install/ \
--with-cloog=/tmp/chenwj/install/

But the compilation was failed while building libgcc, here is the
error:
---------------------------------------------------------------------------------------------------------------------------------------
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-lipo... lipo
checking for x86_64-unknown-linux-gnu-nm... /tmp/chenwj/build/./gcc/nm
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /tmp/chenwj/build/./gcc/
xgcc -B/tmp/chenwj/build/./gcc/ -B/tmp/chenwj/install/x86_64-unknown-
linux-gnu/bin/ -B/tmp/chenwj/install/x86_64-unknown-linux-gnu/lib/ -
isystem /tmp/chenwj/install/x86_64-unknown-linux-gnu/include -isystem /
tmp/chenwj/install/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/tmp/
chenwj/build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot
compile
---------------------------------------------------------------------------------------------------------------------------------------

Do I miss something? Thanks!

Regards,
chenwj

Tobias Grosser

unread,
Jun 21, 2011, 1:09:14 PM6/21/11
to Wei-Jen Chen, GCC GRAPHITE

Can you send the corresponding config.log file?

Tobias

陳韋任

unread,
Jun 21, 2011, 10:27:56 PM6/21/11
to Tobias Grosser, GCC GRAPHITE
Hi, Tobias

> Can you send the corresponding config.log file?

Attach is libgcc's config.log. Thanks.

Regards,
chenwj

--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667

config.log

Tobias Grosser

unread,
Jun 21, 2011, 10:31:41 PM6/21/11
to 陳韋任, GCC GRAPHITE
On 06/21/2011 11:27 PM, 陳韋任 wrote:
> Hi, Tobias
>
>> Can you send the corresponding config.log file?
>
> Attach is libgcc's config.log. Thanks.


The error is:

configure:3268: /tmp/chenwj/build/./gcc/xgcc -B/tmp/chenwj/build/./gcc/
-B/tmp/chenwj/install/x86_64-unknown-linux-gnu/bin/
-B/tmp/chenwj/install/x86_64-unknown-linux-gnu/lib/ -isystem
/tmp/chenwj/install/x86_64-unknown-linux-gnu/include -isystem
/tmp/chenwj/install/x86_64-unknown-linux-gnu/sys-include -c -g -O2
conftest.c >&5
/tmp/chenwj/build/./gcc/cc1: error while loading shared libraries:
libcloog-isl.so.1: cannot open shared object file: No such file or directory
configure:3272: $? = 1

Most probably you did not install cloog into the default system path
such that the libcloog-isl.so.1 cannot be loaded. I propose to use:

export LD_LIBRARY_PATH=/path/to/cloog/lib:/path/to/isl/lib

Hope this helps
Tobias

陳韋任

unread,
Jun 21, 2011, 11:25:14 PM6/21/11
to Tobias Grosser, 陳韋任, GCC GRAPHITE
> configure:3268: /tmp/chenwj/build/./gcc/xgcc -B/tmp/chenwj/build/./gcc/
> -B/tmp/chenwj/install/x86_64-unknown-linux-gnu/bin/
> -B/tmp/chenwj/install/x86_64-unknown-linux-gnu/lib/ -isystem
> /tmp/chenwj/install/x86_64-unknown-linux-gnu/include -isystem
> /tmp/chenwj/install/x86_64-unknown-linux-gnu/sys-include -c -g -O2
> conftest.c >&5
> /tmp/chenwj/build/./gcc/cc1: error while loading shared libraries:
> libcloog-isl.so.1: cannot open shared object file: No such file or directory
> configure:3272: $? = 1
>
> Most probably you did not install cloog into the default system path
> such that the libcloog-isl.so.1 cannot be loaded. I propose to use:
>
> export LD_LIBRARY_PATH=/path/to/cloog/lib:/path/to/isl/lib

Thanks, Tobias. That really helps.

And this might off the topic. Are you running the LLVM Polly project?
I am interested in this project. :-)

Tobias Grosser

unread,
Jun 22, 2011, 2:17:30 PM6/22/11
to 陳韋任, GCC GRAPHITE
On 06/21/2011 11:25 PM, 陳韋任 wrote:
>> configure:3268: /tmp/chenwj/build/./gcc/xgcc -B/tmp/chenwj/build/./gcc/
>> -B/tmp/chenwj/install/x86_64-unknown-linux-gnu/bin/
>> -B/tmp/chenwj/install/x86_64-unknown-linux-gnu/lib/ -isystem
>> /tmp/chenwj/install/x86_64-unknown-linux-gnu/include -isystem
>> /tmp/chenwj/install/x86_64-unknown-linux-gnu/sys-include -c -g -O2
>> conftest.c>&5
>> /tmp/chenwj/build/./gcc/cc1: error while loading shared libraries:
>> libcloog-isl.so.1: cannot open shared object file: No such file or directory
>> configure:3272: $? = 1
>>
>> Most probably you did not install cloog into the default system path
>> such that the libcloog-isl.so.1 cannot be loaded. I propose to use:
>>
>> export LD_LIBRARY_PATH=/path/to/cloog/lib:/path/to/isl/lib
>
> Thanks, Tobias. That really helps.

Good. Let me know if you need further help with Graphite.

> And this might off the topic. Are you running the LLVM Polly project?
> I am interested in this project. :-)

I am also contributing to Polly. But as you already stated this is off
topic on this mailing list. Please use the Polly website [1] or the
mailing list referenced on the website to get in touch. We will be happy
to help you with any questions or guide you if you plan to contribute.

Cheers
Tobi

[1] http://polly.grosser.es

Reply all
Reply to author
Forward
0 new messages