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 c++/26489] New: compilation of c++ fails in eh_alloc.cc on NetBSD


With a freshly svn up'ed gcc to the 4.1.0 branch, and an empty obj dir, I get
the following compile error on NetBSD-current (3.99.15).

/aux/obj/gcc41/./gcc/xgcc -shared-libgcc -B/aux/obj/gcc41/./gcc -nostdinc++
-L/a
ux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/src
-L/aux/obj/gcc41/i38
6-unknown-netbsdelf3.99.15/libstdc++-v3/src/.libs
-B/usr/local//i386-unknown-net
bsdelf3.99.15/bin/ -B/usr/local//i386-unknown-netbsdelf3.99.15/lib/ -isystem
/usr/local//i386-unknown-netbsdelf3.99.15/include -isystem
/usr/local//i386-unknown-netbsdelf3.99.15/sys-include
-I/aux/src/gcc41/libstdc++-v3/../gcc
-I/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15
-I/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include
-I/aux/src/gcc41/libstdc++-v3/libsupc++ -g -O2 -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -c
/aux/src/gcc41/libstdc++-v3/libsupc++/eh_alloc.cc  -fPIC -DPIC -o eh_alloc.o
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_once(__gthread_once_t*, void (*)())':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:515:
error: '__gthrw_pthread_once' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_key_create(__gthread_key_t*, void (*)(void*))':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:523:
error: '__gthrw_pthread_key_create' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_key_delete(__gthread_key_t)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:529:
error: '__gthrw_pthread_key_delete' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'void* __gthread_getspecific(__gthread_key_t)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:535:
error: '__gthrw_pthread_getspecific' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_setspecific(__gthread_key_t, const void*)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:541:
error: '__gthrw_pthread_setspecific' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_mutex_lock(__gthread_mutex_t*)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-n
etbsdelf3.99.15/bits/gthr-default.h:548: error: '__gthrw_pthread_mutex_lock'
was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_mutex_trylock(__gthread_mutex_t*)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:557:
error: '__gthrw_pthread_mutex_trylock' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int __gthread_mutex_unlock(__gthread_mutex_t*)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:566:
error: '__gthrw_pthread_mutex_unlock' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:
In function 'int
__gthread_recursive_mutex_init_function(__gthread_recursive_mutex_t*)':
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:580:
error: '__gthrw_pthread_mutexattr_init' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:582:
error: '__gthrw_pthread_mutexattr_settype' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:584:
error: '__gthrw_pthread_mutex_init' was not declared in this scope
/aux/obj/gcc41/i386-unknown-netbsdelf3.99.15/libstdc++-v3/include/i386-unknown-netbsdelf3.99.15/bits/gthr-default.h:586:
error: '__gthrw_pthread_mutexattr_destroy' was not declared in this scope

It looks like this might be attributable to the update from 110280 to 111412 of
gcc/gthr-posix.h.


-- 
           Summary: compilation of c++ fails in eh_alloc.cc on NetBSD
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dogcow at babymeat dot com
 GCC build triplet: i386-unknown-netbsdelf
  GCC host triplet: i386-unknown-netbsdelf
GCC target triplet: i386-unknown-netbsdelf


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


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