Skip to contentSkip to conversation

gcc -print-file-name=cpp

parisc-linux Matthew Wilcox 2 participants 6 messages Apr 23, 2001

lore
Share & tools
lore
#0 lore raw

Our gcc prints `cpp' when invoked as gcc -print-file-name=cpp. Every other gcc in the world seems to output something along the lines of /usr/lib/gcc-lib/i386-linux/2.95.2/cpp. This includes other gcc 3.0 and 3.1 versions. Would someone care to track this down? This bug currently requires a patch to glibc in order to get glibc to build, and Ulrich rightly refuses to apply this patch to glibc CVS.

Signature · 1 line
Revolutions do not require corporate support.
#1 lore raw
Quoted 6 lines

Our gcc prints `cpp' when invoked as gcc -print-file-name=cpp. Every other gcc in the world seems to output something along the lines of /usr/lib/gcc-lib/i386-linux/2.95.2/cpp. This includes other gcc 3.0 and 3.1 versions. Would someone care to track this down? This bug currently requires a patch to glibc in order to get glibc to build, and Ulrich rightly refuses to apply this patch to glibc CVS.

Is there a library file with the name `cpp' on your system? In gcc 3.0, the preprocessor is builtin, although there is a standalone processor cpp0.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)
#2 lore raw
Quoted 1 line · John David Anglin

Is there a library file with the name `cpp' on your system?

There's /lib/cpp and /usr/bin/cpp which are both symlinks to /usr/bin/cpp-3.0. There's also /usr/lib/gcc-lib/hppa-linux/3.0/tradcpp0 and /usr/lib/gcc-lib/hppa-linux/3.0/cpp0, neither of which are links to anything.

Signature · 1 line
Revolutions do not require corporate support.
#3 lore raw
Quoted 7 lines · John David Anglin
Quoted 1 line

Is there a library file with the name `cpp' on your system?

There's /lib/cpp and /usr/bin/cpp which are both symlinks to /usr/bin/cpp-3.0. There's also /usr/lib/gcc-lib/hppa-linux/3.0/tradcpp0 and /usr/lib/gcc-lib/hppa-linux/3.0/cpp0, neither of which are links to anything.

Try `gcc -print-search-dirs' and see if for some strange reason /lib isn't in the library search path.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)
#4 lore raw
Quoted 2 lines · John David Anglin

Try `gcc -print-search-dirs' and see if for some strange reason /lib isn't in the library search path.

/lib is indeed in the library search path, although not the programs.

Signature · 1 line
Revolutions do not require corporate support.
#5 lore raw
Quoted 5 lines · John David Anglin
Quoted 2 lines

Try `gcc -print-search-dirs' and see if for some strange reason /lib isn't in the library search path.

/lib is indeed in the library search path, although not the programs.

Looks like it's time to fire up the debugger.

Dave

Signature · 2 lines
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)