New: Build fail caused by ccache in module-init-tools
https://bugs.busybox.net/show_bug.cgi?id=1651
Summary: Build fail caused by ccache in module-init-tools
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P4
Component: Outdated package
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: mjd-busybox.net at afork.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
I am having problems with the latest buildroot. If I take a stock buildroot checkout from git, run make menuconfig, then save and make, it compiles. If I then run make menuconfig, choose Kernel -> Kernel type -> linux (same version as Linux headers), then do a make, the build fails.
The build fails when it tries to compile module-init-tools. The makefiles call /usr/lib/ccache/gcc, which fails saying "/usr/bin/ld: cannot find -lc". Please see attached build log.
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 1651] Build fail caused by ccache in module-init-tools
https://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #1 from Mitch Davis <[email protected]> 2010-04-29 04:29:20 UTC --- Created an attachment (id=1591)
--> (https://bugs.busybox.net/attachment.cgi?id=1591)
Listing of build showing breakage.
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #2 from Mitch Davis <[email protected]> 2010-04-29 06:14:57 UTC --- The ccache setting was not changed, so it has the default value of unset.
mjd at milhouse ~/src/buildroot $ grep CCACHE .config # BR2_CCACHE is not set
# BR2_PACKAGE_CCACHE_TARGET is not set
mjd at milhouse ~/src/buildroot $
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
Paulius Zaleckas <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paulius.zaleckas at gmail.com
--- Comment #3 from Paulius Zaleckas <[email protected]> 2010-04-30 08:07:32 UTC --- This is because glibc static library is missing on the host.
On Fedora "yum install glibc-static" solves this problem.
However I admit that buildroot could check and report that you need to install it.
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #4 from Mitch Davis <[email protected]> 2010-04-30 10:05:11 UTC --- Interesting. Why is the host's static version of libc needed?
(And thanks for the workaround)
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #5 from Mitch Davis <[email protected]> 2010-04-30 10:06:37 UTC --- Or looking a little higher up the cause-of-failure tree, why is module-init-tools being compiled with ccache (when it's turned off in the config)?
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #6 from Mitch Davis <[email protected]> --- Hello buildroot guys, anyone had some time to look at this please?
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #7 from Thomas Petazzoni <[email protected]> --- Mitch, with the merge of the linux-cleanup work, the module-init-tools package has been upgraded and migrated to the autotools infrastructure. So it is possible that the problem you're seeing has been fixed.
Can you give a try at the latest Buildroot git ?
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #8 from S?rgio <[email protected]> --- (In reply to comment #7)
Quoted 5 lines
Mitch, with the merge of the linux-cleanup work, the module-init-tools package has been upgraded and migrated to the autotools infrastructure. So it is possible that the problem you're seeing has been fixed.
Can you give a try at the latest Buildroot git ?
Hi, I'm getting this error:
make[2]: Entering directory `buildroot/output/build/host-module-init-tools-3.11/build' /usr/lib64/ccache/gcc -Ibuildroot/output/host/include -Ibuildroot/output/host/usr/include -Wunused -Wall -static -Lbuildroot/output/host/lib -Lbuildroot/output/host/usr/lib -Wl,-rpath,buildroot/output/host/usr/lib -o insmod.static insmod.o libmodtools.a/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
with git and ccache enabled , and yum install glibc-static , fixes the problem.
but what should I do ? disable CCACHE or use glibc-static ?
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
--- Comment #9 from Peter Korsgaard <[email protected]> --- (In reply to comment #8)
Quoted 1 line
but what should I do ? disable CCACHE or use glibc-static ?
short of us hacking the module-init-tools makefile, it is building a static version of insmod - So I would say install the glibc package.
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 1651] Build fail caused by ccache in module-init-tools
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=1651
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #10 from Thomas Petazzoni <[email protected]> --- The issue was in fact that glibc-static was missing on the user host system. We have added a FAQ entry in Buildroot documentation to document this. See
http://git.buildroot.net/buildroot/commit/?id=706683b8b912aa3304d71652d7a4a74d8b74f58e
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.