This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

libstdc++ related boostrap failure


Mainline fails to bootstrap on i386-unknown-freebsd4.7:

/files/pfeifer/OBJ-0213-1115/gcc/g++ -shared-libgcc -B/files/pfeifer/OBJ-0213-1115/gcc/ -nostdinc++ -B/sw/gcc-current/i386-unknown-freebsd4.7/bin/ -B/sw/gcc-current/i386-unknown-freebsd4.7/lib/ -isystem /sw/gcc-current/i386-unknown-freebsd4.7/include -g -O2 -o abi_check abi_check.o  -L/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/src -L/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/src/.libs -lm
abi_check.o: In function `__gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > > std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > >, __gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > > >(__gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > >, __gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > >, __gnu_cxx::__normal_iterator<std::pair<symbol_info, symbol_info!
>*, std::vector<std::pair<symbol_info, symbol_info>, std::allocator<std::pair<symbol_info, symbol_info> > > >, __false_type)':
/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:486: undefined reference to `__gnu_cxx::_Atomic_add_mutex'
/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:504: undefined reference to `__gnu_cxx::_Atomic_add_mutex'
/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:486: undefined reference to `__gnu_cxx::_Atomic_add_mutex'
/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:486: undefined reference to `__gnu_cxx::_Atomic_add_mutex'
/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:504: undefined reference to `__gnu_cxx::_Atomic_add_mutex'
abi_check.o:/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/include/i386-unknown-freebsd4.7/bits/gthr-default.h:504: more undefined references to `__gnu_cxx::_Atomic_add_mutex' follow
collect2: ld returned 1 exit status
gmake[4]: *** [abi_check] Error 1
gmake[4]: Leaving directory `/files/pfeifer/OBJ-0213-1115/i386-unknown-freebsd4.7/libstdc++-v3/testsuite'
gmake[3]: *** [all-recursive] Error 1

Checking the ChangeLog, I suspect this might be related to the following
patch:

  2003-02-12  Phil Edwards  <pme@gcc.gnu.org>

        * config/cpu/generic/atomicity.h (_Atomic_add_mutex):  Fix declaration.
        (_GLIBCPP_NEED_GENERIC_MUTEX):  Define for this file.
        (_Atomic_add_mutex_once, __gthread_atomic_add_mutex_once):  Declare
        when we don't have static mutex initialization.
        (__exchange_and_add):  Use _Atomic_add_mutex_once.
        * src/misc-inst.cc:  Definitions of all the above.

Gerald


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