From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3173 invoked by alias); 20 Dec 2007 08:52:02 -0000 Received: (qmail 3123 invoked by uid 22791); 20 Dec 2007 08:52:01 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.cadenas.de (HELO cnsbw01.cadenas.de) (213.179.137.23) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 20 Dec 2007 08:51:54 +0000 Message-ID: <476A2E8B.4030005@cadenas.de> Date: Thu, 20 Dec 2007 08:52:00 -0000 From: Thomas Mittelstaedt User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Problem building gcc-4.2.2 64-bit on hp-ux 11.11, more problems References: <4768E619.1040609@cadenas.de> <20071219122405.8crmniqubok8kwks@webmail.kwsoft.de> <4769057B.1040408@cadenas.de> In-Reply-To: <4769057B.1040408@cadenas.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00355.txt.bz2 With a lot of ugly fixing in generated Makefile's, I got past stage 3, but now libstdc++ does not build. The generated config.h in hppa64-hp-hpux11.11/libstdc++-v3 seems to be wrong, as there is an fabsf and altera on my system, at least in the headers. make[4]: Leaving directory `/localbuild/gcc-build/hppa64-hp-hpux11.11/libstdc++-v3/libsupc++' Making all in libmath make[4]: Entering directory `/localbuild/gcc-build/hppa64-hp-hpux11.11/libstdc++-v3/libmath' /bin/sh ../libtool --tag CC --mode=compile /localbuild/gcc-build/./gcc/xgcc -B/localbuild/gcc-build/./gcc/ -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/bin/ -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/lib/ -isystem /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/include -isystem /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../../gcc-4.2.2/libstdc++-v3/libmath -I.. -O2 -O -c -o stubs.lo ../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c /localbuild/gcc-build/./gcc/xgcc -B/localbuild/gcc-build/./gcc/ -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/bin/ -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/lib/ -isystem /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/include -isystem /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/sys-include -DHAVE_CONFIG_H -I. -I../../../../gcc-4.2.2/libstdc++-v3/libmath -I.. -O2 -O -c ../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c -fPIC -DPIC -o .libs/stubs.o ../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:38: error: expected identifier or '(' before 'float' ../../../../gcc-4.2.2/libstdc++-v3/libmath/stubs.c:38: error: expected ')' before 'fabs' make[4]: *** [stubs.lo] Error 1 make[4]: Leaving directory `/localbuild/gcc-build/hppa64-hp-hpux11.11/libstdc++-v3/libmath' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/localbuild/gcc-build/hppa64-hp-hpux11.11/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/localbuild/gcc-build/hppa64-hp-hpux11.11/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/localbuild/gcc-build' make: *** [bootstrap] Error 2 Thomas Mittelstaedt schrieb: > Thank you for the urls. I'll check them out. > I downloaded gcc 4.1.2 from hp dspp. I bootstrapped the 32-bit gcc from > their 32-bit compiler, and it all worked. > I bootstrapped 64-bit gcc from their 64-bit version and I'm in a mess. > > thomas > > Listaccount schrieb: > >> Zitat von Thomas Mittelstaedt : >> >> >> >>> Hallo, >>> >>> When I built the 32-bit compiler on the platform via >>> ../configure --prefix=/localbuild/opt/ >>> --enable-version-specific-runtime-libs --enable-static --enable-shared >>> --with-gnu-as --with-as=/localbuild/opt/hp-gcc-4.1.2/bin/as >>> --with-build-time-tools=/localbuild/opt/hp-gcc-4.1.2/bin/ >>> --enable-threads=posix --disable-nls --enable-languages="c,c++,objc" >>> and >>> make LDFLAGS='-pthread' BOOT_LDFLAGS="-pthread" CFLAGS='-O' >>> LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' >>> bootstrap >>> >>> the -pthread flags would make it through all the configure scripts and >>> successfully build the compiler. >>> >>> When I try to build the 64-bit compiler via >>> ../configure --prefix=/localbuild/opt/gcc-4.2.2-64 >>> --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 >>> --build=hppa64-hp-hpux11.11 --enable-version-specific-runtime-libs >>> --enable-static --enable-shared --with-gnu-as >>> --with-as=/localbuild/opt/hp-gcc64-4.1.2/bin/as >>> --with-build-time-tools=/localbuild/opt/hp-gcc64-4.1.2/bin/ >>> --enable-threads=posix --disable-nls --without-gnu-ld >>> --with-ld=/usr/ccs/bin/ld --enable-languages=c,c++,java,objc >>> >>> make LDFLAGS='-pthread -lpthread' BOOT_LDFLAGS="-pthread -lpthread" >>> LDFLAGS_FOR_BUILD="-pthread -lpthread" CFLAGS='-O' LIBCFLAGS='-g -O2' >>> LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap >>> >>> >>> i am getting errors in stage 3: >>> make[2]: `compare' is up to date. >>> make[2]: Leaving directory `/localbuild/gcc-4.2.2/.obj' >>> make[1]: Leaving directory `/localbuild/gcc-4.2.2/.obj' >>> make[1]: Entering directory `/localbuild/gcc-4.2.2/.obj' >>> Configuring in ./fixincludes >>> configure: loading cache ./config.cache >>> checking build system type... hppa64-hp-hpux11.11 >>> checking host system type... hppa64-hp-hpux11.11 >>> checking target system type... hppa64-hp-hpux11.11 >>> checking for hppa64-hp-hpux11.11-gcc... >>> /localbuild/gcc-4.2.2/.obj/./gcc/xgcc >>> -B/localbuild/gcc-4.2.2/.obj/./gcc/ >>> -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/bin/ >>> -B/localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/lib/ -isystem >>> /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/include -isystem >>> /localbuild/opt/gcc-4.2.2-64/hppa64-hp-hpux11.11/sys-include >>> checking for C compiler default output file name... configure: error: C >>> compiler cannot create executables >>> See `config.log' for more details. >>> make[1]: *** [configure-fixincludes] Error 1 >>> make[1]: Leaving directory `/localbuild/gcc-4.2.2/.obj' >>> make: *** [bootstrap] Error 2 >>> >>> >> Which compiler do you use to build gcc?? Be aware that you need a 32 >> Bit and a 64 Bit compiler on PA-RISC if you use some older gcc to >> compile gcc. Not sure about the aCC compiler from HP and for the >> PA-RISC systems the bundeled compiler does not work because it is not >> ANSI compliant but K&R. >> >> For more help on PA-RISC/HP-UX gcc have a look at >> http://mirrors.develooper.com/hpux/index.html#Gcc >> and >> http://hpux.connect.org.uk/hppd/cgi-bin/wwwtar?/hpux/Gnu/gcc-4.2.2/gcc-4.2.2-src-11.11.tar.gz+gcc-4.2.2/HPUX.Install+text >> >> >> Regards >> >> Andreas >> >> >> >>