[Bug 1939379] Re: ARM kernel builds fail with GCC 11
Juerg Haefliger
1939379 at bugs.launchpad.net
Fri Aug 13 13:28:29 UTC 2021
I wonder if this is related but cpio on impish arm64 seems broken. All
my kernel builds on impish fail when cpio is invoked. In a hirsute arm64
chroot:
(hirsute-arm64)ubuntu at seidel:~$ find foo/ -print | cpio -pd --preserve-modification-time $(pwd)/0000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999
22511 blocks
(hirsute-arm64)ubuntu at seidel:~$ pull-lp-debs cpio impish
Found cpio 2.13+dfsg-4ubuntu1 in impish
Downloading cpio_2.13+dfsg-4ubuntu1_arm64.deb from ports.ubuntu.com (0.078 MiB)
Downloading cpio-win32_2.13+dfsg-4ubuntu1_all.deb from launchpadlibrarian.net (0.077 MiB)
$ sudo dpkg -i cpio_2.13+dfsg-4ubuntu1_arm64.deb
(Reading database ... 15849 files and directories currently installed.)
Preparing to unpack cpio_2.13+dfsg-4ubuntu1_arm64.deb ...
Unpacking cpio (2.13+dfsg-4ubuntu1) over (2.13+dfsg-4) ...
Setting up cpio (2.13+dfsg-4ubuntu1) ...
(hirsute-arm64)ubuntu at seidel:~$ rm -rf 0000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999/
(hirsute-arm64)ubuntu at seidel:~$ find foo/ -print | cpio -pd --preserve-modification-time $(pwd)/0000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999
cpio: e: Cannot stat: No such file or directory
cpio: oe/autoload.sh: Cannot stat: No such file or directory
cpio: e-analyzer/Makefile: Cannot stat: No such file or directory
cpio: i/mvm/Makefile: Cannot stat: No such file or directory
cpio: ile: Cannot stat: No such file or directory
cpio: /Kconfig: Cannot stat: No such file or directory
cpio: stmem: Cannot stat: No such file or directory
cpio: blank line ignored
cpio: blank line ignored
cpio: h: Cannot stat: No such file or directory
cpio: e-build.sh: Cannot stat: No such file or directory
cpio: /forwarding/ip6gre_inner_v4_multipath.sh: Cannot stat: No such file or directory
cpio: ers/net/mlxsw/router_scale.sh: Cannot stat: No such file or directory
22470 blocks
That's exactly the type of error I'm seeing when trying to build a
kernel in an impish chroot. cpio seems to choke on the long directory
name:
(hirsute-arm64)ubuntu at seidel:~$ rm -rf 0000000000111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999/
(hirsute-arm64)ubuntu at seidel:~$ find foo/ -print | cpio -pd --preserve-modification-time $(pwd)/00000000001111111111222222222233333333334444444444
22511 blocks
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1939379
Title:
ARM kernel builds fail with GCC 11
Status in gcc-11 package in Ubuntu:
Confirmed
Status in gcc-defaults package in Ubuntu:
Invalid
Bug description:
While this might be a kernel build problem (see LP: #1939308) I wanted
to raise the issue against the toolchain just so we can make sure it's
*not* a toolchain bug. Basically the following behavior changed from
gcc 10:
$ arm-linux-gnueabihf-gcc-10 -march=armv7-a -c -x c /dev/null ; echo $?
0
$ arm-linux-gnueabihf-gcc-11 -march=armv7-a -c -x c /dev/null ; echo $?
cc1: error: ‘-mfloat-abi=hard’: selected architecture lacks an FPU
1
Presumably the GCC 11 hard-float compiler now enforces the default
config --with-float=hard?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1939379/+subscriptions
More information about the foundations-bugs
mailing list