All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Altenberg <gary@ioengineering.com>
To: buildroot@busybox.net
Subject: [Buildroot] final link failed: Nonrepresentable section on output during build ARM7TDMI uClibc toolchain with Buildroot
Date: Thu, 24 Feb 2011 08:57:03 -0600	[thread overview]
Message-ID: <4D6671BF.40802@ioengineering.com> (raw)

Hi,

I have been attempting to build a toolchain for an ARM7 based board.

I chose the following settings in buildroot:

arm
arm7tdmi
EABI
Kernel headers for 2.6.21
uClibC 0.9.31.x
binutils 2.21
gcc 4.3.x

I want to use the toolchain to build uClinux for this board. I can build 
uClinux with some much older tools and older uClibc and it runs on the 
board but it's very buggy. Lots of memory problems. I thought if I could 
upgrade my tools, busybox and uClibc. I can't even build the latest 
busybox for this board with the old tools.

I am building buildroot on an Ubuntu 9.10 machine

I have attempted this with buildroot-2010.11 then with buildroot-2011.02-rc1

I extract buildroot then run menuconfig and just set the options for a 
toolchain with the parameters from above.

Each time I have run into the getline problem where 
linux-2.6.21/unifdef.c has a getline function that needs to be renamed. 
Renaming the function gets me past that.

Then I keep running into a problem with "final link failed: 
Nonrepresentable section on output" I have looked and looked but cannot 
find any solution to this.

Below is the end of the build of buildroot when it quits.

Should I use a different combination of tools, a newer set of kernel 
stuff, a newer build of Ubuntu? Any help would be appreciated.

/work/sd/buildroot-2011.02-rc1/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): 
In function `__uClibc_fini':
__uClibc_main.c:(.text+0x6c): undefined reference to `__fini_array_start'
__uClibc_main.c:(.text+0x74): undefined reference to `__fini_array_end'
/work/sd/buildroot-2011.02-rc1/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): 
In function `__uClibc_main':
__uClibc_main.c:(.text+0x240): undefined reference to 
`__preinit_array_start'
__uClibc_main.c:(.text+0x244): undefined reference to `__preinit_array_end'
__uClibc_main.c:(.text+0x24c): undefined reference to `__init_array_start'
__uClibc_main.c:(.text+0x250): undefined reference to `__init_array_end'
/work/sd/buildroot-2011.02-rc1/output/host/usr/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.3.5/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: 
.libs/libbfd-2.21.so: hidden symbol `__fini_array_end' isn't defined
/work/sd/buildroot-2011.02-rc1/output/host/usr/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.3.5/../../../../arm-unknown-linux-uclibcgnueabi/bin/ld: 
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[5]: *** [libbfd.la] Error 1
make[5]: Leaving directory 
`/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21/bfd'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory 
`/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21/bfd'
make[3]: *** [all] Error 2
make[3]: Leaving directory 
`/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21/bfd'
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory 
`/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21'
make: *** 
[/work/sd/buildroot-2011.02-rc1/output/build/binutils-2.21/.stamp_built] 
Error 2

-- 
Regards,
Gary
   

                 reply	other threads:[~2011-02-24 14:57 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=4D6671BF.40802@ioengineering.com \
    --to=gary@ioengineering.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 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.