Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Trying to compile uClibc in thumb mode
Date: Tue, 11 Mar 2008 11:39:03 +0100	[thread overview]
Message-ID: <20080311113903.1e46d90e@crazy> (raw)

Hi,

I'm currently trying to compile uClibc in thumb mode using Buildroot
(binutils 2.18.50.0.1, gcc 4.2.1, uclibc 0.9.29). To enable thumb mode,
I simply modified toolchain/uClibc/uClibc-0.9.29.config, and set
UCLIBC_EXTRA_CFLAGS to "-mthumb".

However, the compilation fails quickly in ldso:

make[1]: entrant dans le r?pertoire ? /mnt/space/free-electrons/buildroot/toolchain_build_arm/uClibc-0.9.29 ?
  CC ldso/ldso/ldso.oS
ldso/ldso/dl-elf.c: In function '_dl_load_elf_shared_library':
ldso/ldso/dl-elf.c:647: error: unable to find a register to spill in class 'LO_REGS'
ldso/ldso/dl-elf.c:647: error: this is the insn:
(insn:HI 912 911 913 105 (set (reg/v:SI 0 r0 [ _a1 ])
        (plus:SI (reg/v:SI 187 [ map_size ])
            (reg:SI 214 [ iftmp.138 ]))) 5 {*thumb_addsi3} (nil)
    (expr_list:REG_DEAD (reg/v:SI 187 [ map_size ])
        (expr_list:REG_DEAD (reg:SI 214 [ iftmp.138 ])
            (nil))))
ldso/ldso/dl-elf.c:647: confused by earlier errors, bailing out
make[1]: *** [ldso/ldso/ldso.oS] Erreur 1

Is it an issue with uClibc itself or with the compiler ?

Thanks for your help,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080311/7db210a0/attachment.pgp 

                 reply	other threads:[~2008-03-11 10:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080311113903.1e46d90e@crazy \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox