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]

solaris 2.6 compiling problems


Hi,

I have 
cc -v
Reading specs from
/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.4/2.7.2.1/specs
gcc version 2.7.2.1

make -v
GNU Make version 3.76.1,[...]

which ld
/usr/ccs/bin/ld

I am trying to install gcc-2.95.2 on my solaris 2.6 box, which has
some 2.7 patches installed (hence I am not using the newer 2.8.x
compiler).  I did

mkdir egcs
cd egcs
../gcc-2.95.2/configure --prefix=/space/local
make bootstrap >& BUILDOUT &

I got the error:

In file included from gthr-default.h:1,
                 from ../../gcc-2.95.2/gcc/gthr.h:98,
                 from ../../gcc-2.95.2/gcc/libgcc2.c:3034:
../../gcc-2.95.2/gcc/gthr-posix.h:59: `pthread_create' undeclared here
                 (not in a function)
../../gcc-2.95.2/gcc/gthr-posix.h: In function
                 `__gthread_getspecific':
../../gcc-2.95.2/gcc/gthr-posix.h:111: warning: return makes pointer
                 from integer without a cast
../../gcc-2.95.2/gcc/libgcc2.c: In function `eh_context_initialize':
../../gcc-2.95.2/gcc/libgcc2.c:3171: `PTHREAD_ONCE_INIT' undeclared
                 (first use in this function)
../../gcc-2.95.2/gcc/libgcc2.c:3171: (Each undeclared identifier is
                 reported only once
../../gcc-2.95.2/gcc/libgcc2.c:3171: for each function it appears in.)
make[2]: *** [libgcc2.a] Error 1
make[2]: Leaving directory `/space/install/egcs/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/space/install/egcs/gcc'
make: *** [bootstrap] Error 2


Thx,

---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  

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