New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21221 (closed defect: fixed)

Opened 2 years ago

Last modified 14 months ago

inventor fails to compile 64-bit

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

Description (last modified by macsforever2000@…) (diff)

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

  Changed 2 years ago by macsforever2000@…

  • owner changed from macports-tickets@… to css@…
  • priority changed from High to Normal
  • description modified (diff)

  Changed 2 years ago by css@…

  • status changed from new to assigned
  • keywords 64bit added

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.

  Changed 2 years ago by css@…

  • summary changed from installation of "inventor" fails on Mac OS 10.6 (Snow Leopard) to 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.

follow-up: ↓ 5   Changed 2 years ago by jmr@…

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

in reply to: ↑ 4   Changed 2 years ago by css@…

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.

  Changed 2 years ago 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.

  Changed 14 months ago by jmr@…

  • status changed from assigned to closed
  • keywords LP64 added; openinventor 64bit removed
  • resolution set to fixed
  • summary changed from inventor fails to compile on Mac OS 10.6 (Snow Leopard) to inventor fails to compile 64-bit

  Changed 14 months ago by css@…

Very nice!

Note: See TracTickets for help on using tickets.