discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] gr-usrp-0.6, problem with make on Mac OS X


From: Jonathan Jacky
Subject: [Discuss-gnuradio] gr-usrp-0.6, problem with make on Mac OS X
Date: Thu, 15 Dec 2005 15:52:24 -0800 (PST)


I'm trying out the GNU Radio 2.6 tarballs on Mac OS X.  Previously I
built gnuradio-core, gr-wxgui, usrp and gr-usrp from CVS (checked out
Nov 28) without problems.  Today I built gnuradio-core-2.6,
gr-wxgui-0.4, and usrp-0.9 from the tarballs with no apparent problems.
I've tried the new gnuradio-core and gr-wxgui, and they work.

I ran into a problem with gr-usrp-0.6.  Its bootstrap and configure
complete without errors or warnings. But then make fails after a huge
number of messages about fftw3f, of all things (see below).  It looks
like ld failed because a great many symbols named _fftw_... got
defined in both libgnuradio-core.dylib and a bunch of other .o files
somehow.

When I built from CVS on Nov 28, I got none of this, make completed
without errors, and I got a running system including USRP.

Jon Jacky

Here are some of the messages from make.  There were many more,
but they were just like these (except they name different files).
The warnings about "Unknown compiler
version" seem benign, I also got these when I built successfully from CVS.

% make ...
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/Users/jon/gr/include/gnuradio 
-I/Users/jon/gr/include 
-I/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 -g 
-O2 -Wall -Woverloaded-virtual -MT usrp0_source_c.lo -MD -MP -MF 
.deps/usrp0_source_c.Tpo -c usrp0_source_c.cc  -fno-common -DPIC -o 
.libs/usrp0_source_c.o
In file included from /opt/local/include/boost/config.hpp:35,
                 from /opt/local/include/boost/shared_ptr.hpp:17,
                 from /Users/jon/gr/include/gnuradio/gr_types.h:26,
                 from /Users/jon/gr/include/gnuradio/gr_runtime.h:26,
                 from /Users/jon/gr/include/gnuradio/gr_block.h:26,
                 from /Users/jon/gr/include/gnuradio/gr_sync_block.h:26,
                 from ./usrp0_source_c.h:26,
                 from usrp0_source_c.cc:27:
/opt/local/include/boost/config/compiler/gcc.hpp:92:7: warning: #warning "Unknown 
compiler version - please run the configure tests and report the results"
/bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -Wall -Woverloaded-virtual -L/opt/local/lib -o _usrp0.la -rpath /Users/jon/gr/lib/python2.3/site-packages/gnuradio -module -avoid-version usrp0.lo usrp0_sink_c.lo usrp0_source_c.lo -lstdc++ -L/Users/jon/gr/lib -L/opt/local/lib -lgnuradio-core -lfftw3f -lm -L/Users/jon/gr/lib -lusrp -lusb rm -fr .libs/_usrp0.lax
mkdir .libs/_usrp0.lax
rm -fr .libs/_usrp0.lax/libfftw3f.a
mkdir .libs/_usrp0.lax/libfftw3f.a
Extracting /opt/local/lib/libfftw3f.a
(cd .libs/_usrp0.lax/libfftw3f.a && ar x /opt/local/lib/libfftw3f.a)
libtool: link: warning: object name conflicts; renaming object files
libtool: link: warning: to ensure that they will not overwrite
cp /opt/local/lib/libfftw3f.a .libs/_usrp0.lax/libfftw3f.a/libfftw3f.a
(cd .libs/_usrp0.lax/libfftw3f.a && ar x  libfftw3f.a 'buffered.o' && mv -f 
'buffered.o' 'buffered-1.o')
ranlib: file: libfftw3f.a(debug.o) has no symbols
ranlib: file: libfftw3f.a(stride.o) has no symbols
ranlib: file: libfftw3f.a(3dnow.o) has no symbols
ranlib: file: libfftw3f.a(sse-aux.o) has no symbols
ranlib: file: libfftw3f.a(sse.o) has no symbols
ranlib: file: libfftw3f.a(sse2-aux.o) has no symbols
ranlib: file: libfftw3f.a(sse2.o) has no symbols
ranlib: file: libfftw3f.a(k7.o) has no symbols
ranlib: file: libfftw3f.a(f77api.o) has no symbols
(cd .libs/_usrp0.lax/libfftw3f.a && ar x  libfftw3f.a 'buffered.o' && mv -f 
'buffered.o' 'buffered-2.o')
ranlib: file: libfftw3f.a(debug.o) has no symbols
...
... etc. for many other files with names that end ...-n.o, where n is a digit
...
rm -f .libs/_usrp0.lax/libfftw3f.a/libfftw3f.a
g++ ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/_usrp0.so -bundle .libs/usrp0.o .libs/usrp0_sink_c.o .libs/usrp0_source_c.o .libs/_usrp0.lax/libfftw3f.a/3dnow.o .libs/_usrp0.lax/libfftw3f.a/align.o .libs/_usrp0.lax/libfftw3f.a/alloc.o .libs/_usrp0.lax/libfftw3f.a/altivec.o .libs/_usrp0.lax/libfftw3f.a .... ...
... long long list of .o files
...
... ibfftw3f.a/vrank-geq1-2.o .libs/_usrp0.lax/libfftw3f.a/vrank-geq1-rdft2.o 
.libs/_usrp0.lax/libfftw3f.a/vrank2-transpose.o 
.libs/_usrp0.lax/libfftw3f.a/vrank3-transpose.o 
.libs/_usrp0.lax/libfftw3f.a/zero.o   -L/opt/local/lib -lstdc++ 
-L/Users/jon/gr/lib /Users/jon/gr/lib/libgnuradio-core.dylib -lm 
/Users/jon/gr/lib/libusrp.dylib /opt/local/lib/libusb.dylib
/usr/bin/ld: multiple definitions of symbol _fftwf_alignment_of
.libs/_usrp0.lax/libfftw3f.a/align.o definition of _fftwf_alignment_of in 
section (__TEXT,__text)
/Users/jon/gr/lib/libgnuradio-core.dylib(single module) definition of 
_fftwf_alignment_of
/usr/bin/ld: multiple definitions of symbol _fftwf_ifree0
.libs/_usrp0.lax/libfftw3f.a/alloc.o definition of _fftwf_ifree0 in section 
(__TEXT,__text)
/Users/jon/gr/lib/libgnuradio-core.dylib(single module) definition of 
_fftwf_ifree0
...
... many many messages about multiple definitions of _fftwf_...
...
/usr/bin/ld: multiple definitions of symbol _fftwf_dft_zerotens
.libs/_usrp0.lax/libfftw3f.a/zero.o definition of _fftwf_dft_zerotens in 
section (__TEXT,__text)
/Users/jon/gr/lib/libgnuradio-core.dylib(single module) definition of 
_fftwf_dft_zerotens
collect2: ld returned 1 exit status
make[3]: *** [_usrp0.la] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]