Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 934064

Summary: dev-debug/valgrind-3.22.0-r2 fails to compile tests on arm: {standard input}:43: Error: selected processor does not support `udiv r3,r9,r10' in Thumb mode
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: arm, matoro_gentoo
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: ARM   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=931822
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log and emerge --info

Description matoro archtester 2024-06-11 18:23:45 UTC
Created attachment 895629 [details]
build.log and emerge --info

With -j1 for clarity.  Note the warning message:

armv7a-unknown-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I../../..  -I../../.. -I../../../include -I../../../coregrind -I../../../include -I../../../VEX/pub -I../../../VEX/pub -DVGA_arm=1 -DVGO_linux=1 -DVGP_arm_linux=1 -DVGPV_arm_linux_vanilla=1    -Winline -Wall -Wshadow -Wno-long-long -g -fno-stack-protector    -g -mcpu=cortex-a15 -mthumb -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -fno-stack-protector -c -o intdiv-intdiv.o `test -f 'intdiv.c' || echo './'`intdiv.c
cc1: warning: switch ā€˜-mcpu=cortex-a15ā€™ conflicts with switch ā€˜-march=armv7-a+fpā€™
{standard input}: Assembler messages:
{standard input}:43: Error: selected processor does not support `udiv r3,r9,r10' in Thumb mode
{standard input}:84: Error: selected processor does not support `sdiv r3,r9,r10' in Thumb mode
make[5]: *** [Makefile:986: intdiv-intdiv.o] Error 1
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 02:13:42 UTC
This is really annoying because it does work on ARM, it just fails to build with some CFLAGS.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-12 02:18:35 UTC
(In reply to Sam James from comment #1)
> This is really annoying because it does work on ARM, it just fails to build
> with some CFLAGS.

(including, apparently, our default stage ones.)