Opened 14 years ago
Closed 13 years ago
#29462 closed defect (fixed)
py-pyobjc2: unrecognized command line option "-Wno-long-double"
Reported by: | brian.hudson@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | nerdling (Jeremy Lavergne) | |
Port: | py-pyobjc2 |
Description (last modified by jmroot (Joshua Root))
I ran: ports install matplotlib
This eventually failed:
---> Computing dependencies for py-matplotlib ---> Dependencies to be installed: py-pyobjc2 py-pyobjc2-cocoa py-tkinter tcl tk Xft2 fontconfig pkgconfig xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-libxcb python27 bzip2 db46 gdbm readline sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto xorg-libXScrnSaver xorg-libXext xorg-scrnsaverproto ---> Building py-pyobjc2 Error: Target org.macports.build returned: shell command failed (see log for details) Error: Failed to install py-pyobjc2 Log for py-pyobjc2 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-pyobjc2/main.log
main.log shows a gcc failure:
cc1: error: unrecognized command line option "-Wno-long-double"
I removed -Wno-long-double from setup.py, then was able to successfully install py-pyobjc2.
Apologies if I haven't opened this all properly, this is my first foray into such things, and I based this off of a similar problem I saw listed in Ticket #18800
OSX version 10.6.7 gcc 4.2.1 XCode 3.2.3
Change History (8)
comment:1 Changed 14 years ago by brian.hudson@…
Cc: | brian.hudson@… added |
---|
comment:2 Changed 14 years ago by jmroot (Joshua Root)
Cc: | brian.hudson@… removed |
---|---|
Description: | modified (diff) |
Please remember to preview and use WikiFormatting. You do not need to be in cc when you are the reporter.
Do you specifically need Python 2.4? On 10.6, it's best to use Python 2.6+.
comment:3 Changed 14 years ago by brian.hudson@…
Apologies - as soon as I posted, I realized I should have previewed. I'm not familiar with WikiFormatting, and I had just copied and pasted. I'll be sure to preview in the future.
I don't have a specific requirement for Python 2.4. What I'm actually trying to do is use Python 2.7.1 (although anything >= 2.6 would probably be fine, I was just trying to get the latest stable) and get Matplotlib working along with IPython. I think Python 2.4 came along with some of the dependencies / packages that were automatically brought in.
comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | Building py-pyobjc2 fails due to -Wno-long-double → py-pyobjc2: unrecognized command line option "-Wno-long-double" |
---|
Then you don't want py-pyobjc2, which (as are all py-* ports) for Python 2.4; you want py27-pyobjc which is for Python 2.7.
comment:5 Changed 14 years ago by brian.hudson@…
Thanks for the explanation of py-module versioning. I now see that if I wanted matplotlib for python 2.7, I should have installed py27-matplotlib. However - I would have still expected the command "port install matplotlib" to have successfully installed all necessary dependencies for matplotlib on top of python 2.4 without encountering the compile error that I hit.
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Note there is no port "matplotlib". There are ports py-matplotlib, py25-matplotlib, py26-matplotlib and py27-matplotlib, for Python versions 2.4, 2.5, 2.6 and 2.7, respectively. Yes, you're right to expect port installs to work, unfortunately some ports are broken on some systems. In this case, Python 2.4 and 2.5 are very old versions, and don't work well on 64-bit systems, such as Snow Leopard. We should probably make a concerted effort to remove Python 2.4 and 2.5 from MacPorts at this point in favor of newer versions.
comment:8 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Cc Me!