New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34719 (closed defect: fixed)

Opened 12 months ago

Last modified 11 months ago

py25-ode, py26-ode: #error You must #define dSINGLE or dDOUBLE

Reported by: dersh@… Owned by: jameskyle@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: haspatch Cc: anewman@…, ryandesign@…
Port: py25-ode, py26-ode

Description

I tried to install py26-ode. It first installs ode, which seems to build fine. But then it gives an error when it tries to build py26-ode. Here is the error:

sudo port install py26-ode
--->  Computing dependencies for py26-ode
--->  Fetching archive for py26-ode
--->  Attempting to fetch py26-ode-1.2.0_0.darwin_10.x86_64.tbz2 from http://packages.macports.org/py26-ode
--->  Fetching distfiles for py26-ode
--->  Attempting to fetch PyODE-1.2.0.tar.bz2 from http://voxel.dl.sourceforge.net/pyode
--->  Verifying checksum(s) for py26-ode
--->  Extracting py26-ode
--->  Applying patches to py26-ode
--->  Configuring py26-ode
--->  Building py26-ode
Error: org.macports.build for port py26-ode returned: command execution failed
Please see the log file for port py26-ode for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-ode/py26-ode/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py26-ode failed

I will attach the log file as well.

Attachments

main.log (212.9 KB) - added by dersh@… 12 months ago.
py26-ode build log file
patch-setup-py.diff (412 bytes) - added by dersh@… 12 months ago.
replacement patch file

Change History

Changed 12 months ago by dersh@…

py26-ode build log file

comment:1 Changed 12 months ago by ryandesign@…

  • Cc jameskyle@… removed
  • Owner changed from macports-tickets@… to jameskyle@…

The first error in the log seems to be:

/opt/local/include/ode/common.h:111:2: error: #error You must #define dSINGLE or dDOUBLE

So py25-ode and py26-ode need to define that, and it needs to be defined to match what the ode port is doing. Since the ode port uses "--enable-double-precision", ports using ode need to define dDOUBLE.

comment:2 Changed 12 months ago by dersh@…

Can this be done from the Port file? I see that the port is pretty simple, in that it just uses python setup. How can that variable be set so that it is passed into python, so that setup then compiles with the correct settings?

comment:3 Changed 12 months ago by dersh@…

I got it to work, but making a change to the patch file. I don't have permission to directly make the change, but the attached file works for me, when I use it instead of the one supplied by macports. All it does is set the dDOUBLE, as you suggested. Can you apply this as an update to the port?

Thanks,

Changed 12 months ago by dersh@…

replacement patch file

comment:4 Changed 11 months ago by ryandesign@…

  • Cc anewman@… added
  • Keywords haspatch added
  • Port changed from py26-ode to py25-ode, py26-ode
  • Summary changed from py26-ode won't build to py25-ode, py26-ode: #error You must #define dSINGLE or dDOUBLE

Has duplicate #35055.

comment:5 Changed 11 months ago by ryandesign@…

  • Status changed from new to closed
  • Cc ryandesign@… added
  • Resolution set to fixed

r94960 (maintainer timeout)

Note: See TracTickets for help on using tickets.