Let me provide some more background on this (getting some lines back
from the initial bug description):

On an (as of today) updated focal installation (on s390x) I needed to
install the crossbuild-essential-amd64 package, but it's not installable
and it seems to be the same for all "crossbuild-essential-*" packages.
It's btw. the same on Eoan, too.

Now, I ran into this because I want to do a kernel test compile with a modified 
kernel option. If one modifies a kernel option, "fakeroot debian/rules 
updateconfigs" needs to be called.
I was told by the kernel team that at some point in time (somewhere between 
bionic and eoan) CROSS_COMPILE setting became needed to address 
architecture-dependent tests in Kconfig options. Hence cross toolchains are now 
required.
At least amd64 is needed, I don't know yet if more is needed (but I assume it's 
more).

Right now - as workaround - I need to do the kernel config changes on my
local amd64 workstation run updateconfigs and can then proceed with
build and test on the s390x target platform.

But it must be possible to prepare and compile a kernel with a modified
kernel option on a single target platform.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-5.4 in Ubuntu.
https://bugs.launchpad.net/bugs/1863116

Title:
  debian/rules editconfigs does not work on s390x to change s390x only
  configs

Status in Ubuntu on IBM z Systems:
  Incomplete
Status in linux-5.4 package in Ubuntu:
  New

Bug description:
  On s390x

  pull-lp-source linux-5.4
  cd linux-*
  fakeroot ./debian/rules clean
  ./debian/rules editconfig
  dh_testdir;
  /bin/bash -e debian/scripts/misc/kernelconfig editconfigs
  Do you want to edit config: amd64/config.flavour.generic? [Y/n] n
  ...
  scripts/Kconfig.include:35: compiler 'x86_64-linux-gnu-gcc' not found
  make[3]: *** [../scripts/kconfig/Makefile:73: syncconfig] Error 1
  make[2]: *** [/home/ubuntu/linux-5.4-5.4.0/Makefile:594: syncconfig] Error 2
  make[2]: Leaving directory '/home/ubuntu/linux-5.4-5.4.0/build'
  make[1]: *** [Makefile:179: sub-make] Error 2
  make[1]: Leaving directory '/home/ubuntu/linux-5.4-5.4.0'
  make: *** [debian/rules.d/1-maintainer.mk:44: editconfigs] Error 2

  And indeed i do not have x86_64-linux-gnu-gcc crosscompiler available
  to build on s390x for amd64, and also I don't want to touch amd64
  configs. Only s390x ones.

  As a user, I should be able to rebuild ports architecture kernel with
  tweaked config for testing, self-hosted without cross-compilers.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1863116/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to