Subject: re: Compiling on sparc64
To: Peter Eisch <peter@boku.net>
From: matthew green <mrg@eterna.com.au>
List: port-sparc64
Date: 01/19/2001 15:16:11
> Have you applied all the 1.5 patches to your machine?
>
Yes, there were two patches, the sparc64-ld.tgz and the
krb4_buffer_overflow.diff are both applied. I'm figuring the
pmax-netboot.diff isn't necessary.
1.5 release source is unpacked into /usr/src; set to /usr/src and
then 'make include' and 'make depend' and then 'make'
Things go along fine until here:
libc_pic.a(__posix_rename.so): In function `___posix_rename':
__posix_rename.so(.text+0x1c): relocation truncated to fit: R_SPARC_GOT13 ___cerror
this is caused by /usr/libexec/cpp not defining __ELF__. this is a known
problem with the sparc64 1.5 toolchain. (it also is missing defines for
__arch64__, __sparc64__, __NetBSD__, __sparc_v9__ and __sparc__). the best
fix is really to install one of the toolchains in arch/sparc64/toolchain
(from the FTP server) and use that....
.mrg.