Problem iinstalling fftw-3.2 on Centos 5.2 64 bits


#1

Hi,

I am having problem getting fftw-3.2 installed on Centos 5.2 64 bits.

Does that combination work? My PC is Pentinum based and I did use the
–sse
option.

I just get started with gnuradio. Any help will be greatly appreciated.

Here is the log:

[root@localhost fftw-3.2]# ./configure --enable-single --enable-shared
–enable-sse
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether to enable maintainer-specific portions of Makefiles…
no
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ANSI C… none needed
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
checking for C compiler vendor… gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking whether make sets $(MAKE)… (cached) yes
checking for a sed that does not truncate output… /bin/sed
checking for egrep… grep -E
checking for fgrep… grep -F
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking the maximum length of command line arguments… 98304
checking whether the shell understands some XSI constructs… yes
checking whether the shell understands “+=”… yes
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for ar… ar
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared
libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking for ocamlc… no
checking for ocamlopt… no
checking for ocamldep… no
checking whether C compiler accepts -malign-double… no
checking whether C compiler accepts -fstrict-aliasing… yes
checking whether C compiler accepts -ffast-math… yes
checking for gcc architecture flag…
checking for x86 cpuid 0 output… unknown
checking for x86 cpuid 1 output… unknown
checking whether C compiler accepts -march=native… no
checking whether C compiler accepts -mcpu=native… no
checking whether C compiler accepts -mnative… no
checking for gcc architecture flag… unknown
checking whether C compiler accepts -O3 -fomit-frame-pointer
-fstrict-aliasing -ffast-math… yes
checking whether C compiler accepts -fno-schedule-insns… yes
checking whether C compiler accepts -fno-web… yes
checking whether C compiler accepts -fno-loop-optimize… yes
checking whether C compiler accepts --param inline-unit-growth=1000…
yes
checking whether C compiler accepts --param
large-function-growth=1000…
yes
checking whether C compiler accepts -msse… yes
checking for ANSI C header files… (cached) yes
checking libintl.h usability… yes
checking libintl.h presence… yes
checking for libintl.h… yes
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking stddef.h usability… yes
checking stddef.h presence… yes
checking for stddef.h… yes
checking for stdlib.h… (cached) yes
checking for string.h… (cached) yes
checking for strings.h… (cached) yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking for unistd.h… (cached) yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking c_asm.h usability… no
checking c_asm.h presence… no
checking for c_asm.h… no
checking intrinsics.h usability… no
checking intrinsics.h presence… no
checking for intrinsics.h… no
checking for stdint.h… (cached) yes
checking mach/mach_time.h usability… no
checking mach/mach_time.h presence… no
checking for mach/mach_time.h… no
checking sys/sysctl.h usability… yes
checking sys/sysctl.h presence… yes
checking for sys/sysctl.h… yes
checking altivec.h usability… no
checking altivec.h presence… no
checking for altivec.h… no
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for size_t… yes
checking whether time.h and sys/time.h may both be included… yes
checking for long double… yes
checking for hrtime_t… no
checking for int… yes
checking size of int… 4
checking for unsigned int… yes
checking size of unsigned int… 4
checking for long… yes
checking size of long… 8
checking for unsigned long… yes
checking size of unsigned long… 8
checking for long long… yes
checking size of long long… 8
checking for unsigned long long… yes
checking size of unsigned long long… 8
checking for size_t… (cached) yes
checking size of size_t… 8
checking for ptrdiff_t… yes
checking size of ptrdiff_t… 8
checking for uintptr_t… yes
checking for float… yes
checking size of float… 4
checking for double… yes
checking size of double… 8
checking for working alloca.h… yes
checking for alloca… yes
checking for working strtod… yes
checking for vprintf… yes
checking for _doprnt… no
checking for sin in -lm… yes
checking for BSDgettimeofday… no
checking for gettimeofday… yes
checking for gethrtime… no
checking for read_real_time… no
checking for time_base_to_time… no
checking for drand48… yes
checking for sqrt… yes
checking for memset… yes
checking for posix_memalign… yes
checking for memalign… yes
checking for _mm_malloc… no
checking for _mm_free… no
checking for clock_gettime… no
checking for mach_absolute_time… no
checking for sysctl… yes
checking for abort… yes
checking for sinl… yes
checking for cosl… yes
checking for snprintf… yes
checking whether drand48 is declared… yes
checking whether memalign is declared… no
checking whether posix_memalign is declared… yes
checking whether sinl is declared… no
checking whether cosl is declared… no
checking for _rtc intrinsic… no
checking for isnan… yes
checking whether C compiler accepts -mpreferred-stack-boundary=4… yes
checking whether the stack is at least 8-byte aligned by gcc… checking
whether C compiler accepts -malign-double… (cached) no
yes
checking for g77… no
checking for f77… no
checking for xlf… no
checking for frt… no
checking for pgf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for f90… no
checking for xlf90… no
checking for pgf90… no
checking for epcf90… no
checking for f95… f95
checking whether we are using the GNU Fortran 77 compiler… yes
checking whether f95 accepts -g… yes
checking whether we are using the GNU Fortran 77 compiler… (cached)
yes
checking whether f95 accepts -g… (cached) yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
checking for f95 option to produce PIC… -fPIC
checking if f95 PIC flag -fPIC works… yes
checking if f95 static flag -static works… yes
checking if f95 supports -c -o file.o… yes
checking if f95 supports -c -o file.o… (cached) yes
checking whether the f95 linker (/usr/bin/ld -m elf_x86_64) supports
shared
libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking how to get verbose linking output from f95… -v
checking for Fortran libraries of f95…
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/…/…/…/…/lib64
-L/lib/…/lib64
-L/usr/lib/…/lib64 -lgfortranbegin -lgfortran -lm -lgcc_s
checking for dummy main to link with Fortran libraries… none
checking for Fortran name-mangling scheme… lower case, underscore, no
extra underscore
checking whether a cycle counter is available… yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating support/Makefile
config.status: creating genfft/Makefile
config.status: creating kernel/Makefile
config.status: creating simd/Makefile
config.status: creating simd/nonportable/Makefile
config.status: creating dft/Makefile
config.status: creating dft/scalar/Makefile
config.status: creating dft/scalar/codelets/Makefile
config.status: creating dft/simd/Makefile
config.status: creating dft/simd/codelets/Makefile
config.status: creating rdft/Makefile
config.status: creating rdft/scalar/Makefile
config.status: creating rdft/scalar/r2cf/Makefile
config.status: creating rdft/scalar/r2cb/Makefile
config.status: creating rdft/scalar/r2r/Makefile
config.status: creating rdft/simd/Makefile
config.status: creating rdft/simd/codelets/Makefile
config.status: creating reodft/Makefile
config.status: creating threads/Makefile
config.status: creating cell/Makefile
config.status: creating cell/spu/Makefile
config.status: creating api/Makefile
config.status: creating libbench2/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/FAQ/Makefile
config.status: creating tools/Makefile
config.status: creating tools/fftw_wisdom.1
config.status: creating tools/fftw-wisdom-to-conf
config.status: creating fftw.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
[root@localhost fftw-3.2]# make
make all-recursive
make[1]: Entering directory /usr/src/fftw-3.2' Making all in support make[2]: Entering directory/usr/src/fftw-3.2/support’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/usr/src/fftw-3.2/support’
Making all in kernel
make[2]: Entering directory /usr/src/fftw-3.2/kernel' if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../simd -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -MT align.lo -MD -MP -MF ".deps/align.Tpo" -c -o align.lo align.c; \ then mv -f ".deps/align.Tpo" ".deps/align.Plo"; else rm -f ".deps/align.Tpo"; exit 1; fi ../libtool: line 819: X--tag=CC: command not found ../libtool: line 852: libtool: ignoring unknown tag : command not found ../libtool: line 819: X--mode=compile: command not found ../libtool: line 985: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 986: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1129: Xgcc: command not found ../libtool: line 1129: X-DHAVE_CONFIG_H: command not found ../libtool: line 1129: X-I.: command not found ../libtool: line 1129: X-I.: command not found ../libtool: line 1129: X-I..: command not found ../libtool: line 1129: X-I../simd: No such file or directory ../libtool: line 1129: X-O3: command not found ../libtool: line 1129: X-fomit-frame-pointer: command not found ../libtool: line 1129: X-fstrict-aliasing: command not found ../libtool: line 1129: X-ffast-math: command not found ../libtool: line 1129: X-MT: command not found ../libtool: line 1129: Xalign.lo: command not found ../libtool: line 1129: X-MD: command not found ../libtool: line 1129: X-MP: command not found ../libtool: line 1129: X-MF: command not found ../libtool: line 1129: X.deps/align.Tpo: No such file or directory ../libtool: line 1129: X-c: command not found ../libtool: line 1181: Xalign.lo: command not found ../libtool: line 1186: libtool: compile: cannot determine name of library object from‘: command not found
make[2]: *** [align.lo] Error 1
make[2]: Leaving directory /usr/src/fftw-3.2/kernel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/usr/src/fftw-3.2’
make: *** [all] Error 2
[root@localhost fftw-3.2]#


