Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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)

py25-xml.setup.py.diff (440 bytes) - added by hans.ekkehard.plesser@… 15 years ago.
Diff extending py25-xml setup.py to delete -Wno-long-double from distutils.sysconfig configuration variables.

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by hans.ekkehard.plesser@…

Attachment: py25-xml.setup.py.diff added

Diff extending py25-xml setup.py to delete -Wno-long-double from distutils.sysconfig configuration variables.

comment:1 Changed 15 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 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:3 Changed 15 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: newclosed

Fixed in r48766 (maintainer timeout).

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.