Bug#734675: fftw3: Fix configury for neon support on arm64 (armv8)

Wookey wookey at wookware.org
Wed Apr 16 09:31:17 UTC 2014


+++ Julian Taylor [2014-01-23 22:41 +0100]:
> On 09.01.2014 04:38, Wookey wrote:
> ...
> > 
> > However, applying this doesn't in fact get a working build as it exposes
> > a compiler ICE in the gcc4.8 we are currently using in unstable. But
> > that should get fixed soon.
> > 
> 
> thanks, if let me know when gcc works again and I'll try to sort this out.

OK. I just tested with gcc-4.9 and the ICE is gone but there is still a problem with the build

So the end of the build log looks like:
/bin/bash ../../../libtool  --tag=CC   --mode=compile gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../..  -I../..
/../kernel -I../../../dft -I../../../dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2  -g -O2 -Wformat -Werr
or=format-security -O2 -MT n1fv_64.lo -MD -MP -MF .deps/n1fv_64.Tpo -c -o n1fv_64.lo n1fv_64.c
libtool: compile:  gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../kernel -I../../../dft -I../../..
/dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_64.lo
libtool: compile:  gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../kernel -I../../../dft -I../../..
/dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_64.lo
 -MD -MP -MF .deps/n1fv_64.Tpo -c n1fv_64.c -o n1fv_64.o >/dev/null 2>&1
make[6]: *** [n1fv_64.lo] Error 1
make[6]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3/dft/simd/neon'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3/dft/simd/neon'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3/dft/simd'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3/dft'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/buildd/packages/modified/fftw3-3.3.3'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2


Running that offending command with gcc-4.9 and 4.8 shows:

gcc-4.9 builds OK:
(sid-arm64-sbuild)buildd at turfan:~/packages/modified/fftw3-3.3.3/dft/simd/neon$ /bin/bash ../../../libtool  --tag
=CC   --mode=compile gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../..  -I../../../kernel -I../../../dft -I../..
/../dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2  -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_6
4.lo -MD -MP -MF .deps/n1fv_64.Tpo -c -o n1fv_64.lo n1fv_64.c                                                   
libtool: compile:  gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../kernel -I../../../dft -I../../../dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_64.lo -MD -MP -MF .deps/n1fv_64.Tpo -c n1fv_64.c  -fPIC -DPIC -o .libs/n1fv_64.o
libtool: compile:  gcc-4.9 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../kernel -I../../../dft -I../../../dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_64.lo -MD -MP -MF .deps/n1fv_64.Tpo -c n1fv_64.c -o n1fv_64.o >/dev/null 2>&1

gcc-4.8 ICEs
(sid-arm64-sbuild)buildd at turfan:~/packages/modified/fftw3-3.3.3/dft/simd/neon$ /bin/bash ../../../libtool  --tag
=CC   --mode=compile gcc-4.8 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../..  -I../../../kernel -I../../../dft -I../..
/../dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2  -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_6
4.lo -MD -MP -MF .deps/n1fv_64.Tpo -c -o n1fv_64.lo n1fv_64.c                                                   
libtool: compile:  gcc-4.8 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../kernel -I../../../dft -I../../..
/dft/simd -I../../../simd-support -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Werror=format-security -O2 -MT n1fv_64.lo
 -MD -MP -MF .deps/n1fv_64.Tpo -c n1fv_64.c  -fPIC -DPIC -o .libs/n1fv_64.o
In file included from n1fv_64.c:3:0:
../common/n1fv_64.c: In function 'n1fv_64':
../common/n1fv_64.c:1560:1: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1508
 }
 ^

So what I don't understand is why the build is falling over as running the command onit's own seems to be OK?

I did this build as
CC=gcc-4.9 dpkg-buildpackage -B -uc -us
which appears to change gcc to gcc-4.9 everywhere it needs to. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/



More information about the debian-science-maintainers mailing list