Hi all.
I was wondering if anyone might have any idea why I might be getting these build errors.
···
----------------------------
building 'matplotlib._nc_transforms' extension
g++-3.3 -L/sw/lib -bundle -undefined dynamic_lookup -L/home/maloney/lib build/temp.darwin-8.2.0-PowerMacintosh-2.3/src/_nc_transforms.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/src/mplutils.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxx_extensions.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxxsupport.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/IndirectPythonInterface.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxxextensions.o -L/usr/local/lib -L/usr/lib -L/sw/lib -lstdc++ -lm -o build/lib.darwin-8.2.0-PowerMacintosh-2.3/matplotlib/_nc_transforms.so
ld: warning -L: directory name (/home/maloney/lib) does not exist
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(stdexcept.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (0))
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(stdexcept.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (4))
error: command 'g++-3.3' failed with exit status 1
------------------------------------------
Seems like the problem is that the setup process wants to link against /usr/lib/gcc/darwin/3.3/libstdc++.
I'm building with
"python2.3 setup.py build"
where python2.3 is from fink.
However, somehow, it seems like the build process wants to use apple's gcc "/usr/bin/g++-3.3", which in turn uses apple's ld "/usr/bin/ld".
Does anyone recognize the "malformed object" error?
Don't know why it's looking for libs in my home directory.
Thanks much,
Craig
Craig Maloney wrote:
Hi all.
I was wondering if anyone might have any idea why I might be getting these build errors.
----------------------------
building 'matplotlib._nc_transforms' extension
g++-3.3 -L/sw/lib -bundle -undefined dynamic_lookup -L/home/maloney/ lib build/temp.darwin-8.2.0-PowerMacintosh-2.3/src/_nc_transforms.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/src/mplutils.o build/ temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxx_extensions.o build/ temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxxsupport.o build/ temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/IndirectPythonInterface.o build/temp.darwin-8.2.0-PowerMacintosh-2.3/CXX/cxxextensions.o -L/usr/ local/lib -L/usr/lib -L/sw/lib -lstdc++ -lm -o build/lib.darwin-8.2.0- PowerMacintosh-2.3/matplotlib/_nc_transforms.so
ld: warning -L: directory name (/home/maloney/lib) does not exist
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(stdexcept.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (0))
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(stdexcept.o) malformed object, illegal reference for -dynamic code (reference to a coalesced section (__TEXT,__textcoal_nt) from section (__TEXT,__eh_frame) relocation entry (4))
error: command 'g++-3.3' failed with exit status 1
------------------------------------------
Seems like the problem is that the setup process wants to link against /usr/lib/gcc/darwin/3.3/libstdc++.
I'm building with
"python2.3 setup.py build"
where python2.3 is from fink.
However, somehow, it seems like the build process wants to use apple's gcc "/usr/bin/g++-3.3", which in turn uses apple's ld "/usr/ bin/ld".
Does anyone recognize the "malformed object" error?
Don't know why it's looking for libs in my home directory.
Thanks much,
Craig
Craig: If you export CXX=gcc, I think that error will go away. This is what the fink matplotlib package does. BTW - why don't you just "fink install matplotlib-py23" if you're using fink python?
-Jeff
···
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory
Craig Maloney wrote:
Hi Jeff.
Craig: If you export CXX=gcc, I think that error will go away. This is what the fink matplotlib package does. BTW - why don't you just "fink install matplotlib-py23" if you're using fink python?
This helps with the previous linking error, but now it's not looking for libpng the right place. (it's in /sw/lib) *argh*
I'd *like* to use the fink version. I've been trying to stick mainly to the 10.4-transitional binary distro. I'm a fink novice, so going to src scares me as I've hosed my setup before. I guess now that I'm a Mac guy (tm) -- I should probably figure it out eventually.
Craig: It's hard to imagine how you can hose your system by installing a fink package from source. Don't be afraid - just type "fink selfupdate" then "fink install matplotlib-py23" and let me know off-list if you have any problems (I'm the maintainer of the fink package).
-Jeff
···
On Feb 2, 2006, at 11:51 AM, Jeff Whitaker wrote:
--
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jeffrey.S.Whitaker@...259...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : Jeffrey S. Whitaker: NOAA Physical Sciences Laboratory