Summary: | >=sys-kernel/gentoo-sources-5.0.6 undefined issues | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jory A. Pratt <anarchy> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | gentoo-bugs, gentoo, prometheanfire |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jory A. Pratt
2019-04-06 03:06:44 UTC
This also got backported to 4.19.33. The offending commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/tools/objtool/Makefile?id=056d28d135bca0b1d0908990338e00e9dadaf057 Reverting the CFLAGS line back to the previous iteration works. (In reply to Moritz Kick from comment #1) > This also got backported to 4.19.33. > > The offending commit is > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/ > tools/objtool/Makefile?id=056d28d135bca0b1d0908990338e00e9dadaf057 > > Reverting the CFLAGS line back to the previous iteration works. Okay this is only breaking on systems with libelf installed. Once I switched the musl setup over to elfutils the kernel builds as it is expected. Will let the kernel team decide how they want to handle it. make -C /usr/src/linux-5.0.7-gentoo/tools/build CFLAGS= LDFLAGS= fixdep make[1]: Entering directory '/usr/src/linux-5.0.7-gentoo/tools/build' HOSTCC fixdep.o HOSTLD fixdep-in.o LINK fixdep make[1]: Leaving directory '/usr/src/linux-5.0.7-gentoo/tools/build' make -C /usr/src/linux-5.0.7-gentoo/tools/lib/subcmd/ OUTPUT=/usr/src/linux-5.0.7-gentoo/tools/objtool/ make[1]: Entering directory '/usr/src/linux-5.0.7-gentoo/tools/lib/subcmd' make -C /usr/src/linux-5.0.7-gentoo/tools/build CFLAGS= LDFLAGS= /usr/src/linux-5.0.7-gentoo/tools/objtool/fixdep HOSTCC /usr/src/linux-5.0.7-gentoo/tools/objtool/fixdep.o HOSTLD /usr/src/linux-5.0.7-gentoo/tools/objtool/fixdep-in.o LINK /usr/src/linux-5.0.7-gentoo/tools/objtool/fixdep CC /usr/src/linux-5.0.7-gentoo/tools/objtool/exec-cmd.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/help.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/pager.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/parse-options.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/run-command.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/sigchain.o CC /usr/src/linux-5.0.7-gentoo/tools/objtool/subcmd-config.o LD /usr/src/linux-5.0.7-gentoo/tools/objtool/libsubcmd-in.o AR /usr/src/linux-5.0.7-gentoo/tools/objtool/libsubcmd.a make[1]: Leaving directory '/usr/src/linux-5.0.7-gentoo/tools/lib/subcmd' make[1]: Entering directory '/usr/src/linux-5.0.7-gentoo/tools/objtool' make[2]: Entering directory '/usr/src/linux-5.0.7-gentoo/tools/objtool' CC arch/x86/decode.o LD arch/x86/objtool-in.o make[2]: Leaving directory '/usr/src/linux-5.0.7-gentoo/tools/objtool' CC builtin-check.o CC builtin-orc.o CC check.o CC orc_gen.o CC orc_dump.o CC elf.o CC special.o CC objtool.o CC libstring.o CC str_error_r.o LD objtool-in.o make[1]: Leaving directory '/usr/src/linux-5.0.7-gentoo/tools/objtool' LINK objtool OK no idea about libelf, but for binutils-2.32 you need elfutils-0.175 or later. (I suspect that the fix which went into elfutils-0.175 was never applied to libelf; the result is that kernel compilation fails. Though the errors should look different...) (In reply to Andreas K. Hüttel from comment #4) > OK no idea about libelf, but for binutils-2.32 you need elfutils-0.175 or > later. > > (I suspect that the fix which went into elfutils-0.175 was never applied to > libelf; the result is that kernel compilation fails. Though the errors > should look different...) This happens with binutils 2.31.1-r4 as well, as stated in my previous comment somehow the CFLAGS get messed up, when it appends -I/usr/inlucde/libelf I thought this was working fine recently with a custom musl rootfs, albeit as long as elfix was installed on the kernel build host. At the time I was only trying to "prep" the kernel source tree so genkernel could build an initramfs. Basically either elfutils or elfix is required for kernel make prepare which is required for genkernel. IIRC objtool also built fine but I can't swear to that part... * using kernel versions 5.0.7 and 4.20.17 plus latest genkernel with a couple of patches (see above) *** This bug has been marked as a duplicate of bug 692688 *** |