#2

anne kwong wrote:

[root@localhost fftw-3.2]# ./configure --enable-single --enable-shared
–enable-sse

Hi, try to not use the super- user account when configuring, only when
installing. I don’t know if it will help, but sometimes the environment
for the root user is a bit different than the one for regular users.

Hope it helps,
//Mattias


#3

Hi,

That works. Thanks!

I am getting another problem when running ./configure

FFTW3F is compiled with
./configure --prefix=/opt/freeswitch --enable-core-odbc-support
–enable-core-libedit-support --enable-64 --with-openssl=/usr/sfw

But I am still getting the following error:

No package ‘fftw3f’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FFTW3F_CFLAGS
and FFTW3F_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Here is my export output

declare -x FFTW3F_CFLAGS="/usr/local/include"
declare -x FFTW3F_LIBS="/usr/local/lib"

Any help will be greatly appreciated.

Anne


#4

anne kwong wrote am 2009-02-09 13:16:

I am getting another problem when running ./configure

FFTW3F is compiled with
./configure --prefix=/opt/freeswitch --enable-core-odbc-support
–enable-core-libedit-support --enable-64 --with-openssl=/usr/sfw
Here is my export output

declare -x FFTW3F_CFLAGS="/usr/local/include"
declare -x FFTW3F_LIBS="/usr/local/lib"

