Bug#1059676: kernel FTBFS on hppa

2024-01-16 Thread Helge Deller

This kernel bug is now fixed, since binutils will now
support hppa64 binaries as well. See bz #1059674



Bug#1059676: kernel FTBFS on hppa

2023-12-29 Thread John Paul Adrian Glaubitz
Hello!

> The best solution is probably to fix binutils for hppa to cope
> with 32- and 64-bit hppa binaries. For that I opened ticket #1059674

On powerpc for example, binutils is configured with:

--enable-targets=powerpc64-linux-gnu

Thus, we should just do this on hppa as well and close this bug report.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Bug#1059676: kernel FTBFS on hppa

2023-12-29 Thread Helge Deller

Package: linux
Tags: hppa, ftbfs
Version: 6.6.8-1
Depends: 1059674

Kernel FTBFS on hppa.

Problem is, that on hppa the 32-bit strip and 32-bit objdump binaries can't 
process
hppa 64-bit objects. Log shows, e.g.:

make[3]: Leaving directory '/home/deller/build/linux/linux-6.6.8'
dh_strip --no-automatic-dbgsym -Xvmlinux -Xvmlinuz  -Xvmlinuz-6.6.8-parisc64
dh_install
dh_installdocs
dh_installchangelogs
dh_installexamples
dh_installman
dh_installudev
dh_bugfiles
dh_ucf
dh_lintian
dh_icons
dh_link
dh_compress
dh_fixperms
dh_missing
dh_makeshlibs
objdump: debian/linux-image-6.6.8-parisc64/boot/vmlinuz-6.6.8-parisc64: file 
format not recognized
dh_makeshlibs: error: objdump -p 
debian/linux-image-6.6.8-parisc64/boot/vmlinuz-6.6.8-parisc64 returned exit 
code 1
make[2]: *** [debian/rules.real:406: binary_image] Error 25

The kernel commit e30336ff6519e31077b27210f595ea7fbd23a2c9
("Don't run dh_strip on vmlinuz") worked around the issue once.
But this patch can fix the issue too:

diff -up ./templates/image.control.in.org ./templates/image.control.in
--- ./templates/image.control.in.org2023-12-29 20:32:43.138447385 +0100
+++ ./templates/image.control.in2023-12-29 20:33:08.281814898 +0100
@@ -6,6 +6,7 @@ Build-Depends:
  kernel-wedge (>= 2.105~),
 # used by kernel-wedge (only on Linux, thus not declared as a dependency)
  kmod,
+ binutils-multiarch [hppa]
 Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
 Recommends: firmware-linux-free
 Suggests: linux-doc-@version@, debian-kernel-handbook

The best solution is probably to fix binutils for hppa to cope
with 32- and 64-bit hppa binaries. For that I opened ticket #1059674

Helge