New: kexec fails to build
https://bugs.busybox.net/show_bug.cgi?id=5234
Summary: kexec fails to build
Product: buildroot
Version: 2012.02
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: baruch at ev-en.org
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created attachment 4358
--> https://bugs.busybox.net/attachment.cgi?id=4358
patch to make kexec compile in cross-builds
Building kexec as part of buildroot with the uclibc library I get that the bin-to-hex utility fails to build, this is because it requires libc.so.0 which is not available on the host and is only generated as part of the buildroot tree. To overcome this kexec needs to build bin-to-hex with the HOSTCC. I've noticed that this was a patch in buildroot which was dropped at some point. So I recreated it, I also sent it to upstream kexec-tools mailing list and hope it will be accepted for future versions.
The patch as needed for buildroot is attached, it needs to be dropped into packages/kexec/
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5234] kexec fails to build
https://bugs.busybox.net/show_bug.cgi?id=5234
--- Comment #1 from Gustavo Zacarias <[email protected]> 2012-10-16 02:16:00 UTC --- Did you try with a newer version of Buildroot which uses kexec 2.0.3?
If it still fails, can you attach a sample .config since i can't reproduce? A simple solution would be to pass the BUILD_CC and BUILD_CFLAGS variables to configure, no kexec-tools patching needed and it's there to be used. Thanks.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5234] kexec fails to build
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5234
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-05-26 14:24:44 UTC --- I've just tested with the latest Buildroot, and bin-to-hex is properly built
with the host compiler and later used without problem.
...
cc -O2 -Wall -o bin/bin-to-hex util/bin-to-hex.c
...
bin/bin-to-hex purgatory < purgatory/purgatory.ro > kexec/purgatory.c
...
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.