Obviously your fftw3f is installed in opt/freeswitch.
declare -x FFTW3F_CFLAGS="/usr/local/include" won’t do the job in this
case…

Patrick

Engineers motto: cheap, good, fast: choose any two
Patrick S.
Student of Telematik, Techn. University Graz, Austria


#5

anne kwong wrote:

Hi,

That works. Thanks!

I am getting another problem when running ./configure

FFTW3F is compiled with
./configure --prefix=/opt/freeswitch --enable-core-odbc-support
–enable-core-libedit-support --enable-64 --with-openssl=/usr/sfw

But I am still getting the following error:

No package ‘fftw3f’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FFTW3F_CFLAGS
and FFTW3F_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Here is my export output

declare -x FFTW3F_CFLAGS="/usr/local/include"
declare -x FFTW3F_LIBS="/usr/local/lib"

Any help will be greatly appreciated.

Anne

I hope you’ve figured this out by now, but if not (and for those with
problems in the future):
Type:
$ locate fftw3f

output should be similar to:
/usr/src/fftw-3.2.2/fftw3f.pc
/usr/src/fftw-3.2.2/libfftw3f.la
/usr/src/fftw-3.2.2/.libs/libfftw3f.la
/usr/src/fftw-3.2.2/.libs/libfftw3f.lai
/usr/src/fftw-3.2.2/.libs/libfftw3f.so
/usr/src/fftw-3.2.2/.libs/libfftw3f.so.3
/usr/src/fftw-3.2.2/.libs/libfftw3f.so.3.2.4

Set the pkg config EV to the directory containing fftw3f.pc

$ PKG_CONFIG_PATH=/usr/src/fftw-3.3.3/
$ ./configure

-n8


#6

$ PKG_CONFIG_PATH=/usr/src/fftw-3.3.3/
$ PKG_CONFIG_PATH=/usr/src/fftw-3.2.2/

typo - but you get the idea

-n8