-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External libraries on Apple OS/X systems. #2220
Comments
Comment by sjoelund.se on 6 Jan 2018 07:55 UTC |
Comment by hansolsson on 22 Mar 2018 13:50 UTC |
Modified by beutlich on 23 Mar 2018 08:05 UTC |
Cross reference: modelica/fmi-standard#302 |
Since we haven't added this yet and FMI seems to have changed compared to the original posts (using x86_64-darwin instead of darwin64) it seems that we should revisit this. |
Fixing labels to have better overview. |
Since FMI is (as noted) different and Apple have changed architecture (again) we should likely revisit this. |
Can we revisit it soon? The new Apple architecture is more common. For what FMI has at the moment see 2.5.1.4.1 Platform Tuple Definition in https://fmi-standard.org/docs/3.0-dev/#structure-of-zip |
When (if?) this is revisted, one could also consider to standardize a location for universal macOS binaries (which doesn't seem to be defined for FMI 3). |
To me "universal binaries" and directories for different architectures are two different solutions for the same problem, and I'm not sure if we need to mix them. A work-around is to put the same "universal binary" in multiple directories (ideally using a file system link) - or The FMI-3 is now: I see two proposals:
|
And ignore the current example of ABI for FMI 3 (as that compiler version cannot (easily) be automatically extracted, and Visual Studio compilers are more ABI-stable than it suggests) and hope that FMI gets a better alternative. |
We're fine with using aarch64-darwin for ARM64 Macs (and darwin64 for Intel Macs) for now but the proposal to support both naming schemes is a bit messy. Are we going to accumulate more possibilities as new naming schemes are introduced in the future? It would be cleaner to standardize this to a single scheme now. |
Web-meeting: Ask for additional comments. |
Looking at FMI3 closer, it seems fine and much nicer than FMI2. But aarch32 is a little weird since there are so many different incompatible instruction sets (arm6, arm7h, arm7l; is it hardfloat or softfloat, etc). Note that some Raspberry Pi models only support armv6 instructions and it's not like x86 extensions where you can have different instructions in the same executable; it's a totally different instruction set... We could just gloss over it and say aarch32 like FMI3 since you are likely running FMUs on such systems and not the full Modelica tool anyway. |
Reported by stefanv on 5 Jan 2018 19:07 UTC
Section 12.9.4 of the Modelica Specification lists several platform names to be used as directory names for libraries. Missing from these are names for Apple OS/X based systems. My colleague has suggested using "darwin64" as has been adopted by FMI (and I presume "darwin32" for older OS/X machines).
Migrated-From: https://trac.modelica.org/Modelica/ticket/2220
The text was updated successfully, but these errors were encountered: