This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Thread model: single? (was: make bootstrap endless loop on AIX)
Replying to myself again, but this may be of interest to other
people trying to do the same :)
gcc 3.0.2 does bootstrap on AIX 4.3, it just takes more patience
than I thought: It took over 8 hours, 1 hour for the gcc stages,
the rest for libstdc++ configuring (seemingly repeating the same
over and over).
Anyway, I still get "Thread model: single" from gcc -v.
Also, my C++ hello world compiles fine, but gives me a link error:
$ g++ main.cc
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
This was easily fixed by using: g++ main.cc -lpthread
I am still left wondering if I can change the "single" into "posix"
FYI:
$ gcc -v
Reading specs from /users/chris/install-test7/lib/gcc-lib/powerpc-ibm-aix4.3.3.0/3.0.2/specs
Configured with: ../gcc-3.0.2/configure --prefix=/users/chris/install-test7 --enable-threads=posix --enable-languages=c++ --disable-aix64 --with-gnu-as --with-as=/users/yoavs/gnu/bin/as --with-gcc
Thread model: single
gcc version 3.0.2