From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7373 invoked by alias); 18 Nov 2005 18:52:34 -0000 Received: (qmail 7365 invoked by uid 22791); 18 Nov 2005 18:52:32 -0000 Received: from porthos.gpc.edu (HELO pmx-gw2.gpc.edu) (168.28.193.171) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 18:52:32 +0000 Received: from W2K01 (adsl-219-238-212.asm.bellsouth.net [68.219.238.212]) (authenticated bits=0) by pmx-gw2.gpc.edu (8.13.1/8.13.1) with ESMTP id jAIIqSnx028201 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 18 Nov 2005 13:52:30 -0500 From: "Douglas B. Jones" To: Cc: "Douglas B Jones" Subject: compiling gcc-4.0.2 on solaris 9 Date: Fri, 18 Nov 2005 18:52:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2005-11/txt/msg00863.txt.bz2 (NOTE: I originally posted this to gcc-help, but only got one response that the sender said they had posted a similar posting a while back and got no responses. So, I am reposting the below to gcc in hopes that this might be a better place to post this question.) I am on: SunOS hostname 5.9 Generic_118558-14 sun4u sparc SUNW,Sun-Blade-1500. I try to do a bootstrap with the following using gnu make 3.80: mkdir objectdir;cd objectdir CC="cc -xildoff -xarch=v9" export CC ../gcc-4.0.2/configure gmake bootstrap I get the following errors: stage1/xgcc -Bstage1/ -B/usr/local/sparc-sun-solaris2.9/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -o build/genmodes \ build/genmodes.o build/errors.o ../build-sparc-sun-solaris2.9/libiberty/libiberty.a ld: warning: file ../build-sparc-sun-solaris2.9/libiberty/libiberty.a(hashtab.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file htab_create_alloc build/genmodes.o htab_find build/genmodes.o xcalloc build/genmodes.o htab_hash_string build/genmodes.o htab_find_slot build/genmodes.o xmalloc build/genmodes.o xstrdup build/genmodes.o ld: fatal: Symbol referencing errors. No output written to build/genmodes collect2: ld returned 1 exit status make[2]: *** [build/genmodes] Error 1 make[2]: Leaving directory `/export/home/src/net/gnu/odir/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/export/home/src/net/gnu/odir/gcc' make: *** [bootstrap] Error 2 I am new to the sun environment, so any help would be appreciated. Thanks!