Skip to contentSkip to conversation

Why elf2flt is built *after* busybox

Buildroot Axel Lin 3 participants 6 messages Sep 3, 2013 – Sep 4, 2013

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

Hi,
Just enable elf2flt and start build.
From the build log I found the build system build busybox before elf2flt. Is this normal?
I thought elf2flt needs to be ready before building other packages?

Below shows my package build order:

$ grep "_installed" mylog 
touch /opt/test/buildroot/buildroot/output/build/host-binutils-2.21.1/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-m4-1.4.16/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-gmp-5.1.2/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-mpfr-3.1.2/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-libtool-2.4.2/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-autoconf-2.69/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-automake-1.11.6/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-mpc-1.0.1/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-gcc-initial-4.5.4/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/linux-headers-3.10.10/.stamp_staging_installed
touch /opt/test/buildroot/buildroot/output/build/linux-headers-3.10.10/.stamp_target_installed
touch /opt/test/buildroot/buildroot/output/build/host-gcc-intermediate-4.5.4/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2/.stamp_staging_installed
touch /opt/test/buildroot/buildroot/output/build/uclibc-0.9.33.2/.stamp_target_installed
touch /opt/test/buildroot/buildroot/output/build/host-gcc-final-4.5.4/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/busybox-1.21.1/.stamp_target_installed
touch /opt/test/buildroot/buildroot/output/build/host-pkgconf-0.8.9/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-e2fsprogs-1.42.8/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-zlib-1.2.8/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-elf2flt-cvs/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-genext2fs-1.4.1/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-fakeroot-1.18.2/.stamp_host_installed
touch /opt/test/buildroot/buildroot/output/build/host-makedevs-undefined/.stamp_host_installed

Just not sure if it is related to the message shows in the end of output/build/busybox-1.21.1/busybox_unstripped.out:
(looks like ld does not recognize -elf2flt )

/opt/test/buildroot/buildroot/output/host/usr/lib/gcc/arm-buildroot-uclinux-uclibcgnueabi/4.5.4/../../../../arm-buildroot-uclinux-uclibcgnueabi/bin/ld: warning: cannot find entry symbol lf2flt=-s65535; defaulting to 00000000000080ac

Regards,
Axel

#1 lore raw

Dear Axel Lin,

Quoted 4 lines · Axel Lin

Just enable elf2flt and start build.
From the build log I found the build system build busybox before elf2flt. Is this normal?
I thought elf2flt needs to be ready before building other packages?

Because elf2flt support is broken and someone needs to fix it. You've already sent several e-mails about this. Gustavo Zacarias is working on improving the elf2flt, but on a spare time basis, so it's progressing as time and motivation permits.

Sorry to be a bit rude, but if you want things to move forward faster, either send patches to fix the problems and get the thing working, or hire someone to do this work for you. I'm sure ARM noMMU support in Buildroot will improve, because there are more and more Cortex-M systems that are capable of running Linux, but it's not something that is currently well supported in Buildroot.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
author
#2 lore raw

2013/9/4 Thomas Petazzoni <[email protected]>:

Quoted 14 lines

Dear Axel Lin,

Quoted 4 lines · Axel Lin

Just enable elf2flt and start build.
From the build log I found the build system build busybox before elf2flt. Is this normal?
I thought elf2flt needs to be ready before building other packages?

Because elf2flt support is broken and someone needs to fix it. You've already sent several e-mails about this. Gustavo Zacarias is working on improving the elf2flt, but on a spare time basis, so it's progressing as time and motivation permits.

Quoted 6 lines

Sorry to be a bit rude, but if you want things to move forward faster, either send patches to fix the problems and get the thing working, or hire someone to do this work for you. I'm sure ARM noMMU support in Buildroot will improve, because there are more and more Cortex-M systems that are capable of running Linux, but it's not something that is currently well supported in Buildroot.

Hi Thomas,

I think you totally missed my point.
I ask the question because I try to figure out the issue I found. I ask the question because I'm leaning using buildroot. It's good to know someone is working on this issue, however I didn't mean to push someone to work for me. That is not my intention.

This time my question is: Is it normal elf2flt is built *after* busybox? (This looks like a new founding to me)
I know elf2ft is broken.
I'm just not sure if the build order is one of the root cause to make elf2flt broken.
I ask the question because I'm not familiar with buiildroot now, I even don't know how to specify package build order.
(In this case, move elf2flt build ealier than busybox.)
So I expect someone can answer the question on mailing list.

