linux-mips
[Top] [All Lists]

64 bit compile problems

To: linux-mips@linux-mips.org
Subject: 64 bit compile problems
From: David Kesselring <dkesselr@mmc.atmel.com>
Date: Fri, 5 Sep 2003 10:04:01 -0400 (EDT)
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
I'm trying to build u-boot bootloader for a 5kc core in 64 bit mode. I'm
having problems with the compiler/linker. If anyone has any ideas, please
let me know.

When I use the toolchain that installs in
"/usr/cygnus/mips3264-020217/H-i686-pc-linux-gnulibc2.1/bin", I get a link
problem where all opcodes are not aligned on a 64 bit boundry. I get an
extra 32bit word of 0x0 between two 64bit opcodes in the binary file.
The cpp options I use are:-mips64 -EL -mlong64 -mcpu=r5k

When I use a toolchain which I think I ftp'd from linux-mips.org
(mips64el-linux), I get the following error. The cpp options I use are:-EL
-mabi=64 -mips4 -mlong64


/usr/bin/mips64el-linux-gcc  -O   -D__KERNEL__ -DTEXT_BASE=0x00000
-I/home/dkesselr/uboot/u-boot-0.4.5-atmel/include
-I/home/dkesselr/uboot/u-boot-0.4.5-atmel/include/asm -fno-builtin
-ffreestanding -nostdinc -isystem
/usr/lib/gcc-lib/mips64el-linux/2.95.4/include -pipe  -DCONFIG_MIPS
-D__MIPS__ -EL -mabi=64 -mips4
-mlong64 -Wall -Wstrict-prototypes -c -o atmel352.o atmel352.c
atmel352.c: In function `sdram_timing_init':
atmel352.c:82: warning: cast to pointer from integer of different size
atmel352.c:90: warning: cast to pointer from integer of different size
atmel352.c: In function `copydwords':
atmel352.c:186: Internal compiler error in `rtx_equal_for_memref_p', at
alias.c:682
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
cpp0: output pipe has been closed


Thanks,
David Kesselring
Atmel MMC
dkesselr@mmc.atmel.com 919-462-6587


<Prev in Thread] Current Thread [Next in Thread>