Opened 15 years ago

Closed 13 years ago

Last modified 13 years ago

#21221 closed defect (fixed)

inventor fails to compile 64-bit

Reported by: korsch@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: LP64 Cc:
Port: inventor

Description (last modified by mf2k (Frank Schima))

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

Change History (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to css@…
Priority: HighNormal

comment:2 Changed 15 years ago by cssdev

Keywords: 64bit added
Status: newassigned

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.

comment:3 Changed 15 years ago by cssdev

Summary: installation of "inventor" fails on Mac OS 10.6 (Snow Leopard)inventor fails to compile on Mac OS 10.6 (Snow Leopard)

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.

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Doesn't the description say this is happening on a 32-bit machine?

comment:5 in reply to:  4 Changed 15 years ago by cssdev

Replying to 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.

comment:6 Changed 14 years ago by cssdev

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.

comment:7 Changed 13 years ago by jmroot (Joshua Root)

Keywords: LP64 added; openinventor 64bit removed
Resolution: fixed
Status: assignedclosed
Summary: inventor fails to compile on Mac OS 10.6 (Snow Leopard)inventor fails to compile 64-bit

comment:8 Changed 13 years ago by cssdev

Very nice!

Note: See TracTickets for help on using tickets.