lkml.org 
[lkml]   [2020]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectheaders_install builds break on a lot of targets?
Date
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’?

\
 
 \ /
  Last update: 2020-06-03 15:50    [W:0.082 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site