Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* cross-compiler for i386->alpha
@ 1999-02-10  5:00 drew
  0 siblings, 0 replies; only message in thread
From: drew @ 1999-02-10  5:00 UTC (permalink / raw)


I'm attempting to create a build a cross-compiler for my 266Mhz i386
redhat box to eliminate le painful process of compiling kernels and such
on my 166Mhz Dec Multia. 

I've looked at the cross-compiler mini-howto at:

http://www.in-berlin.de/User/kraxel/cross-compiler.html

and have followed it for a target of alpha-linux (as opposed to sparc-linux).

I'm using the following libraries/packages:
binutils-2.9.1.0.15
egcs-1.0.3a
glibc-2.0.7

I seem to be able to successfully build and install a proper version of
binutils, and get the appropriate glibc and kernel includes/libraries
installed without a problem

I begin to have problems when building gcc/egcs. I can get through the first
stage of the build fine, bu during the second stage I get:

checking whether the C compiler
(/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/xgcc
-B/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/ -g -O2 ) works...
no configure: error: installation or configuration problem: C compiler
cannot create executables. 

So, I try to build a simple c program with
'/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/xgcc' to see what
kind of errors I'm getting: 

/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/xgcc
-B/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/ hw1.c

and I end up with the error message below the '--snip!--' line.

Can anyone suggest anything that I'm doing fundamentally wrong?

thanks in advance,

Drew

--snip!--

 /home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/xgcc -B/home/drew/bld/cross-compiler/egcs/egcs-1.0.3a/gcc/ /home/drew/hw1.c
/home/drew/hw1.c: In function `main':
/home/drew/hw1.c:10: warning: return type of `main' is not `int'
/usr/local/alpha-linux/lib/crt1.o: In function `_start':
../sysdeps/alpha/elf/start.S:30: relocation truncated to fit: GPDISP *UND*
../sysdeps/alpha/elf/start.S:41: relocation truncated to fit: GPDISP *UND*
../sysdeps/alpha/elf/start.S:49: relocation truncated to fit: GPDISP *UND*
../sysdeps/alpha/elf/start.S:65: relocation truncated to fit: GPDISP *UND*
../sysdeps/alpha/elf/start.S:70: relocation truncated to fit: GPDISP *UND*
../sysdeps/alpha/elf/start.S:78: relocation truncated to fit: GPDISP *UND*
/usr/local/alpha-linux/lib/crti.o(.init+0x0): relocation truncated to fit: GPDISP *UND*
/usr/local/alpha-linux/lib/crti.o(.init+0x20): relocation truncated to fit: GPDISP *UND*
/usr/local/alpha-linux/lib/crti.o(.fini+0x0): relocation truncated to fit: GPDISP *UND*
/usr/local/alpha-linux/lib/crtend.o: In function `__do_global_ctors_aux':
../sysdeps/alpha/elf/crtend.S:54: relocation truncated to fit: GPDISP *UND*
/usr/local/alpha-linux/lib/crtbegin.o: In function `__do_global_dtors_aux':
../sysdeps/alpha/elf/crtbegin.S:54: relocation truncated to fit: GPDISP *UND*
/tmp/cca224711.o: In function `main':
hw1.c(.text+0x0): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x28): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x3c): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x54): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x8c): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0xa0): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0xbc): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0xe8): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x190): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x22c): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x270): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x2a4): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x308): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x324): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x338): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x354): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x368): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x384): relocation truncated to fit: GPDISP *UND*
hw1.c(.text+0x3a0): relocation truncated to fit: GPDISP *UND*
collect2: ld returned 1 exit status





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-10  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-10  5:00 cross-compiler for i386->alpha drew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox