[MacPorts] #21221: installation of "inventor" fails on Mac OS 10.6 (Snow Leopard)
#21221: installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) -------------------------------+-------------------------------------------- Reporter: korsch@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor | Port: inventor -------------------------------+-------------------------------------------- The installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) due to: error: cast from 'void*' to 'int' loses precision and error: cast from 'void*' to 'XrmQuark' loses precision I try to compile (port install) this on a MacBook Pro (32 bit), gcc 4.2.1 -- Ticket URL: <http://trac.macports.org/ticket/21221> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) -------------------------------+-------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor | Port: inventor -------------------------------+-------------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => css@… * priority: High => Normal Old description:
The installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) due to:
error: cast from 'void*' to 'int' loses precision
and
error: cast from 'void*' to 'XrmQuark' loses precision
I try to compile (port install) this on a MacBook Pro (32 bit), gcc 4.2.1
New description: The installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) due to: {{{ error: cast from 'void*' to 'int' loses precision }}} and {{{ error: cast from 'void*' to 'XrmQuark' loses precision }}} I try to compile (port install) this on a MacBook Pro (32 bit), gcc 4.2.1 -- -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor 64bit | Port: inventor --------------------------------+------------------------------------------- Changes (by css@…): * keywords: openinventor => openinventor 64bit * status: new => assigned Comment: It looks like there are some definite 64-bit portability issues ... I don't know if Inventor ever supported 64-bit cleanly. Since the API is about 19 years old at this point, it's probably not something that can be cleanly resolved. I'll take a look into it, but I'm traveling this weekend, so it might be a while. -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile on Mac OS 10.6 (Snow Leopard) --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor 64bit | Port: inventor --------------------------------+------------------------------------------- Comment(by css@…): It does support 64-bit, so it might be a matter of tweaking the build settings. I'll have to dive through the upstream sources on this one. -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile on Mac OS 10.6 (Snow Leopard) --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor 64bit | Port: inventor --------------------------------+------------------------------------------- Comment(by jmr@…): Doesn't the description say this is happening on a 32-bit machine? -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile on Mac OS 10.6 (Snow Leopard) --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor 64bit | Port: inventor --------------------------------+------------------------------------------- Comment(by css@…): Replying to [comment:4 jmr@…]:
Doesn't the description say this is happening on a 32-bit machine?
Yes, but the root cause of the issue is the change in pointer size. The compiler generates the error when casting from a 64-bit void* to a 32-bit integer. I'll have to check the build to get more details, but hopefully there are some flags to manage different data type sizes among the supported platforms. -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile on Mac OS 10.6 (Snow Leopard) --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: openinventor 64bit | Port: inventor --------------------------------+------------------------------------------- Comment(by css@…): The original SGI source does include support for 64-bit IRIX and Linux, but that support has never been investigated for Mac OS X. It should be possible, but it will take some time and dedicated effort to weed through the various build settings. -- Ticket URL: <http://trac.macports.org/ticket/21221#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile 64-bit --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: LP64 Port: inventor | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: assigned => closed * keywords: openinventor 64bit => LP64 * resolution: => fixed Comment: r74013 -- Ticket URL: <https://trac.macports.org/ticket/21221#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21221: inventor fails to compile 64-bit --------------------------------+------------------------------------------- Reporter: korsch@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: LP64 Port: inventor | --------------------------------+------------------------------------------- Comment(by css@…): Very nice! -- Ticket URL: <https://trac.macports.org/ticket/21221#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts