lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4627b565-0a5c-080e-726a-01b773c985e8@landley.net>
Date:   Wed, 3 Jun 2020 08:49:54 -0500
From:   Rob Landley <rob@...dley.net>
To:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        David Woodhouse <dwmw2@...radead.org>, arnd@...db.de,
        yamada.masahiro@...ionext.com, Rich Felker <dalias@...c.org>
Subject: headers_install builds break on a lot of targets?

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@...h/\([^/]*\)/@\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’?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