headers_install builds break on a lot of targets?
From: Rob Landley
Date: Wed Jun 03 2020 - 09:49:46 EST
The headers_install_all target got removed last year (commit f3c8d4c7a728 and
would someone like to update Documentation/kbuild/headers_install.txt which
still describes it?)
The musl-libc maintainer is using a forked hand-hacked kernel header package in
his toolchain build project (https://github.com/richfelker/musl-cross-make), and
he said the reason for it is:
http://lists.landley.net/pipermail/toybox-landley.net/2020-March/011536.html
Because downloading 100 MB of kernel source and extracting it to a far
larger tree just to get the headers isn't really fun.
And I thought "that's why headers_install_all existed", and noticed the target
being removed, so I tried my hand at a small shell script vesion:
for i in $(echo arch/*/ | sed 's@arch/\([^/]*\)/@\1@g')
do
echo $i
X="$PWD/fruitbasket/$i"
mkdir -p "$X"
make ARCH=$i distclean defconfig headers_install \
INSTALL_HDR_PATH="$PWD/fruitbasket/$i" > /dev/null
done
On the bright side, the resulting fruitbasket.tar.xz is 1.5 megabytes. The
downside is I have no idea how broken the resulting header files are after this
error-fest:
alpha
arc
gcc: error: unrecognized command line option â-mmedium-callsâ
gcc: error: unrecognized command line option â-mno-sdataâ; did you mean
â-fno-statsâ?
gcc: error: unrecognized command line option â-mmedium-callsâ
gcc: error: unrecognized command line option â-mno-sdataâ; did you mean
â-fno-statsâ?
arm
arm64
c6x
csky
h8300
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mint32â; did you mean â-fintfcâ?
hexagon
gcc: error: unrecognized command line option â-G0â
gcc: error: unrecognized command line option â-G0â
gcc: error: unrecognized command line option â-G0â
ia64
./arch/ia64/scripts/check-segrel.S: Assembler messages:
./arch/ia64/scripts/check-segrel.S:2: Error: unknown pseudo-op: `.rodata'
./arch/ia64/scripts/check-segrel.S:3: Error: no such instruction: `data4
@segrel(start)'
objdump: '/tmp/out17279': No such file
objdump: section '.rodata' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/toolchain-flags: 20: [: !=: unexpected operator
./arch/ia64/scripts/check-text-align.S: Assembler messages:
./arch/ia64/scripts/check-text-align.S:2: Error: unknown pseudo-op: `.proc'
./arch/ia64/scripts/check-text-align.S:3: Error: unknown pseudo-op: `.prologue'
./arch/ia64/scripts/check-text-align.S:4: Error: unknown pseudo-op: `.save'
./arch/ia64/scripts/check-text-align.S:7: Error: unknown pseudo-op: `.endp'
readelf: Error: '/tmp/out17279': No such file
./arch/ia64/scripts/check-gas-asm.S: Assembler messages:
./arch/ia64/scripts/check-gas-asm.S:1: Error: junk at end of line, first
unrecognized character is `['
./arch/ia64/scripts/check-gas-asm.S:2: Error: unknown pseudo-op: `.xdata4'
objdump: '/tmp/out17306.o': No such file
objdump: section '.data' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/check-gas: 11: [: !=: unexpected operator
./arch/ia64/scripts/check-segrel.S: Assembler messages:
./arch/ia64/scripts/check-segrel.S:2: Error: unknown pseudo-op: `.rodata'
./arch/ia64/scripts/check-segrel.S:3: Error: no such instruction: `data4
@segrel(start)'
objdump: '/tmp/out19677': No such file
objdump: section '.rodata' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/toolchain-flags: 20: [: !=: unexpected operator
./arch/ia64/scripts/check-text-align.S: Assembler messages:
./arch/ia64/scripts/check-text-align.S:2: Error: unknown pseudo-op: `.proc'
./arch/ia64/scripts/check-text-align.S:3: Error: unknown pseudo-op: `.prologue'
./arch/ia64/scripts/check-text-align.S:4: Error: unknown pseudo-op: `.save'
./arch/ia64/scripts/check-text-align.S:7: Error: unknown pseudo-op: `.endp'
readelf: Error: '/tmp/out19677': No such file
./arch/ia64/scripts/check-gas-asm.S: Assembler messages:
./arch/ia64/scripts/check-gas-asm.S:1: Error: junk at end of line, first
unrecognized character is `['
./arch/ia64/scripts/check-gas-asm.S:2: Error: unknown pseudo-op: `.xdata4'
objdump: '/tmp/out19705.o': No such file
objdump: section '.data' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/check-gas: 11: [: !=: unexpected operator
./arch/ia64/scripts/check-segrel.S: Assembler messages:
./arch/ia64/scripts/check-segrel.S:2: Error: unknown pseudo-op: `.rodata'
./arch/ia64/scripts/check-segrel.S:3: Error: no such instruction: `data4
@segrel(start)'
objdump: '/tmp/out19983': No such file
objdump: section '.rodata' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/toolchain-flags: 20: [: !=: unexpected operator
./arch/ia64/scripts/check-text-align.S: Assembler messages:
./arch/ia64/scripts/check-text-align.S:2: Error: unknown pseudo-op: `.proc'
./arch/ia64/scripts/check-text-align.S:3: Error: unknown pseudo-op: `.prologue'
./arch/ia64/scripts/check-text-align.S:4: Error: unknown pseudo-op: `.save'
./arch/ia64/scripts/check-text-align.S:7: Error: unknown pseudo-op: `.endp'
readelf: Error: '/tmp/out19983': No such file
./arch/ia64/scripts/check-gas-asm.S: Assembler messages:
./arch/ia64/scripts/check-gas-asm.S:1: Error: junk at end of line, first
unrecognized character is `['
./arch/ia64/scripts/check-gas-asm.S:2: Error: unknown pseudo-op: `.xdata4'
objdump: '/tmp/out20014.o': No such file
objdump: section '.data' mentioned in a -j option, but not found in any input file
./arch/ia64/scripts/check-gas: 11: [: !=: unexpected operator
m68k
microblaze
mips
nds32
nios2
openrisc
parisc
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: unrecognized command line option â-mno-space-regsâ; did you mean
â-fno-make-depsâ?
gcc: error: unrecognized command line option â-mfast-indirect-callsâ; did you
mean â-fno-indirect-classesâ?
gcc: error: unrecognized command line option â-mdisable-fpregsâ; did you mean
â-fdisable-â?
powerpc
riscv
s390
sh
sparc
um
gcc: error: missing argument to â-Wframe-larger-than=â
Makefile:1230: *** Headers not exportable for the um architecture. Stop.
make: *** [__build_one_by_one] Error 2
unicore32
gcc: error: missing argument to â-Wframe-larger-than=â
gcc: error: missing argument to â-Wframe-larger-than=â
x86
xtensa
gcc: error: unrecognized command line option â-mlongcallsâ
gcc: error: unrecognized command line option â-mtext-section-literalsâ; did you
mean â-fext-numeric-literalsâ?
gcc: error: unrecognized command line option â-mlongcallsâ
gcc: error: unrecognized command line option â-mtext-section-literalsâ; did you
mean â-fext-numeric-literalsâ?
gcc: error: unrecognized command line option â-mlongcallsâ
gcc: error: unrecognized command line option â-mtext-section-literalsâ; did you
mean â-fext-numeric-literalsâ?