Re: fatal error: ppl_c.h: No such file or directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>The error that caused configure to fail is the "cannot compute suffix
>of object files"
>You didn't read http://gcc.gnu.org/wiki/FAQ#configure_suffix carefully
>- that FAQ answer tells you which config.log to look in, and tells you
>the most common cause of the error
 
I read it again. I want to do step by step to understand what is going on. I 
went to the mentioned folder and opened the config.log. The error is:

Configured with: ../gcc-4.6.0/configure --prefix=/usr
Thread model: posix
gcc version 4.6.0 (GCC) 
configure:3039: $? = 0
configure:3028: /opt/gcc4.6build/./gcc/xgcc -B/opt/gcc4.6build/./gcc/ 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include    -V 
>&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /opt/gcc4.6build/./gcc/xgcc -B/opt/gcc4.6build/./gcc/ 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include    
-qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /opt/gcc4.6build/./gcc/xgcc -B/opt/gcc4.6build/./gcc/ 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include    -o 
conftest -g -O2   conftest.c  >&5
/opt/gcc4.6build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: 
cannot open shared object file: No such file or directory
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /opt/gcc4.6build/./gcc/xgcc -B/opt/gcc4.6build/./gcc/ 
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem 
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include    -c 
-g -O2  conftest.c >&5
/opt/gcc4.6build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: 
cannot open shared object file: No such file or directory
configure:3272: $? = 1

It complains about libmpc.so.2 however I have this file since I installed MPC 
from source:
root@pc:/opt/gcc4.6build# find /usr/ -name "*libmpc*"
/usr/share/doc/libmpcdec6
/usr/lib/libmpcdec.so.6
/usr/lib/libmpcdec.so.6.1.0
/usr/local/lib/libmpc.so.2.0.0
/usr/local/lib/libmpc.a
/usr/local/lib/libmpc.so
/usr/local/lib/libmpc.la
/usr/local/lib/libmpc.so.2

root@pc:/opt/gcc4.6build# ls -l /usr/local/lib/libmpc.*
-rw-r--r-- 1 root root 147256 2011-03-31 12:37 /usr/local/lib/libmpc.a
-rwxr-xr-x 1 root root    946 2011-03-31 12:37 /usr/local/lib/libmpc.la
lrwxrwxrwx 1 root root     15 2011-03-31 12:37 /usr/local/lib/libmpc.so -> 
libmpc.so.2.0.0
lrwxrwxrwx 1 root root     15 2011-03-31 12:37 /usr/local/lib/libmpc.so.2 -> 
libmpc.so.2.0.0
-rwxr-xr-x 1 root root  89558 2011-03-31 12:37 /usr/local/lib/libmpc.so.2.0.0

As you can see in the config.log, I configured the gcc to install in /usr. What 
should I do in order to tell gcc where is libmpc.so.2 ?

regards,
// Naderan *Mahmood;



----- Original Message ----
From: Jonathan Wakely <jwakely.gcc@xxxxxxxxx>
To: Mahmood Naderan <nt_mahmood@xxxxxxxxx>
Cc: gcc <gcc-help@xxxxxxxxxxx>
Sent: Thu, March 31, 2011 5:50:59 PM
Subject: Re: fatal error: ppl_c.h: No such file or directory

On 31 March 2011 13:12, Mahmood Naderan wrote:
>>You don't need it, PPL is optional so it's not a problem if you don't have it
>>It will download and configure everything for you.
>
> I will prefer to skip that library if it is optional.
>
>>See http://gcc.gnu.org/wiki/FAQ#configure_suffix for the actual failure
>
> I saw that but didn't find how to disable cuh libraries. is it --without-ppl 
??

I think you have misunderstood.  To skip PPL you do not need to do
anything. If you don't have it then it will be skipped.

The configure command did not fail because it can't find PPL.
There are lots of "errors" in config.log but usually don't matter.
That's how configure works, it tries things and sees if it gets an
error. So forget about PPL.

The error that caused configure to fail is the "cannot compute suffix
of object files"
You didn't read http://gcc.gnu.org/wiki/FAQ#configure_suffix carefully
- that FAQ answer tells you which config.log to look in, and tells you
the most common cause of the error.

But if you use my config-gcc.mk then you won't get that error, and it
will skip PPL, and it will just work.  If you're not going to read the
documentation properly, please just use that makefile and save a lot
of wasted time.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux