This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
UPDATE Re: bootstrap failure of 3.0.3 on aix4.3.3
- From: Robert A Nesius <rnesius at ichips dot intel dot com>
- To: <gcc-help at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- Date: Tue, 29 Jan 2002 09:54:47 -0800 (PST)
- Subject: UPDATE Re: bootstrap failure of 3.0.3 on aix4.3.3
I found out the failure mode below seems to be a result of using
the gnu assembler with gcc. I've always been able to build gcc
with the gnu assembler on AIX in the past, so it looks like that
is currently not working?
After successfully building and installing gcc 3.0.3 on aix 4.3,
I encountered another error.
<pdxfs32 286> /tmp # cat hello.C
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
}
<pdxfs32 287> /tmp # g++ hello.C -lpthreads -L/usr/intel/pkgs/gcc/3.0.3/lib -lstdc++ -o hello
ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
<pdxfs32 288> /tmp # g++ hello.C -bloadmap -lpthreads -L/usr/intel/pkgs/gcc/3.0.3/lib -lstdc++ -o hello
g++: installation problem, cannot exec `cc1plus': A file or directory in the path name does not exist.
A grep shows me that the symbol '_S_max_size' does seem to exist in
libstdc++, so I'm a bit puzzled on this one. Also, the output from
using -bloadmap and -bnoquiet doesn't make sense. I made sure cc1plus
does exist in gcc's private bin area, and it is in face executable.
Any ideas?
-Rob
On Thu, 24 Jan 2002, Robert A Nesius wrote:
>
> I encountered the following failure while building gcc 3.0.3
> on aix 4.3.3 w/ a snapshot of binutils from 10.21.2001 that
> I have used successfully with 3.0.2.
>
> <pdxfs32 162> /tmp/gcc/aix43-gcc303 # cat config.status
> #!/bin/sh
> # This file was generated automatically by configure. Do not edit.
> # This directory was configured as follows:
> ../gcc-3.0.3/configure --with-gcc-version-trigger=/tmp/gcc/gcc-3.0.3/gcc/version.c --host=powerpc-ibm-aix4.3.3.0 --enable-shared --prefix=/usr/intel/pkgs/gcc/3.0.3 --with-gnu-as --with-as=/usr/intel/pkgs/gcc/3.0.3/bin/gas --norecursion
> # using "mt-frag"
>
>
> After the last configure, this seems to be during a stage2/stage3
> comparison?
> -------
> ...
> with_multisubdir=pthread/ppc64
> gmake[2]: Entering directory `/tmp/gcc/aix43-gcc303/powerpc-ibm-aix4.3.3.0/libobjc'
> <.... build lines omitted....>
> generating symbol list for `libobjc.la'
> nm -B -X32_64 -BCpg .libs/archive.o .libs/class.o .libs/encoding.o .libs/gc.o .libs/hash.o .libs/init.o .libs/linking.o .libs/misc.o .libs/nil_method.o .libs/NXConstStr.o .libs/Object.o .libs/objects.o .libs/Protocol.o .libs/sarray.o .libs/selector.o .libs/sendmsg.o .libs/thr.o .libs/thr-objc.o | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' |
> sort -u > .libs/libobjc.exp
> /tmp/gcc/aix43-gcc303/gcc/xgcc -B/tmp/gcc/aix43-gcc303/gcc/ -B/usr/intel/pkgs/gcc/3.0.3/powerpc-ibm-aix4.3.3.0/bin/ -B/usr/intel/pkgs/gcc/3.0.3/powerpc-ibm-aix4.3.3.0/lib/ -isystem /usr/intel/pkgs/gcc/3.0.3/powerpc-ibm-aix4.3.3.0/include -shared -o .libs/libobjc.so.1 .libs/archive.o .libs/class.o .libs/encoding.o .libs/gc.o .libs/hash.o .libs/init.o .libs/linking.o .libs/misc.o .libs/nil_method.o
> .libs/NXConstStr.o .libs/Object.o .libs/objects.o .libs/Protocol.o .libs/sarray.o .libs/selector.o .libs/sendmsg.o .libs/thr.o .libs/thr-objc.o -lc -Wl,-bE:.libs/libobjc.exp -Wl,-bnoentry ${wl}-berok
> ld: 0711-593 SEVERE ERROR: Symbol __objc_class_name_NXConstantString (entry 12) in object .libs/NXConstStr.o:
> The symbol refers to a csect with symbol number 14, which was not
> found. The new symbol cannot be associated with a csect and
> is being ignored.
> ld: 0711-593 SEVERE ERROR: Symbol __objc_class_name_Protocol (entry 16) in object .libs/Protocol.o:
> The symbol refers to a csect with symbol number 18, which was not
> found. The new symbol cannot be associated with a csect and
> is being ignored.
> collect2: ld returned 12 exit status
> gmake[2]: *** [libobjc.la] Error 1
> gmake[2]: Leaving directory `/tmp/gcc/aix43-gcc303/powerpc-ibm-aix4.3.3.0/libobjc'
> gmake[1]: *** [all-target-libobjc] Error 2
> gmake[1]: Leaving directory `/tmp/gcc/aix43-gcc303'
> gmake: *** [bootstrap] Error 2
> --------
>
> -Rob
>
>
>
--
#include <sig.h>
------------------------------------------------------------------
Robert Nesius rnesius@ichips.intel.com 503.712.2181
DPG Engineering Computing SW Applications Team