Note, I'll send patch if I'm pretty sure I have fixed some issue. But at this moment I just try to dig out the problem.

Regards,
Axel

author
#3 lore raw
Quoted 9 lines

This time my question is: Is it normal elf2flt is built *after* busybox? (This looks like a new founding to me)
I know elf2ft is broken.
I'm just not sure if the build order is one of the root cause to make elf2flt broken.
I ask the question because I'm not familiar with buiildroot now, I even don't know how to specify package build order.
(In this case, move elf2flt build ealier than busybox.)
So I expect someone can answer the question on mailing list.

Hi,
I test build for blackfin with BR2_PACKAGE_HOST_ELF2FLT=y. The first time build result in a ELF 32-bit LSB executable. (I think it is because busybox is built *before* elf2flt.) However, I build busybox again with "make busybox-rebuild" and then I got a BFLT executable.
So now I do think the build order for elf2flt does matter.

Regards,
Axel

#4 lore raw

Hi Axel,

Op 4-sep.-2013 04:04 schreef "Axel Lin" <[email protected]> het volgende:

Quoted 10 lines
Quoted 10 lines

This time my question is: Is it normal elf2flt is built *after* busybox? (This looks like a new founding to me)
I know elf2ft is broken.
I'm just not sure if the build order is one of the root cause to make elf2flt broken.
I ask the question because I'm not familiar with buiildroot now, I even don't know how to specify package build order.
(In this case, move elf2flt build ealier than busybox.)
So I expect someone can answer the question on mailing list.

Quoted 7 lines

Hi,
I test build for blackfin with BR2_PACKAGE_HOST_ELF2FLT=y. The first time build result in a ELF 32-bit LSB executable. (I think it is because busybox is built *before* elf2flt.) However, I build busybox again with "make busybox-rebuild" and then I got a BFLT executable.
So now I do think the build order for elf2flt does matter.

The build order of packages is in general to be considered random. However, if some packages need to be built before others, this should be expressed in the FOO_DEPENDENCIES variable. If FOO_DEPENDENCIES = bar, then package bar will be built before package FOO.

Some packages need to be built before _all_ other packages, they are global dependencies. For this, there is the support/dependencies infrastructure.

Some packages are also built before the real target packages as part of the toolchain building/extracting.

Possibly, elf2flt can be added to the last category, or to the support/dependencies one.

Best regards,
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130904/78618709/attachment.html>

#5 lore raw
In reply to Axel Lin

Dear Axel Lin,

Quoted 17 lines · Axel Lin
Quoted 10 lines
Quoted 4 lines

Just enable elf2flt and start build.
From the build log I found the build system build busybox before elf2flt. Is this normal?
I thought elf2flt needs to be ready before building other packages?

Because elf2flt support is broken and someone needs to fix it. You've already sent several e-mails about this. Gustavo Zacarias is working on improving the elf2flt, but on a spare time basis, so it's progressing as time and motivation permits.

Quoted 6 lines

Sorry to be a bit rude, but if you want things to move forward faster, either send patches to fix the problems and get the thing working, or hire someone to do this work for you. I'm sure ARM noMMU support in Buildroot will improve, because there are more and more Cortex-M systems that are capable of running Linux, but it's not something that is currently well supported in Buildroot.

Quoted 7 lines

Hi Thomas,

I think you totally missed my point.
I ask the question because I try to figure out the issue I found. I ask the question because I'm leaning using buildroot. It's good to know someone is working on this issue, however I didn't mean to push someone to work for me. That is not my intention.

The thing is that you've been posting constantly error reports about the elf2flt support, while we have kept telling you from the beginning that it is not well supported by Buildroot today. So keeping sending error reports is kind of useless: at this point, someone needs to look at the problem and fix it. I know Gustavo has started working on this, but I believe ARM noMMU support is not his priority. If it has a higher priority for someone else, then that someone else should work on it and fix the issues. Constantly posting error reports will not make the thing progress faster.

Quoted 2 lines

This time my question is: Is it normal elf2flt is built *after* busybox? (This looks like a new founding to me)

No, this is not normal.

Quoted 2 lines

I ask the question because I'm not familiar with buiildroot now, I even don't know how to specify package build order.

By putting the relevant dependency name in <pkg>_DEPENDENCIES, as explained in the Buildroot documentation,
http://buildroot.org/downloads/manual/manual.html.

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com