This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/13331] New: Bootstrap failure while linking libstdc++.so: undefined reference to phtread symbols


I'm seeing this very failure:
http://gcc.gnu.org/ml/libstdc++/2003-11/msg00172.html
on i686-pc-linux-gnu as well.

Basically bootstrap fails like this:

/home/rasky/gcc/mainline/out/gcc/g++ -shared-libgcc -
B/home/rasky/gcc/mainline/out/gcc/ -nostdinc++ -
B/home/rasky/gcc/mainline/install//i686-pc-linux-gnu/bin/ -
B/home/rasky/gcc/mainline/install//i686-pc-linux-gnu/lib/ -
isystem /home/rasky/gcc/mainline/install//i686-pc-linux-gnu/include -
isystem /home/rasky/gcc/mainline/install//i686-pc-linux-gnu/sys-include -
include bits/stdc++.h -O3 -fomit-frame-pointer -march=athlon-tbird -DNDEBUG -
DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -pipe -fno-enforce-eh-specs -D_GNU_SOURCE -
o abi_check abi_check.o  -L/home/rasky/gcc/mainline/out/i686-pc-linux-
gnu/libstdc++-v3/src -L/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs -lm
/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs/libstdc++.so: undefined reference to `pthread_create'
/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs/libstdc++.so: undefined reference to `pthread_getspecific'
/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs/libstdc++.so: undefined reference to `pthread_once'
/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs/libstdc++.so: undefined reference to `pthread_key_create'
/home/rasky/gcc/mainline/out/i686-pc-linux-gnu/libstdc++-
v3/src/.libs/libstdc++.so: undefined reference to `pthread_setspecific'

Adding "-lpthread" manually to the command line makes the compilation succeed 
(but then, the whole testsuite is broken). I wonder if the configuration is 
losing a -lpthread on the way.

rasky@trinity:~/gcc/mainline/out$ gcc/g++ -v
Reading specs from /home/rasky/gcc/mainline/install//lib/gcc/i686-pc-linux-
gnu/3.4/specs
Configured with: ../gcc/configure --prefix=/home/rasky/gcc/mainline/install/ --
enable-languages=c,c++,java --enable-shared --enable-threads=posix --with-
system-zlib --enable-__cxa_atexit --disable-multilib --with-gcc-version-
trigger=/home/rasky/gcc/mainline/gcc/gcc/version.c --no-create --no-recursion
Thread model: posix
gcc version 3.4 20031206 (experimental)

rasky@trinity:~/gcc/mainline/out$ ld -v
GNU ld version 2.14.90.0.6 20030820

-- 
           Summary: Bootstrap failure while linking libstdc++.so: undefined
                    reference to phtread symbols
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13331


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]