public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* 4.0.1 build failure on powerpc64-linux
@ 2005-07-18 10:53 Karel Gardas
  2005-07-18 18:28 ` Janis Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Gardas @ 2005-07-18 10:53 UTC (permalink / raw)
  To: GCC Mailing List


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 4.0.1 build failure on powerpc64-linux
  2005-07-18 10:53 4.0.1 build failure on powerpc64-linux Karel Gardas
@ 2005-07-18 18:28 ` Janis Johnson
  2005-07-18 19:06   ` Karel Gardas
  0 siblings, 1 reply; 3+ messages in thread
From: Janis Johnson @ 2005-07-18 18:28 UTC (permalink / raw)
  To: Karel Gardas; +Cc: GCC Mailing List

On Mon, Jul 18, 2005 at 12:53:01PM +0200, Karel Gardas wrote:
> 
> I'm trying to build 4.0.1 release on powerpc64-linux, but without success 
> so far, since build fails with:
> 
> 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

This won't work unless the default compiler and binutils generate 64-bit
code by default.  I build biarch compilers that default to -m32 with
"--build=powerpc64-linux --host=powerpc64-linux --target=powerpc64-linux
--with-cpu=default32".

> 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):

I've been using binutils 2.16, but can't remember specific problems with
earlier versions.

Have you successfully built earlier versions for this target?

Janis

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 4.0.1 build failure on powerpc64-linux
  2005-07-18 18:28 ` Janis Johnson
@ 2005-07-18 19:06   ` Karel Gardas
  0 siblings, 0 replies; 3+ messages in thread
From: Karel Gardas @ 2005-07-18 19:06 UTC (permalink / raw)
  To: Janis Johnson; +Cc: GCC Mailing List

On Mon, 18 Jul 2005, Janis Johnson wrote:

> On Mon, Jul 18, 2005 at 12:53:01PM +0200, Karel Gardas wrote:
>>
>> I'm trying to build 4.0.1 release on powerpc64-linux, but without success
>> so far, since build fails with:
>>
>> 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
>
> This won't work unless the default compiler and binutils generate 64-bit
> code by default.  I build biarch compilers that default to -m32 with
> "--build=powerpc64-linux --host=powerpc64-linux --target=powerpc64-linux
> --with-cpu=default32".

Thanks! Adding those options makes a difference and now build succeed!

>> 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):
>
> I've been using binutils 2.16, but can't remember specific problems with
> earlier versions.
>
> Have you successfully built earlier versions for this target?

No, that's my first attempt on building gcc on linux/power platform.

Thanks,
Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-18 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 10:53 4.0.1 build failure on powerpc64-linux Karel Gardas
2005-07-18 18:28 ` Janis Johnson
2005-07-18 19:06   ` Karel Gardas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).