From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Using Buildroot tool chain as external Toolchain
Date: Tue, 14 May 2013 11:25:16 +0200 [thread overview]
Message-ID: <20130514112516.7ed42f44@skate> (raw)
In-Reply-To: <1368522484.2434.45.camel@john-ubu>
Dear john,
On Tue, 14 May 2013 10:08:04 +0100, john wrote:
> I followed this process:
> 1. I downloaded a copy of buildroot-2012.05
> 2. Configured it and built it for my system
> 3. Confirmed that everything built and ran sucessfully
> 4. Copied the contents of buildroot-2012.05/output/host/usr
> to /apps/buildroot_toolchain/usr
This doesn't work. By default, gcc is linked dynamically against mpc,
mpfr and al, and that doesn't work nicely if you move things around.
Two choices:
*) Build mpc and mpfr statically, so that gcc is linked statically
against them. Ideally, we should allow them to be built
dynamically, but gcc/binutils have binaries in multiple locations
in the tree, so we can't use the $ORIGIN/../lib trick to support a
relocatable rpath.
*) Set BR2_HOST_DIR directly to /apps/buildroot_toolchain/ so that
your toolchain gets built and installed directly in this location.
> arm-linux-gcc... /home/xxx/xxx/xxx/buildroot-2012.05/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc
> checking whether the C compiler works... no
> configure: error: in
> `/home/xxx/xxx/xxx/buildroot-2012.05/output/build/alsa-lib-1.0.25':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> make: ***
> [/home/xxx/xxx/xxx/buildroot-2012.05/output/build/alsa-lib-1.0.25/.stamp_configured]
> Error 77
See output/build/alsa-lib-1.0.25/config.log for the details of the
error; Would be useful to have this information to confirm that my
analysis above is correct.
Thanks,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-05-14 9:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 9:08 [Buildroot] Using Buildroot tool chain as external Toolchain john
2013-05-14 9:25 ` Thomas Petazzoni [this message]
2013-05-14 9:51 ` john
2013-05-14 9:54 ` Thomas Petazzoni
2013-05-14 12:50 ` john
2013-05-14 12:52 ` Thomas Petazzoni
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=20130514112516.7ed42f44@skate \
--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 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.