internal compiler error during U-Boot compilation

Bug #662887 reported by lnx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.5-armel-cross (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

I wanted to compile "Das Uboot", the boot loader for many embedded devices and got:

vsprintf.c: In function ‘number’:
vsprintf.c:183:1: error: insn does not satisfy its constraints:
(insn 528 250 530 43 vsprintf.c:175 (set (reg:SI 1 r1)
        (reg/f:SI 13 sp)) 167 {*thumb1_movsi_insn_osize} (nil))
vsprintf.c:183:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
make[1]: *** [vsprintf.o] Fehler 1
make: *** [lib_generic/libgeneric.a] Fehler 2
norbert@nobbi:~/sheeva/ubootbau/u-boot-3.4.27$

How to reproduce:
Download
http://www.openplug.org/data/uboot/SheevaPlug_U-Boot.16.zip
http://www.openplug.org/data/uboot/u-boot-3.4.27.zip
and follow the instructions at
http://www.openplug.org/data/uboot/ReleaseNotes.txt
In brief:
unzip SheevaPlug_U-Boot.16.zip
mv SheevaPlug_U-Boot/SheevaPlug_U-Boot/Sources/u-boot-1.1.4.tar.bz2 .
tar xvfj u-boot-1.1.4.tar.bz2
mv u-boot-1.1.4 u-boot-3.4.27 # rename the directory to easily bring the content of u-boot-3.4.27.zip in.
unzip u-boot-3.4.27.zip and answer with Overwrite all.
cd u-boot-3.4.27
make mrproper
make rd88f6281Sheevaplug_config NBOOT=1 LE=1 CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
!! The next command seems to have problems with /bin/dash, which is linked to /bin/sh!!
!! Therefore I removed the /bin/dash link to /bin/sh and replaced it by /bin/bash to /bin/sh before running it:
make -s CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcc-4.5-arm-linux-gnueabi 4.5.1-7ubuntu1cross1.38
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Mon Oct 18 21:31:36 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=de_DE.utf8
SourcePackage: gcc-4.5-armel-cross

Revision history for this message
lnx (nwegener) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

/tmp/u/u-boot-3.4.27/board/mv_feroceon/USP/jump.S: Assembler messages:
/tmp/u/u-boot-3.4.27/board/mv_feroceon/USP/jump.S:62: Error: symbol .text is in a different section
make[1]: *** [/tmp/u/u-boot-3.4.27/board/mv_feroceon/USP/jump.o] Error 1
make: *** [board/mv_feroceon/config_kw/libconfig_kw.a] Error 2

That's under natty - how it failed under maverick?

I would also suggest switching to mainline U-Boot for Sheevaplug - works fine and boots faster.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

oops, I see your error log

Revision history for this message
Ash Charles (ashcharles) wrote :

I also encountered this bug when building u-boot-1.2.0 for a Gumstix Verdex board. My Linaro (arm-linux-gnueabi- 4.5.1) and Android (arm-eabi- 4.4.0) compilers showed this bug however the arm-angstrom-linux-gnueabi toolchain built along with OpenEmbedded worked fine. This compiler reports gcc version 4.3.3.

Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

I do wonder what to do with this bug report. U-Boot 1.1.4 is 5 years old, 1.2.0 is 4 years old. Both devices can run current U-Boot which got lot of build fixes during last years.

summary: - internal compiler error
+ internal compiler error during U-Boot compilation
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Can any of you provide build results with current oneiric cross toolchain?

If not then I will close this bug as wontfix.

Marcin Juszkiewicz (hrw)
Changed in gcc-4.5-armel-cross (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.