Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 2017 09:09:31 +1200
From:      Jonathan Chen <jonc@chen.org.nz>
To:        jhale@freebsd.org, freebsd-ports@freebsd.org
Subject:   Building math/fftw3 on armv6
Message-ID:  <CAJuc1zONKwFabPFqfu1mqqtZ8ESun%2B8djqkaqFD7tjEE8SYEow@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm attempting to build math/fftw3 on 11-STABLE/armv6, r315896. I'm
getting a build failure towards the end when building its internal
tests.

[...]
Making all in tests
gmake[3]: Entering directory
'/tmp/usr/ports/math/fftw3/work/fftw-3.3.6-pl2/tests'
cc -DHAVE_CONFIG_H -I. -I..  -I../kernel -I../libbench2 -I../dft
-I../rdft -I../reodft -I../threads -I../api   -D_THREAD_SAFE -pthread
-O -pipe  -O3 -ffast-math -fstrict-aliasing -fomit-frame-pointer -MT
bench-bench.o -MD -MP -MF .deps/bench-bench.Tpo -c -o bench-bench.o
`test -f 'bench.c' || echo './'`bench.c
cc -DHAVE_CONFIG_H -I. -I..  -I../kernel -I../libbench2 -I../dft
-I../rdft -I../reodft -I../threads -I../api   -D_THREAD_SAFE -pthread
-O -pipe  -O3 -ffast-math -fstrict-aliasing -fomit-frame-pointer -MT
bench-hook.o -MD -MP -MF .deps/bench-hook.Tpo -c -o bench-hook.o `test
-f 'hook.c' || echo './'`hook.c
cc -DHAVE_CONFIG_H -I. -I..  -I../kernel -I../libbench2 -I../dft
-I../rdft -I../reodft -I../threads -I../api   -D_THREAD_SAFE -pthread
-O -pipe  -O3 -ffast-math -fstrict-aliasing -fomit-frame-pointer -MT
bench-fftw-bench.o -MD -MP -MF .deps/bench-fftw-bench.Tpo -c -o
bench-fftw-bench.o `test -f 'fftw-bench.c' || echo './'`fftw-bench.c
mv -f .deps/bench-fftw-bench.Tpo .deps/bench-fftw-bench.Po
mv -f .deps/bench-hook.Tpo .deps/bench-hook.Po
mv -f .deps/bench-bench.Tpo .deps/bench-bench.Po
/bin/sh ../libtool  --tag=CC   --mode=link cc -D_THREAD_SAFE -pthread
-O -pipe  -O3 -ffast-math -fstrict-aliasing -fomit-frame-pointer   -o
bench bench-bench.o bench-hook.o bench-fftw-bench.o
../threads/libfftw3_threads.la ../libfftw3.la ../libbench2/libbench2.a
 -lm
libtool: link: cc -D_THREAD_SAFE -pthread -O -pipe -O3 -ffast-math
-fstrict-aliasing -fomit-frame-pointer -o .libs/bench bench-bench.o
bench-hook.o bench-fftw-bench.o  ../threads/.libs/libfftw3_threads.so
../.libs/libfftw3.so ../libbench2/libbench2.a -lm -pthread -Wl,-rpath
-Wl,/usr/local/lib
../libbench2/libbench2.a(verify-lib.o): In function `aphase_shift':
verify-lib.c:(.text+0x578): undefined reference to `sincos'
../libbench2/libbench2.a(verify-lib.o): In function `tf_shift':
verify-lib.c:(.text+0x1380): undefined reference to `sincos'
verify-lib.c:(.text+0x1574): undefined reference to `sincos'
verify-lib.c:(.text+0x1834): undefined reference to `sincos'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[3]: *** [Makefile:400: bench] Error 1
gmake[3]: Leaving directory
'/tmp/usr/ports/math/fftw3/work/fftw-3.3.6-pl2/tests'
gmake[2]: *** [Makefile:684: all-recursive] Error 1
gmake[2]: Leaving directory '/tmp/usr/ports/math/fftw3/work/fftw-3.3.6-pl2'
gmake[1]: *** [Makefile:549: all] Error 2
gmake[1]: Leaving directory '/tmp/usr/ports/math/fftw3/work/fftw-3.3.6-pl2'

The build *does* succeed for 11-STABLE/amd64, r315896. It appears to
be an armv6 specific issue?

Cheers.
-- 
Jonathan Chen <jonc@chen.org.nz>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJuc1zONKwFabPFqfu1mqqtZ8ESun%2B8djqkaqFD7tjEE8SYEow>