From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17642 invoked by alias); 19 Dec 2007 11:24:20 -0000 Received: (qmail 17626 invoked by uid 22791); 19 Dec 2007 11:24:20 -0000 X-Spam-Check-By: sourceware.org Received: from mailin.kwsoft.de (HELO mailin.kwsoft.de) (213.164.67.82) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 19 Dec 2007 11:24:08 +0000 Received: from localhost (localhost [127.0.0.1]) by mailin.kwsoft.de (Postfix) with ESMTP id 8A1EA7D21F for ; Wed, 19 Dec 2007 12:24:05 +0100 (CET) Received: from mailer.kwsoft.de (mailer.kwsoft.de [10.5.0.1]) by webmail.kwsoft.de (Horde MIME library) with HTTP; Wed, 19 Dec 2007 12:24:05 +0100 Message-ID: <20071219122405.8crmniqubok8kwks@webmail.kwsoft.de> Date: Wed, 19 Dec 2007 11:24:00 -0000 From: Listaccount To: gcc-help@gcc.gnu.org Subject: Re: Problem building gcc-4.2.2 64-bit on hp-ux 11.11 References: <4768E619.1040609@cadenas.de> In-Reply-To: <4768E619.1040609@cadenas.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) 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/msg00337.txt.bz2 Zitat von Thomas Mittelstaedt : > Hallo, > > When I built the 32-bit compiler on the platform via > ../configure --prefix=3D/localbuild/opt/ > --enable-version-specific-runtime-libs --enable-static --enable-shared > --with-gnu-as --with-as=3D/localbuild/opt/hp-gcc-4.1.2/bin/as > --with-build-time-tools=3D/localbuild/opt/hp-gcc-4.1.2/bin/ > --enable-threads=3Dposix --disable-nls --enable-languages=3D"c,c++,objc" > and > make LDFLAGS=3D'-pthread' BOOT_LDFLAGS=3D"-pthread" CFLAGS=3D'-O' > LIBCFLAGS=3D'-g -O2' LIBCXXFLAGS=3D'-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=3D/localbuild/opt/gcc-4.2.2-64 > --host=3Dhppa64-hp-hpux11.11 --target=3Dhppa64-hp-hpux11.11 > --build=3Dhppa64-hp-hpux11.11 --enable-version-specific-runtime-libs > --enable-static --enable-shared --with-gnu-as > --with-as=3D/localbuild/opt/hp-gcc64-4.1.2/bin/as > --with-build-time-tools=3D/localbuild/opt/hp-gcc64-4.1.2/bin/ > --enable-threads=3Dposix --disable-nls --without-gnu-ld > --with-ld=3D/usr/ccs/bin/ld --enable-languages=3Dc,c++,java,objc > > make LDFLAGS=3D'-pthread -lpthread' BOOT_LDFLAGS=3D"-pthread -lpthread" > LDFLAGS_FOR_BUILD=3D"-pthread -lpthread" CFLAGS=3D'-O' LIBCFLAGS=3D'-g -O= 2' > LIBCXXFLAGS=3D'-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=20=20 Bit and a 64 Bit compiler on PA-RISC if you use some older gcc to=20=20 compile gcc. Not sure about the aCC compiler from HP and for the=20=20 PA-RISC systems the bundeled compiler does not work because it is not=20=20 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