Bug#392592: linux-headers-2.6.18-1-mckinley: ia64 misses some scripts when building external modules
Package: linux-headers-2.6.18-1-mckinley
Version: 2.6.18-2
Severity: normal
Hi,
When trying to compile external modules on Debian's 2.6.18 kernel (and
.17 too, and maybe others) on IA64/McKinley ItaniumII, the Makefile in
arch/ia64/ misses some scripts:
make -C /usr/src/linux-headers-2.6.18-1-mckinley/ M=$PWD
/bin/sh: /usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/toolchain-flags: No such file or directory
/bin/sh: /usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/check-gas: No such file or directory
make[1]: Entering directory `/usr/src/linux-headers-2.6.18-1-mckinley'
CC [M] /home/bgoglin/test/test.o
[...]
The "script/" link in the 2.6.18-1-mckinley's headers looks fine:
/usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts
-> ../../../linux-headers-2.6.18-1/arch/ia64/scripts
But the destination does not exists in /usr/src/linux-headers-2.6.18-1/arch/ia64/.
toolchain-flags is used by arch/ia64/Makefile to define CPPFLAGS, which
looks pretty important to me. check-gas checks whether gas is recent
enough, which looks pretty important too. I tried to copy those missing
scripts from the kernel source into linux-headers-2.6.18-1/arch/ia64/scripts,
but I get some other warnings then:
make -C /usr/src/linux-headers-2.6.18-1-mckinley/ M=$PWD
gcc-4.1: /usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/check-segrel.S: No such file or directory
objdump: '/tmp/out19575': No such file
/usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/toolchain-flags: line 19: [: !=: unary operator expected
gcc-4.1: /usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/check-text-align.S: No such file or directory
gcc-4.1: no input files
readelf: Error: '/tmp/out19575': No such file
gcc-4.1: /usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/check-gas-asm.S: No such file or directorygcc-4.1: no input files
objdump: '/tmp/out19593.o': No such file
/usr/src/linux-headers-2.6.18-1-mckinley/arch/ia64/scripts/check-gas: line 10: [: !=: unary operator expected
Copying the entire arch/ia64/scripts/ directory from a source tree seems
to fix all the issues. So I guess one package should bring this directory,
either linux-headers or the linux-kbuild.
Thanks,
Brice
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: ia64
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-mckinley
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Versions of packages linux-headers-2.6.18-1-mckinley depends on:
ii gcc-4.1 4.1.1-13 The GNU C compiler
ii linux-headers-2.6.18-1 2.6.18-2 Common header files for Linux 2.6.
ii linux-kbuild-2.6.18 2.6.18-1 Kbuild infrastructure for Linux 2.
linux-headers-2.6.18-1-mckinley recommends no packages.
-- no debconf information
Reply to: