Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1346429
| From | "H. Peter Anvin" <hpa@zytor.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: linux-next: build failure after merge of the tip tree |
| Date | 2016-03-01 08:50 +0100 |
| Message-ID | <r7Ne9-69t-7@gated-at.bofh.it> (permalink) |
| References | <r7Hip-2iA-1@gated-at.bofh.it> <r7MBr-5S5-3@gated-at.bofh.it> <r7MUO-60O-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On February 29, 2016 11:28:22 PM PST, Sedat Dilek <sedat.dilek@gmail.com> wrote: >On Tue, Mar 1, 2016 at 8:07 AM, Ingo Molnar <mingo@kernel.org> wrote: >> >> * Stephen Rothwell <sfr@canb.auug.org.au> wrote: >> >>> Hi all, >>> >>> After merging the tip tree, today's linux-next build (x86_64 >allmodconfig) >>> failed like this: >>> >>> DESCEND objtool >>> CC >/home/sfr/next/x86_64_allmodconfig/tools/objtool/builtin-check.o >>> CC >/home/sfr/next/x86_64_allmodconfig/tools/objtool/special.o >>> CC /home/sfr/next/x86_64_allmodconfig/tools/objtool/elf.o >>> CC >/home/sfr/next/x86_64_allmodconfig/tools/objtool/objtool.o >>> MKDIR >/home/sfr/next/x86_64_allmodconfig/tools/objtool/arch/x86/insn/ >>> CC >/home/sfr/next/x86_64_allmodconfig/tools/objtool/libstring.o >>> elf.c:22:23: fatal error: sys/types.h: No such file or directory >>> compilation terminated. >>> CC >/home/sfr/next/x86_64_allmodconfig/tools/objtool/exec-cmd.o >>> CC /home/sfr/next/x86_64_allmodconfig/tools/objtool/help.o >>> builtin-check.c:28:20: fatal error: string.h: No such file or >directory >>> compilation terminated. >>> objtool.c:28:19: fatal error: stdio.h: No such file or directory >>> compilation terminated. >>> >>> and further errors ... >>> >>> This build is done with a PowerPC hosted cross compiler with no >glibc. >> >> Ugh, what a rare and weird way to build an x86 kernel, and you made >linux-next >> dependent on it? >> >>> I assume that some things here need to be built with HOSTCC? >> >> I suspect that's the culprit. Do you now mandate people to have >PowerPC systems as >> a requirement to merge to linux-next? How are people supposed to be >able to test >> that rare type of build method which does not matter to 99.99% of our >kernel >> testers and users? >> > >From my experience in using different $COMPILER you should always pass >CC and HOSTCC in your make-line when building a Linux-kernel or >playing with the Kconfig-system. > >When building my llvm-toolchain with make/autoconf I had also to pass >CC and CXX to my configure-line otherwise you got misconfiguration. > >[ EXAMPLE: Linux Kconfig-system ] > >$ MAKE="make V=1" ; COMPILER="mycompiler" ; MAKE_OPTS="CC=$COMPILER >HOSTCC=$COMPILER" > >$ yes "" | $MAKE $MAKE_OPTS oldconfig && $MAKE $MAKE_OPTS >silentoldconfig < /dev/null > >- Sedat - That is not the issue here. The problem is clearly that objtool is a host program and not compiled with host cc. So it is a good thing to test even though it is weird, because it affects real use cases. As x86 is far and beyond the most widely used host architecture, cross-compiling x86 is more likely to involve compiler differences than actually using another host, or possibly compiling 32 bits on a system without the 32-bit libc installed, but it should still work. -- Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
linux-next: build failure after merge of the tip tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-01 02:30 +0100
Re: linux-next: build failure after merge of the tip tree Ingo Molnar <mingo@kernel.org> - 2016-03-01 08:10 +0100
Re: linux-next: build failure after merge of the tip tree Sedat Dilek <sedat.dilek@gmail.com> - 2016-03-01 08:30 +0100
Re: linux-next: build failure after merge of the tip tree "H. Peter Anvin" <hpa@zytor.com> - 2016-03-01 08:50 +0100
Re: linux-next: build failure after merge of the tip tree Sedat Dilek <sedat.dilek@gmail.com> - 2016-03-01 09:50 +0100
Re: linux-next: build failure after merge of the tip tree Ingo Molnar <mingo@kernel.org> - 2016-03-01 10:50 +0100
Re: linux-next: build failure after merge of the tip tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-01 10:50 +0100
[PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-01 23:00 +0100
Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-02 03:30 +0100
Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-02 22:20 +0100
Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-02 23:30 +0100
[PATCH 0/2] objtool: Cross-compilation support Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-03 01:50 +0100
[PATCH 1/2] x86/asm/decoder: Use explicitly signed chars Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-03 01:50 +0100
[tip:core/objtool] x86/asm/decoder: Use explicitly signed chars tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-03 18:00 +0100
Re: [tip:core/objtool] x86/asm/decoder: Use explicitly signed chars "H. Peter Anvin" <hpa@zytor.com> - 2016-03-03 20:10 +0100
[PATCH 2/2] objtool: Support CROSS_COMPILE Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-03 01:50 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-03 03:50 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-03 04:30 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-03 04:40 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Josh Poimboeuf <jpoimboe@redhat.com> - 2016-03-03 04:50 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Ingo Molnar <mingo@kernel.org> - 2016-03-03 16:20 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-04 00:10 +0100
Re: [PATCH 2/2] objtool: Support CROSS_COMPILE "H. Peter Anvin" <hpa@zytor.com> - 2016-03-03 16:30 +0100
[tip:core/objtool] objtool: Support CROSS_COMPILE tip-bot for Josh Poimboeuf <tipbot@zytor.com> - 2016-03-03 18:10 +0100
Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Sedat Dilek <sedat.dilek@gmail.com> - 2016-03-03 08:40 +0100
Re: [PATCH] objtool: Disable stack validation when CROSS_COMPILE is used Stephen Rothwell <sfr@canb.auug.org.au> - 2016-03-03 09:00 +0100
csiph-web