From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9936 invoked by alias); 18 Jul 2005 10:53:17 -0000 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 Received: (qmail 9922 invoked by uid 22791); 18 Jul 2005 10:53:13 -0000 Received: from smtp-out3.iol.cz (HELO smtp-out3.iol.cz) (194.228.2.91) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 18 Jul 2005 10:53:13 +0000 Received: from antivir3.iol.cz (unknown [192.168.30.206]) by smtp-out3.iol.cz (Internet on Line ESMTP server) with ESMTP id C393A31832A for ; Mon, 18 Jul 2005 12:53:03 +0200 (CEST) Received: from localhost (antivir3.iol.cz [127.0.0.1]) by antivir3.iol.cz (Postfix) with ESMTP id B09226DC005 for ; Mon, 18 Jul 2005 12:53:03 +0200 (CEST) Received: from smtp-out3.iol.cz (unknown [192.168.30.28]) by antivir3.iol.cz (Postfix) with ESMTP id 9547D6DC002 for ; Mon, 18 Jul 2005 12:53:03 +0200 (CEST) Received: from silence.gardas.net (2.122.broadband3.iol.cz [85.70.122.2]) by smtp-out3.iol.cz (Internet on Line ESMTP server) with ESMTP id 0FC4F3BFE3 for ; Mon, 18 Jul 2005 12:53:02 +0200 (CEST) Received: from karel (helo=localhost) by silence.gardas.net with local-esmtp (Exim 4.50) id 1DuTF7-0006Cx-Jg for gcc@gcc.gnu.org; Mon, 18 Jul 2005 12:53:01 +0200 Date: Mon, 18 Jul 2005 10:53:00 -0000 From: Karel Gardas X-X-Sender: karel@silence.gardas.net To: GCC Mailing List Subject: 4.0.1 build failure on powerpc64-linux Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2005-07/txt/msg00765.txt.bz2 Hello, I'm trying to build 4.0.1 release on powerpc64-linux, but without success so far, since build fails with: /usr/include/bits/stdio.h:77: undefined reference to `.__overflow' build/errors.o(.text+0x214): In function `warning': ../../gcc-4.0.1/gcc/errors.c:50: undefined reference to `.fprintf' build/errors.o(.text+0x228):../../gcc-4.0.1/gcc/errors.c:51: undefined reference to `.vfprintf' build/errors.o(.text+0x274): In function `warning': /usr/include/bits/stdio.h:77: undefined reference to `.__overflow' build/errors.o(.text+0x2e4): In function `error': ../../gcc-4.0.1/gcc/errors.c:65: undefined reference to `.fprintf' build/errors.o(.text+0x2f8):../../gcc-4.0.1/gcc/errors.c:66: undefined reference to `.vfprintf' build/errors.o(.text+0x358): In function `error': /usr/include/bits/stdio.h:77: undefined reference to `.__overflow' build/errors.o(.text+0x3c4): In function `fatal': ../../gcc-4.0.1/gcc/errors.c:82: undefined reference to `.fprintf' build/errors.o(.text+0x3d8):../../gcc-4.0.1/gcc/errors.c:83: undefined reference to `.vfprintf' build/errors.o(.text+0x408):../../gcc-4.0.1/gcc/errors.c:86: undefined reference to `.exit' build/errors.o(.text+0x414): In function `fatal': /usr/include/bits/stdio.h:77: undefined reference to `.__overflow' ../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xmalloc.o)(.text+0x44): In function `xmalloc_set_program_name': ../../../gcc-4.0.1/libiberty/xmalloc.c:106: relocation truncated to fit: R_PPC_REL24 sbrk ../build-powerpc64-unknown-linux-gnu/libiberty/libiberty.a(xmalloc.o)(.text+0x7c): In function `xmalloc_failed': ../../../gcc-4.0.1/libiberty/xmalloc.c:119: relocation truncated to fit: R_PPC_REL24 sbrk make[2]: *** [build/genmodes] Error 1 make[2]: Leaving directory `/tmp/kgardas/obj/gcc' make[1]: *** [stage2_build] Error 2 make[1]: Leaving directory `/tmp/kgardas/obj/gcc' make: *** [bootstrap-lean] Error 2 I've configured it with: ../gcc-4.0.1/configure --prefix=$HOME/usr/local/gcc-4.0.1 --enable-shared --enable-threads --enable-languages=c++ --disable-checking --enable-__cxa_atexit and run bootstrap-lean by: time make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean Also, http://gcc.gnu.org/install/specific.html#powerpc-x-linux-gnu notes that binutils 2.15 are required, which seems to be available on this system (Debian 3.1/ppc64): kgardas@tick:/tmp/kgardas/obj$ as --version GNU assembler 2.15 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `powerpc-linux'. kgardas@tick:/tmp/kgardas/obj$ kgardas@tick:/tmp/kgardas/obj$ ld --version GNU ld version 2.15 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. kgardas@tick:/tmp/kgardas/obj$ Any hint how to solve this? Thanks, Karel -- Karel Gardas kgardas@objectsecurity.com ObjectSecurity Ltd. http://www.objectsecurity.com