* [Buildroot] using buildroot to statically build uclibc
@ 2015-09-11 9:50 Doha Ehab
2015-09-11 13:36 ` Thomas Petazzoni
2015-09-12 14:06 ` Arnout Vandecappelle
0 siblings, 2 replies; 6+ messages in thread
From: Doha Ehab @ 2015-09-11 9:50 UTC (permalink / raw)
To: buildroot
Hello ,
I am trying to statically build uclibc using buildroot to use it to cross
compile mpich . when I generate uclibc toolchain using make menuconfig the
executables in output/usr/host/bin are dynamically linked .
do I have to build uclibc from output/build/toolchain folder in order to
get the statically linked executables .
I'm new to this if I'm missing something kindly direct me .
Regards,
Doha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150911/fa5e3a66/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] using buildroot to statically build uclibc
2015-09-11 9:50 [Buildroot] using buildroot to statically build uclibc Doha Ehab
@ 2015-09-11 13:36 ` Thomas Petazzoni
2015-09-12 9:57 ` Doha Ehab
2015-09-12 14:06 ` Arnout Vandecappelle
1 sibling, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2015-09-11 13:36 UTC (permalink / raw)
To: buildroot
Dear Doha Ehab,
On Fri, 11 Sep 2015 12:50:33 +0300, Doha Ehab wrote:
> I am trying to statically build uclibc using buildroot to use it to cross
> compile mpich . when I generate uclibc toolchain using make menuconfig the
> executables in output/usr/host/bin are dynamically linked .
> do I have to build uclibc from output/build/toolchain folder in order to
> get the statically linked executables .
> I'm new to this if I'm missing something kindly direct me .
Are you sure you have enabled BR2_STATIC_LIBS=y ?
Which Buildroot version are you using ?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] using buildroot to statically build uclibc
2015-09-11 13:36 ` Thomas Petazzoni
@ 2015-09-12 9:57 ` Doha Ehab
0 siblings, 0 replies; 6+ messages in thread
From: Doha Ehab @ 2015-09-12 9:57 UTC (permalink / raw)
To: buildroot
Dear Thomas Petazzoni ,
I'm using buildroot-2015.02 and yes BR2_STATIC_LIBS is enabled here is
the defconfig file :
BR2_arm=y
BR2_STATIC_LIBS=y
BR2_GCC_ENABLE_OPENMP=y
BR2_ECLIPSE_REGISTER=y
Regards,
Doha
On Fri, Sep 11, 2015 at 4:36 PM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
> Dear Doha Ehab,
>
> On Fri, 11 Sep 2015 12:50:33 +0300, Doha Ehab wrote:
>
> > I am trying to statically build uclibc using buildroot to use it to
> cross
> > compile mpich . when I generate uclibc toolchain using make menuconfig
> the
> > executables in output/usr/host/bin are dynamically linked .
> > do I have to build uclibc from output/build/toolchain folder in order to
> > get the statically linked executables .
> > I'm new to this if I'm missing something kindly direct me .
>
> Are you sure you have enabled BR2_STATIC_LIBS=y ?
>
> Which Buildroot version are you using ?
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150912/62e54189/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] using buildroot to statically build uclibc
2015-09-11 9:50 [Buildroot] using buildroot to statically build uclibc Doha Ehab
2015-09-11 13:36 ` Thomas Petazzoni
@ 2015-09-12 14:06 ` Arnout Vandecappelle
2015-09-12 16:53 ` Doha Ehab
1 sibling, 1 reply; 6+ messages in thread
From: Arnout Vandecappelle @ 2015-09-12 14:06 UTC (permalink / raw)
To: buildroot
On 11-09-15 11:50, Doha Ehab wrote:
> Hello ,
> I am trying to statically build uclibc using buildroot to use it to cross
> compile mpich . when I generate uclibc toolchain using make menuconfig the
> executables in output/usr/host/bin are dynamically linked .
output/usr/host/bin contains executables for the host. These are linked
dynamically and have an rpath setting to make sure the correct libraries are
found in output/usr/host/lib.
The executables on the target (output/target and output/images) should be
statically linked.
There is no way in buildroot to link the host binaries statically.
Regards,
Arnout
> do I have to build uclibc from output/build/toolchain folder in order to get the
> statically linked executables .
> I'm new to this if I'm missing something kindly direct me .
>
> Regards,
> Doha
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] using buildroot to statically build uclibc
2015-09-12 14:06 ` Arnout Vandecappelle
@ 2015-09-12 16:53 ` Doha Ehab
2015-09-13 21:23 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Doha Ehab @ 2015-09-12 16:53 UTC (permalink / raw)
To: buildroot
So in order to use the generated uclibc to cross compile mpich (and link
everything statically) I have to extract the rootfs.tar and use it to
statically build the mpich is that correct ?
Regards,
Doha.
On Sat, Sep 12, 2015 at 5:06 PM, Arnout Vandecappelle <arnout@mind.be>
wrote:
> On 11-09-15 11:50, Doha Ehab wrote:
> > Hello ,
> > I am trying to statically build uclibc using buildroot to use it to
> cross
> > compile mpich . when I generate uclibc toolchain using make menuconfig
> the
> > executables in output/usr/host/bin are dynamically linked .
>
> output/usr/host/bin contains executables for the host. These are linked
> dynamically and have an rpath setting to make sure the correct libraries
> are
> found in output/usr/host/lib.
>
> The executables on the target (output/target and output/images) should be
> statically linked.
>
> There is no way in buildroot to link the host binaries statically.
>
> Regards,
> Arnout
>
> > do I have to build uclibc from output/build/toolchain folder in order to
> get the
> > statically linked executables .
> > I'm new to this if I'm missing something kindly direct me .
> >
> > Regards,
> > Doha
> >
> >
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
> >
>
>
> --
> Arnout Vandecappelle arnout at mind be
> Senior Embedded Software Architect +32-16-286500
> Essensium/Mind http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150912/ca44cc57/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] using buildroot to statically build uclibc
2015-09-12 16:53 ` Doha Ehab
@ 2015-09-13 21:23 ` Thomas Petazzoni
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2015-09-13 21:23 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 12 Sep 2015 19:53:15 +0300, Doha Ehab wrote:
> So in order to use the generated uclibc to cross compile mpich (and link
> everything statically) I have to extract the rootfs.tar and use it to
> statically build the mpich is that correct ?
No: Buildroot does not generate a development environment for the
target (i.e we don't build a compiler).
Instead, you should create a Buildroot package for mpich, so that it
gets cross-compiled as part of the Buildroot build. See the Buildroot
manual for all the details about adding a new package.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-13 21:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 9:50 [Buildroot] using buildroot to statically build uclibc Doha Ehab
2015-09-11 13:36 ` Thomas Petazzoni
2015-09-12 9:57 ` Doha Ehab
2015-09-12 14:06 ` Arnout Vandecappelle
2015-09-12 16:53 ` Doha Ehab
2015-09-13 21:23 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox