Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Jimmy Richardson <jmmrchrdsn@gm...> - 2010-11-04 15:11:55
|
Hi,: Ok, thanks, adding CFLAGS="-lpthread" to configure solves the problem. Thanks On 11/4/2010 6:35 AM, Keith Marshall wrote: > On Wednesday 03 November 2010 10:30:17 Jimmy Richardson wrote: >> ... got error: >> >> make[2]: Entering directory `/usr/src/fftw-3.2.2' >> /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -O3 >> [...carelessly malformed copy of libtool/gcc commands snipped...] >> threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x1d): >> undefined reference to `_imp__pthread_cond_wait' >> [...many more similar (illegibly pasted) error messages snipped...] >> collect2: ld returned 1 exit status >> make[2]: *** [libfftw3f.la] Error 1 >> make[2]: Leaving directory `/usr/src/fftw-3.2.2' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/usr/src/fftw-3.2.2' >> make: *** [all] Error 2 > Every one of your error messages refers to a symbol defined in a > pthreads library, yet I see no such library specified in the list to > be linked; you need to persuade libtool to add -lpthread or such. > >> This error goes away if I remove "--enable-threads >> --with-combined-threads", any idea why? > Of course, because by doing so you've removed the dependency on the > pthreads library. > |
From: Jimmy Richardson <jmmrchrdsn@gm...> - 2010-11-03 10:30:30
|
Hi,: I'm trying to compile FFTW 3.2.2 under latest MinGW, I used: $ ./configure --with-our-malloc16 --enable-threads --with-combined-threads --enable-float --enable-sse --enable-shared --disable-static $ make But got error: make[2]: Entering directory `/usr/src/fftw-3.2.2' /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -O3 -fomit-frame-pointe r -malign-double -fstrict-aliasing -ffast-math -march=native -no-undefined -ver sion-info 5:4:2 -o libfftw3f.la -rpath /usr/local/lib kernel/libkernel.la dft/ libdft.la dft/scalar/libdft_scalar.la dft/scalar/codelets/libdft_scalar_codelets .la rdft/librdft.la rdft/scalar/librdft_scalar.la rdft/scalar/r2cf/librdft_scala r_r2cf.la rdft/scalar/r2cb/librdft_scalar_r2cb.la rdft/scalar/r2r/librdft_scalar _r2r.la reodft/libreodft.la api/libapi.la simd/nonportable/libsimd_nonportable.l a dft/simd/libdft_simd.la dft/simd/codelets/libdft_simd_codelets.la rdft/simd/li brdft_simd.la rdft/simd/codelets/librdft_simd_codelets.la simd/libsimd.l a threads/libfftw3f_threads.la -lm libtool: link: rm -fr .libs/libfftw3f.dll.a .libs/libfftw3f.la .libs/libfftw3f. lai libtool: link: gcc -std=gnu99 -shared -Wl,--whole-archive kernel/.libs/libkerne l.a dft/.libs/libdft.a dft/scalar/.libs/libdft_scalar.a dft/scalar/codelets/.lib s/libdft_scalar_codelets.a rdft/.libs/librdft.a rdft/scalar/.libs/librdft_scalar .a rdft/scalar/r2cf/.libs/librdft_scalar_r2cf.a rdft/scalar/r2cb/.libs/librdft_s calar_r2cb.a rdft/scalar/r2r/.libs/librdft_scalar_r2r.a reodft/.libs/libreodft.a api/.libs/libapi.a simd/nonportable/.libs/libsimd_nonportable.a dft/simd/.libs/ libdft_simd.a dft/simd/codelets/.libs/libdft_simd_codelets.a rdft/simd/.libs/lib rdft_simd.a rdft/simd/codelets/.libs/librdft_simd_codelets.a simd/.libs/libsimd. a threads/.libs/libfftw3f_threads.a -Wl,--no-whole-archive -malign-double -mar ch=native -o .libs/libfftw3f-3.dll -Wl,--enable-auto-image-base -Xlinker --out -implib -Xlinker .libs/libfftw3f.dll.a Creating library file: .libs/libfftw3f.dll.a threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0xd): undefined re ference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x1d): undefined r eference to `_imp__pthread_cond_wait' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x5c): undefined r eference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x8a): undefined r eference to `_imp__pthread_cond_signal' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x97): undefined r eference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0xba): undefined r eference to `_imp__pthread_cond_signal' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0xc7): undefined r eference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0xd4): undefined r eference to `_imp__pthread_exit' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0xf7): undefined r eference to `_imp__pthread_mutex_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x12e): undefined reference to `_imp__pthread_cond_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x134): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x143): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x1fc): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x221): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x244): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x257): undefined reference to `_imp__pthread_cond_signal' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x2c0): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x2d0): undefined reference to `_imp__pthread_cond_wait' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x2e7): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x32f): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x374): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x39f): undefined reference to `_imp__pthread_mutex_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x3b6): undefined reference to `_imp__pthread_cond_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x3bf): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x3cf): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x3e6): undefined reference to `_imp__pthread_mutex_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x3fa): undefined reference to `_imp__pthread_cond_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x406): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x419): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x425): undefined reference to `_imp__pthread_attr_init' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x439): undefined reference to `_imp__pthread_attr_setscope' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x44d): undefined reference to `_imp__pthread_attr_setdetachstate' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x46c): undefined reference to `_imp__pthread_create' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x478): undefined reference to `_imp__pthread_attr_destroy' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x498): undefined reference to `_imp__pthread_mutex_lock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x4c0): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x4c6): undefined reference to `_imp__pthread_mutex_destroy' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x4d3): undefined reference to `_imp__pthread_cond_destroy' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x4d9): undefined reference to `_imp__pthread_cond_wait' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x50a): undefined reference to `_imp__pthread_cond_signal' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x5cb): undefined reference to `_imp__pthread_mutex_unlock' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x5d1): undefined reference to `_imp__pthread_mutex_destroy' threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x5da): undefined reference to `_imp__pthread_cond_destroy' collect2: ld returned 1 exit status make[2]: *** [libfftw3f.la] Error 1 make[2]: Leaving directory `/usr/src/fftw-3.2.2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/fftw-3.2.2' make: *** [all] Error 2 This error goes away if I remove "--enable-threads --with-combined-threads", any idea why? Environment: MinGW: Latest version installed by mingw-get-inst-20101030.exe, chose C++ Compiler, Developer Tools and MSYS OS: Windows 7 x64 Thanks |
From: Keith Marshall <keithmarshall@us...> - 2010-11-03 22:35:52
|
On Wednesday 03 November 2010 10:30:17 Jimmy Richardson wrote: > ... got error: > > make[2]: Entering directory `/usr/src/fftw-3.2.2' > /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -O3 > [...carelessly malformed copy of libtool/gcc commands snipped...] > threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x1d): > undefined reference to `_imp__pthread_cond_wait' > [...many more similar (illegibly pasted) error messages snipped...] > collect2: ld returned 1 exit status > make[2]: *** [libfftw3f.la] Error 1 > make[2]: Leaving directory `/usr/src/fftw-3.2.2' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/fftw-3.2.2' > make: *** [all] Error 2 Every one of your error messages refers to a symbol defined in a pthreads library, yet I see no such library specified in the list to be linked; you need to persuade libtool to add -lpthread or such. > This error goes away if I remove "--enable-threads > --with-combined-threads", any idea why? Of course, because by doing so you've removed the dependency on the pthreads library. -- Regards, Keith. |
From: Jimmy Richardson <jmmrchrdsn@gm...> - 2010-11-04 15:11:55
|
Hi,: Ok, thanks, adding CFLAGS="-lpthread" to configure solves the problem. Thanks On 11/4/2010 6:35 AM, Keith Marshall wrote: > On Wednesday 03 November 2010 10:30:17 Jimmy Richardson wrote: >> ... got error: >> >> make[2]: Entering directory `/usr/src/fftw-3.2.2' >> /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99 -O3 >> [...carelessly malformed copy of libtool/gcc commands snipped...] >> threads/.libs/libfftw3f_threads.a(threads.o):threads.c:(.text+0x1d): >> undefined reference to `_imp__pthread_cond_wait' >> [...many more similar (illegibly pasted) error messages snipped...] >> collect2: ld returned 1 exit status >> make[2]: *** [libfftw3f.la] Error 1 >> make[2]: Leaving directory `/usr/src/fftw-3.2.2' >> make[1]: *** [all-recursive] Error 1 >> make[1]: Leaving directory `/usr/src/fftw-3.2.2' >> make: *** [all] Error 2 > Every one of your error messages refers to a symbol defined in a > pthreads library, yet I see no such library specified in the list to > be linked; you need to persuade libtool to add -lpthread or such. > >> This error goes away if I remove "--enable-threads >> --with-combined-threads", any idea why? > Of course, because by doing so you've removed the dependency on the > pthreads library. > |
From: Keith Marshall <keithmarshall@us...> - 2010-11-05 08:09:47
|
On Thursday 04 November 2010 15:11:41 Jimmy Richardson wrote: > Ok, thanks, adding CFLAGS="-lpthread" to configure solves the > problem. [Please don't top-post; it makes it too difficult to maintain an appropriate thread of context. I will quickly lose interest in any top-posted dialogue.] I'm pleased that you got it to work, but CFLAGS is generally the wrong choice for passing library specs to the linker. You really should use LIBS for this purpose; specify it at configure time, so that any other prerequisite libraries are added as identified. -- Regards, Keith. |
From: Tor Lillqvist <tml@ik...> - 2010-11-05 08:52:31
|
FFTW 3.2.2 certainly has code to use the Win32 and Microsoft C library APIs for thread-related functionality (see threads/threads.c), why do you need to drag in pthreads emulation? You must be configuring it somehow wrong. --tml |
From: Jimmy Richardson <jmmrchrdsn@gm...> - 2010-11-05 09:32:15
|
On 11/5/2010 4:09 PM, Keith Marshall wrote: > On Thursday 04 November 2010 15:11:41 Jimmy Richardson wrote: >> Ok, thanks, adding CFLAGS="-lpthread" to configure solves the >> problem. > [Please don't top-post; it makes it too difficult to maintain an > appropriate thread of context. I will quickly lose interest in any > top-posted dialogue.] You mean I should just reply inline like this? > I'm pleased that you got it to work, but CFLAGS is generally the wrong > choice for passing library specs to the linker. You really should use > LIBS for this purpose; specify it at configure time, so that any other > prerequisite libraries are added as identified. Ok, LIBS="-lpthread" works great. |
From: Frustrated <jganger@us...> - 2011-04-05 17:33:37
|
Not sure if I am having the same problem as the introduction to this thread but it sounds similar, thought I would provide more information below: The configure command I am using: ./configure --with-out-malloc16 --enable-threads --with-combined-threads --enable-float --enable-sse --enable-shared --disable-static The problem is when I do a make, I get the following errors, I have no idea why: make all-recursive make[1]: Entering directory `/home/jganger/fftw-3.2.2' Making all in support make[2]: Entering directory `/home/jganger/fftw-3.2.2/support' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/jganger/fftw-3.2.2/support' Making all in kernel make[2]: Entering directory `/home/jganger/fftw-3.2.2/kernel' /bin/sh ../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../simd -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -march=pentium2 -MT align.lo -MD -MP -MF .deps/align.Tpo -c -o align.lo align.c libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../simd -O3 -fomit-frame-pointer -malign-double -fstrict-aliasing -ffast-math -march=pentium2 -MT align.lo -MD -MP -MF .deps/align.Tpo -c align.c -DDLL_EXPORT -DPIC -o .libs/align.o In file included from align.c:22:0: ifftw.h:160:6: error: #error sizeof void* is unknown! make[2]: *** [align.lo] Error 1 make[2]: Leaving directory `/home/jganger/fftw-3.2.2/kernel' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jganger/fftw-3.2.2' make: *** [all] Error 2 I am on XP OS, not sure if this matters or not and I am trying to compile fftw through MinGW. Hope this is enough information for someone to give me some help. -- View this message in context: http://mingw-users.1079350.n2.nabble.com/Compile-FFTW-3-2-2-with-threads-tp5700740p6243165.html Sent from the MinGW-users mailing list archive at Nabble.com. |
From: Greg Chicares <gchicares@sb...> - 2011-04-05 18:07:35
|
On 2011-04-05 17:33Z, Frustrated wrote: [...] > ifftw.h:160:6: error: #error sizeof void* is unknown! The author wrote an #error directive in that file. Usually that's part of a complex preprocessor conditional--for example: #if defined unix || defined __unix__ || defined __unix // Detected POSIX. # define OS_POSIX #elif defined __WIN32__ || defined _WIN32 || defined WIN32 // Detected msw. # define OS_MSW #else // Unknown OS. # error Unknown operating system. #endif // Unknown OS. Look for something like that around line 160 of 'ifftw.h'. If it's not clear what to do, then contacting the author is your best bet. |
From: Frustrated <jganger@us...> - 2011-04-05 20:15:16
|
Greg, Thanks, I emailed Matteo Frigo, who's name is in ifftw.h, we will see if he replies. Right now I cannot install fftw. -- View this message in context: http://mingw-users.1079350.n2.nabble.com/Compile-FFTW-3-2-2-with-threads-tp5700740p6243678.html Sent from the MinGW-users mailing list archive at Nabble.com. |