#18800 closed defect (fixed)
Building py25-xml fails due to -Wno-long-double
Reported by: | hans.ekkehard.plesser@… | Owned by: | ryanwilcox@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | python distutils gcc | Cc: | MarcusCalhoun-Lopez (Marcus Calhoun-Lopez) |
Port: | py25-xml |
Description
Building py25-xml failed with
cc1: error: unrecognized command line option "-Wno-long-double" error: command 'gcc' failed with exit status 1
Configuration:
- MacPorts 1.7.0
- OSX 10.5.6
- XCode 3.1.2
- /opt/local/bin/gcc is gcc 4.3.2
The reason for the failure is that the long-deprecated -Wno-long-double
option has been removed from gcc (see also #17788).
The -Wno-long-double
option is inherited from the Python distutils.sysconfig
configuration variables and needs to be deleted in setup.py
. A patch doing this is attached.
Attachments (1)
Change History (5)
Changed 16 years ago by hans.ekkehard.plesser@…
Attachment: | py25-xml.setup.py.diff added |
---|
comment:1 Changed 16 years ago by blb@…
Owner: | changed from macports-tickets@… to ryanwilcox@… |
---|
The preferred fix would be to change
build.env CC=gcc
to
build.env CC=${configure.cc}
to use the compiler set by configure.compiler (which should be defaulting to Xcode's gcc)
comment:2 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | mcalhoun@… added |
---|
Cc Me!
comment:3 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r48766 (maintainer timeout).
Note: See
TracTickets for help on using
tickets.
Diff extending py25-xml setup.py to delete -Wno-long-double from distutils.sysconfig configuration variables.