glibc compiling problems.

Everett Simonds/AUS/Lotus Everett_Simonds at
Thu Nov 1 16:08:31 PST 2001

When I was attempting to setup glibc for the first time I get a fair
way through the compile when it spits the following error out at me:

make  -C synrpc others
make[2]: Entering directory `/usr/src/glibc-2.2.4/sunrpc'
/usr/src/glibc-build/elf/ --libary-path
/user/src/glibc-build/sunrpc/rpcgen -Y`gcc
-print-file-name=cpp | sed 's|/spp$||'` -c rpcsvc/bootparam_prot.x -o
cannot find C preprocessor: cpp/cpp
/usr/src/glibc-build/sunrpc/rpcgen: C preprocessor failed with exit code 1
make[2]: *** [/usr/src/glibc-build/sunrpc/xbootparam_prt.stmp] Error 1
make[2]: Leaving directory `/usr/src/glibc-2.2.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/usr/src/glibc-2.2.4'
make: *** [all] Error 2

Now at first glance I thought that I might have messed up on the
gcc compile, and it's having a problem compiling C++ programs.

However, the following does work:

cd /tmp
cat > test.cpp << "EOF"
/* Use some C++ stuff to be sure we're
 * compiling C++ code and not C code.
class foo { foo(void) { } virtual ~foo(void) { } };

int main(void)
    foo bar;
    return 0;
gcc test.cpp -c

Now attempting to link fails naturally enough, there's no glibc yet.

Any thoughts?

Everett "Bryce" Simonds

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list