All of lore.kernel.org
 help / color / mirror / Atom feed
* uclibc build failure on armv4t with -mthumb (internal compiler error)
@ 2009-04-03 20:54 David Huggins-Daines
  2009-04-06 19:32 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: David Huggins-Daines @ 2009-04-03 20:54 UTC (permalink / raw)
  To: openembedded-devel

I'm having trouble building uclibc in thumb mode for armv4t.  It is 
getting an internal compiler error when compiling ldso.  The error 
message is:

NOTE: make STRIPTOOL=true LD=arm-angstrom-linux-uclibcgnueabi-ld 
LOCALE_DATA_FILENAME=uClibc-locale-030818.arm.tgz CC=ccache 
arm-angstrom-linux-uclibcgnueabi-gcc -march=armv4t -mtune=arm920t 
-mthumb-interwork -mthumb 
HOSTCFLAGS=-I/home/dhuggins/Projects/TeRK/oe/tmp/staging/x86_64-linux/usr/include
  CC ldso/ldso/ldso.oS
ldso/ldso/dl-elf.c: In function '_dl_dprintf':
ldso/ldso/dl-elf.c:913: error: unable to find a register to spill in 
class 'LO_REGS'
ldso/ldso/dl-elf.c:913: error: this is the insn:
(insn 121 120 122 6 (set (reg/f:SI 406)
        (plus:SI (reg/f:SI 25 sfp)
            (reg:SI 405))) 5 {*thumb_addsi3} (nil)
    (expr_list:REG_DEAD (reg:SI 405)
        (nil)))
ldso/ldso/dl-elf.c:913: confused by earlier errors, bailing out
make: *** [ldso/ldso/ldso.oS] Error 1
FATAL: oe_runmake failed

I'm using the stable/2009 branch and this is GCC 4.2.4-r5

I believe there were some patches for this recently (in particular, 
building ldso with -O0) but I'm still getting the error - note that it 
is in a different function than the one seen earlier.

I worked around this by forcing ldso to compile with the ARM instruction 
set, but I'm not sure if this is the right approach or not.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: uclibc build failure on armv4t with -mthumb (internal compiler error)
  2009-04-03 20:54 uclibc build failure on armv4t with -mthumb (internal compiler error) David Huggins-Daines
@ 2009-04-06 19:32 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2009-04-06 19:32 UTC (permalink / raw)
  To: openembedded-devel

please try with gcc 4.3.3, the fix is just a workaround to get past this error.
Looks like fix is not sufficient for all gcc versions

Thx

-Khem

On 4/3/09, David Huggins-Daines <dhuggins@cs.cmu.edu> wrote:
> I'm having trouble building uclibc in thumb mode for armv4t.  It is
> getting an internal compiler error when compiling ldso.  The error
> message is:
>
> NOTE: make STRIPTOOL=true LD=arm-angstrom-linux-uclibcgnueabi-ld
> LOCALE_DATA_FILENAME=uClibc-locale-030818.arm.tgz CC=ccache
> arm-angstrom-linux-uclibcgnueabi-gcc -march=armv4t -mtune=arm920t
> -mthumb-interwork -mthumb
> HOSTCFLAGS=-I/home/dhuggins/Projects/TeRK/oe/tmp/staging/x86_64-linux/usr/include
>   CC ldso/ldso/ldso.oS
> ldso/ldso/dl-elf.c: In function '_dl_dprintf':
> ldso/ldso/dl-elf.c:913: error: unable to find a register to spill in
> class 'LO_REGS'
> ldso/ldso/dl-elf.c:913: error: this is the insn:
> (insn 121 120 122 6 (set (reg/f:SI 406)
>         (plus:SI (reg/f:SI 25 sfp)
>             (reg:SI 405))) 5 {*thumb_addsi3} (nil)
>     (expr_list:REG_DEAD (reg:SI 405)
>         (nil)))
> ldso/ldso/dl-elf.c:913: confused by earlier errors, bailing out
> make: *** [ldso/ldso/ldso.oS] Error 1
> FATAL: oe_runmake failed
>
> I'm using the stable/2009 branch and this is GCC 4.2.4-r5
>
> I believe there were some patches for this recently (in particular,
> building ldso with -O0) but I'm still getting the error - note that it
> is in a different function than the one seen earlier.
>
> I worked around this by forcing ldso to compile with the ARM instruction
> set, but I'm not sure if this is the right approach or not.
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-06 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-03 20:54 uclibc build failure on armv4t with -mthumb (internal compiler error) David Huggins-Daines
2009-04-06 19:32 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.