[tree-ssa, cvs] spec failure: unrecognized spec option'<'

Melvin Hadasht melvin.hadasht@free.fr
Sun Nov 9 21:25:00 GMT 2003


Hi,

I did some more tests:
Configuring with --enable-languages=c (without c++ or f95), and doing
a make (no bootstrap) compiles correctly (but the specs did have the bug).
 I'm currently doing a bootstrap to test. (I'm still using tree-ssa from
cvs 2003-11-07 13:20 UTC)

>>Reading specs from ./specs
>>Configured with:
>>/usr/local/src/cvs/gcc-3.3.2/>configure 
>>Thread model: posix
>>gcc driver version 3.3.2 executing gcc version
>>3.5-tree-ssa

>See this is what's weird, and symptomatic of a broken
>installation. For some reason, your 3.3.2 driver is
>running the 3.5 compiler. 

Yes, it reads the ./specs it has found. According to the command line
that triggered the error (file attached in my original post), I don't see
why it reads the specs from the current directory.

Testing just gcc -v in a directory containing an empty specs shows
that gcc (3.3.2) reads the specs from that file. So it seems that gcc 
searches for the specs in the current directory first. Is this expected? 
If yes, then that would explain the above. And 3.3.2 being more
strict in reading the specs, it will also explain why I have the error.
So I assume you do not use 3.3.2 to compile tree-ssa?

>I'm guessing the 3.3.x
>driver is less forgiving about spec file typos,
>hence...


>>gcc: spec failure: unrecognized spec option '<'

>If you go to the prefix where you installed 3.3.x, and
>do a find on cc1, what do you get? 
cd /usr/local
find -name 'cc1'
./lib/gcc-lib/i686-pc-linux-gnu/2.95.4/cc1
./lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1

>More importantly,
>if you run that cc1, what version does it say it is?
>Also, what is you $PATH?

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/cc1 --version
GNU C version 3.3.2 (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15861


which gcc
/usr/local/bin/gcc

/usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: /hannibal/src/cvs/gcc-3.3.2/configure 
Thread model: posix
gcc version 3.3.2

echo $PATH
/usr/local/qt/bin:/home/mhadasht/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/local/nmh/bin:/usr/games/bin:/usr/games:.:/usr/local/teTeX/bin:/usr/local/MuPAD20/share/bin:/usr/local/mysql/bin

> You can certainly file a bug report, mentioning the
> typo in specs, and give the particulars. The other
> error your seeing is more likely part of a screwed up
> installation (could also be a bug...). 

Ok, I'll do some other tests and I'll file a bug report.

> If you want to find what's causing the bug, you can
> try to figure out what makefile rule generates
> gcc/specs (in your build directory), and so figuree
> out where the original typo comes from.

I'll try that.

>  I'll also take
> a look this afternoon and see what I can come up
> with...

Ok, thanks for you help.

Cheers,

Melvin

> P.S. Please cc: replies, since I'm not subscribed to gcc-help@...
Sorry. Done!



More information about the Gcc-help mailing list