This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
sparc: Cross to sparc; undefined ref to umul
- To: gcc-bugs at gcc dot gnu dot org
- Subject: sparc: Cross to sparc; undefined ref to umul
- From: Dave Gilbert <gilbertd at treblig dot org>
- Date: Sat, 3 Feb 2001 21:13:47 +0000 (GMT)
Hi,
I'm trying to build a cross compiler from Linux/Alpha to Linux/Sparc;
I'm using cvs'd gcc (as of about a week or so ago).
I've copied headers from an installed Linux/Sparc box (RH6.2) together
with the crt*.o files.
When I try and build a hello world I see the following:
/discs/cross/sparc/tools/bin/sparc-linux-gcc t.c
/discs/cross/sparc/tools/lib/gcc-lib/sparc-linux/2.97/../../../../sparc-linux/bin/ld:
bfd assertion fail ../../../source/binutils-2.10.1.0.2/bfd/elflink.h:2496
/discs/cross/sparc/tools/lib/gcc-lib/sparc-linux/2.97/crt1.o: In function
`_start':
/discs/cross/sparc/tools/lib/gcc-lib/sparc-linux/2.97/crt1.o(.text+0x0):
relocation truncated to fit: R_SPARC_DISP8 *UND*
/discs/cross/sparc/tools/lib/gcc-lib/sparc-linux/2.97/libgcc.a(frame-dwarf2.o):
In function `execute_cfa_insn':
/home/gilbertd/egcs-source/gcc/gcc/frame-dwarf2.c(.text+0xe6c): undefined
reference to `umul'
/home/gilbertd/egcs-source/gcc/gcc/frame-dwarf2.c(.text+0xebc): undefined
reference to `umul'
/home/gilbertd/egcs-source/gcc/gcc/frame-dwarf2.c:634: undefined reference
to `umul'
/home/gilbertd/egcs-source/gcc/gcc/frame-dwarf2.c:722: undefined reference
to `umul'
collect2: ld returned 1 exit status
The version of the binutils/assembler is:
bash$ /discs/cross/sparc/tools/bin/sparc-linux-as -v
GNU assembler version 2.10.91 (sparc-linux) using BFD version 2.10.1.0.2
Thanks in advance for any fixes,
Dave
--
---------------- Have a happy GNU millennium! ----------------------
/ Dr. David Alan Gilbert | Running GNU/Linux on Alpha, | Happy \
\ gro.gilbert @ treblig.org | 68K,MIPS,x86,ARM and SPARC | In Hex /
\ ___________________________|___ http://www.treblig.org |_______/