[Bug 1939379] Re: ARM kernel builds fail with GCC 11

dann frazier 1939379 at bugs.launchpad.net
Wed Nov 10 20:10:56 UTC 2021


hm.. yeah, I can reproduce:

dannf at xps13:/tmp/php8.1-8.1.0~rc4$ arm-linux-gnueabihf-gcc -IZend/asm/ "-I/tmp/php8.1-8.1.0~rc4/Zend/asm/" "-I/tmp/php8.1-8.1.0~rc4/ext-build/include" "-I/tmp/php8.1-8.1.0~rc4/ext-build/main" "-I/tmp/php8.1-8.1.0~rc4" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/date/lib" "-I/tmp/php8.1-8.1.0~rc4/ext/date/lib" -I/usr/include/libxml2 -I/usr/include/arm-linux-gnueabihf -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/c-client "-I/tmp/php8.1-8.1.0~rc4/ext/mbstring/libmbfl" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/mbstring/libmbfl" "-I/tmp/php8.1-8.1.0~rc4/ext/mbstring/libmbfl/mbfl" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/mbstring/libmbfl/mbfl" -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/editline -I/usr/include/tidy "-I/tmp/php8.1-8.1.0~rc4/ext-build/TSRM" "-I/tmp/php8.1-8.1.0~rc4/ext-build/Zend" "-I/tmp/php8.1-8.1.0~rc4/main" "-I/tmp/php8.1-8.1.0~rc4/Zend" "-I/tmp/php8.1-8.1.0~rc4/TSRM" "-I/tmp/php8.1-8.1.0~rc4/ext-build/" -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 "-ffile-prefix-map=/tmp/php8.1-8.1.0~rc4=." -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -pedantic -fsigned-char -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=armv7-a+fp -g -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -c "/tmp/php8.1-8.1.0~rc4/Zend/asm/jump_arm_aapcs_elf_gas.S" -MMD -MF Zend/asm/jump_arm_aapcs_elf_gas.dep -MT Zend/asm/jump_arm_aapcs_elf_gas.lo  -fPIC -DPIC -o Zend/asm/.libs/jump_arm_aapcs_elf_gas.o
jump_arm_aapcs_elf_gas.S: Assembler messages:
jump_arm_aapcs_elf_gas.S:57: Error: selected processor does not support `vstmia sp,{d8-d15}' in ARM mode
jump_arm_aapcs_elf_gas.S:68: Error: selected processor does not support `vldmia sp,{d8-d15}' in ARM mode


Is it perhaps because the -march arg isn't be passed to the assembler? If I add -Wa,-march=armv7-a+fp:

dannf at xps13:/tmp/php8.1-8.1.0~rc4$ arm-linux-gnueabihf-gcc -IZend/asm/ "-I/tmp/php8.1-8.1.0~rc4/Zend/asm/" "-I/tmp/php8.1-8.1.0~rc4/ext-build/include" "-I/tmp/php8.1-8.1.0~rc4/ext-build/main" "-I/tmp/php8.1-8.1.0~rc4" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/date/lib" "-I/tmp/php8.1-8.1.0~rc4/ext/date/lib" -I/usr/include/libxml2 -I/usr/include/arm-linux-gnueabihf -I/usr/include/enchant-2 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/c-client "-I/tmp/php8.1-8.1.0~rc4/ext/mbstring/libmbfl" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/mbstring/libmbfl" "-I/tmp/php8.1-8.1.0~rc4/ext/mbstring/libmbfl/mbfl" "-I/tmp/php8.1-8.1.0~rc4/ext-build/ext/mbstring/libmbfl/mbfl" -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/editline -I/usr/include/tidy "-I/tmp/php8.1-8.1.0~rc4/ext-build/TSRM" "-I/tmp/php8.1-8.1.0~rc4/ext-build/Zend" "-I/tmp/php8.1-8.1.0~rc4/main" "-I/tmp/php8.1-8.1.0~rc4/Zend" "-I/tmp/php8.1-8.1.0~rc4/TSRM" "-I/tmp/php8.1-8.1.0~rc4/ext-build/" -Wdate-time -D_FORTIFY_SOURCE=2 -fno-common -Wstrict-prototypes -Wformat-truncation -Wlogical-op -Wduplicated-cond -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-unused-parameter -Wno-sign-compare -g -O2 "-ffile-prefix-map=/tmp/php8.1-8.1.0~rc4=." -fstack-protector-strong -Wformat -Werror=format-security -O2 -Wall -pedantic -fsigned-char -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=armv7-a+fp -g -fvisibility=hidden -Wimplicit-fallthrough=1 -DZEND_SIGNALS -c "/tmp/php8.1-8.1.0~rc4/Zend/asm/jump_arm_aapcs_elf_gas.S" -MMD -MF Zend/asm/jump_arm_aapcs_elf_gas.dep -MT Zend/asm/jump_arm_aapcs_elf_gas.lo  -fPIC -DPIC -o Zend/asm/.libs/jump_arm_aapcs_elf_gas.o -Wa,-march=armv7-a+fp; echo $?
0

-- 
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
Status in php8.1 package in Ubuntu:
  New

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