GMP 6.0 miscompiles for arm-unknown-linux-gnueabihf

Steve M. Robbins steve at sumost.ca
Fri Apr 4 01:30:37 UTC 2014


Hi,

The Debian build of GMP 6.0.0 failed on the ARM hard-float architecture.  The 
failure is:


libtool: compile:  arm-linux-gnueabihf-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -
I../../mpn -I.. -D__GMP_WITHIN_GMP -I../.. -DOPERATION_div_qr_1n_pi1 -
D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -O3 -c div_qr_1n_pi1.c  -fPIC -DPIC -o 
.libs/div_qr_1n_pi1.o
/tmp/cchR2I5u.s: Assembler messages:
/tmp/cchR2I5u.s:178: Error: thumb conditional instruction should be in IT 
block -- `movcc r4,#0'
/tmp/cchR2I5u.s:179: Error: thumb conditional instruction should be in IT 
block -- `movcs r4,#-1'
/tmp/cchR2I5u.s:419: Error: thumb conditional instruction should be in IT 
block -- `movcc r4,#0'
/tmp/cchR2I5u.s:420: Error: thumb conditional instruction should be in IT 
block -- `movcs r4,#-1'
make[3]: *** [div_qr_1n_pi1.lo] Error 1


No patch is applied to the source.

The configure options are: 
../configure --prefix=/usr --enable-cxx --enable-fat --build arm-linux-gnueabihf 
--libdir=/usr/lib/arm-linux-gnueabihf \
	    AR=ar CC="arm-linux-gnueabihf-gcc" CFLAGS="-g -O2 -fstack-protector 
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -O3" \
	    CXX="arm-linux-gnueabihf-g++" CXXFLAGS="-g -O2 -fstack-protector --
param=ssp-buffer-size=4 -Wformat -Werror=format-security"

The compiler is GCC 4.8.2

Kernel: Linux 3.2.0-4-mx5 armhf (armv7l)



Full build log at 
https://buildd.debian.org/status/fetch.php?pkg=gmp&arch=armhf&ver=2%3A6.0.0%2Bdfsg-1&stamp=1395729137

The previous build of 5.1.3 was fine: 
https://buildd.debian.org/status/fetch.php?pkg=gmp&arch=armhf&ver=2%3A5.1.3%2Bdfsg-1&stamp=1387159896

Thanks,
-Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20140403/e0cadb00/attachment.bin>


More information about the gmp-bugs mailing list