build errors on PPC iMac

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

Hi Jeff.

···

On Feb 2, 2006, at 11:51 AM, Jeff Whitaker wrote:

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. I have
-----------------
Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
Distribution: 10.4-transitional
-------------------
in /sw/etc/fink.conf.
Is this right?

At any rate, my problem is that when I did a: "sudo fink -b install matplotlib-py23" I get this:
------------------------------- sudo fink -b install matplotlib-py23 -----------------------------
Information about 4615 packages read in 4 seconds.
Failed: Internal error: node for pango1-xft2-shlibs already exists
-----------------------------------------------------------------------------------------------------------

pango1-xft2-shlibs is already installed in from the binary distro.

--------------------------------- dpkg -s pango1-xft2-shlibs -----------------------------------
Package: pango1-xft2-shlibs
Status: install ok installed
Section: gnome
Installed-Size: 1072
Maintainer: The Gnome Core Team <fink-gnome-core@lists.sourceforge.net>
Architecture: darwin-powerpc
Source: pango1-xft2
Version: 1.6.0-1
Replaces: pango1-shlibs
Provides: pango1-shlibs
Depends: gettext, glib2-shlibs (>= 2.4.0-1), libiconv, x11-shlibs, xft2-shlibs, darwin (>= 8-1)
Conflicts: pango1-xft1-shlibs
Description: GTK+ - i18n text shared libraries: for XFree86 (>= 4.3)
System for layout and rendering of internationalized text.
.
Web site: http://www.pango.org
.
Maintainer: The Gnome Core Team <fink-gnome-core@lists.sourceforge.net>
BuildDependsOnly: Undefined
-------------------------------------------------------------------------------------------------

I guess this is now off-topic since we've cascaded into fink territory, but I was hoping someone might have seen this.

Thanks much,
Craig

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