Title: macOS arm64 0.9: CGAL kernels cannot load, default hybrid kernel breaks Open IFC Project · Issue #9760 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: macOS arm64 0.9: CGAL kernels cannot load, default hybrid kernel breaks Open IFC Project · Issue #9760 · IfcOpenShell/IfcOpenShell
X Title: macOS arm64 0.9: CGAL kernels cannot load, default hybrid kernel breaks Open IFC Project · Issue #9760 · IfcOpenShell/IfcOpenShell
Description: On the macOS arm64 builds of the 0.9 line, the two CGAL geometry kernels cannot be loaded, so the default geometry library hybrid-cgal-simple-opencascade fails and Bonsai's Open IFC Project fails on every file (#9754 is a user hitting it...
Open Graph Description: On the macOS arm64 builds of the 0.9 line, the two CGAL geometry kernels cannot be loaded, so the default geometry library hybrid-cgal-simple-opencascade fails and Bonsai's Open IFC Project fails o...
X Description: On the macOS arm64 builds of the 0.9 line, the two CGAL geometry kernels cannot be loaded, so the default geometry library hybrid-cgal-simple-opencascade fails and Bonsai's Open IFC Project fai...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9760
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"macOS arm64 0.9: CGAL kernels cannot load, default hybrid kernel breaks Open IFC Project","articleBody":"On the macOS arm64 builds of the 0.9 line, the two CGAL geometry kernels cannot be loaded, so the default geometry library `hybrid-cgal-simple-opencascade` fails and Bonsai's Open IFC Project fails on every file (#9754 is a user hitting it on Bonsai 0.9.0 with Blender 5.2.2). Measured on the wheel inside `bonsai_py313-0.9.1-alpha260929-macos-arm64.zip`; the traceback in #9754 shows the release wheel behaves the same.\n\n**Symptom**\n\n```\n>>> ifcopenshell.geom.iterator(settings, f, geometry_library=\"hybrid-cgal-simple-opencascade\")\nRuntimeError: Invalid hybrid kernel; no match for prefix of cgal-simple-opencascade\n>>> ifcopenshell.geom.iterator(settings, f, geometry_library=\"cgal-simple\")\nRuntimeError: boost::dll::shared_library::load() failed (dlerror system message: dlopen(.../ifcopenshell_geometry_kernel_cgalsimple.dylib ...\n```\n\n`opencascade` works. The same user-level symptom appeared in #9748 (cgal-simple exits silently) and explains why #9754's file cannot be opened although nothing is wrong with it.\n\n**Cause**\n\nThe CGAL kernels and the bundled GMP and MPFR libraries reference each other by the absolute path of the build machine, not by `@loader_path`, although all four files sit in the same directory:\n\n```\n$ otool -L ifcopenshell_geometry_kernel_cgalsimple.dylib\n\t/Users/runner/work/IfcOpenShell/IfcOpenShell/build/Darwin/arm64/10.15/install/mpfr-shared-3.1.6/lib/libmpfr.4.dylib\n\t/Users/runner/work/IfcOpenShell/IfcOpenShell/build/Darwin/arm64/10.15/install/gmp-shared-6.3.0/lib/libgmp.10.dylib\n$ ls\nifcopenshell_geometry_kernel_cgal.dylib ifcopenshell_geometry_kernel_cgalsimple.dylib libgmp.10.dylib libmpfr.4.dylib\n```\n\n`libmpfr.4.dylib` references `libgmp.10.dylib` the same way. An absolute install name ignores `LC_RPATH`, so the `@loader_path` rpath that `nix/package-zip-archives.py` adds (`mac_fix_rpaths`, `stage_runtime_payload`) does not help. `check_runtime_dependencies_mac` in that script does detect this case (\"absolute path outside the package\") but only logs a warning and continues packaging.\n\n**Verified fix**\n\nOn a copy of the wheel, rewriting the four references and re-signing makes all three kernels load and convert a file (29 products with `cgal-simple`, `hybrid-cgal-simple-opencascade` and `cgal`):\n\n```\nfor lib in ifcopenshell_geometry_kernel_cgal.dylib ifcopenshell_geometry_kernel_cgalsimple.dylib libmpfr.4.dylib libgmp.10.dylib; do\n for dep in $(otool -L $lib | awk 'NR>1{print $1}' | grep '^/Users/runner'); do\n install_name_tool -change \"$dep\" \"@loader_path/$(basename $dep)\" $lib\n done\n codesign --force --sign - $lib\ndone\n```\n\nThe packaging script could do the same in `stage_runtime_payload` for any dependency that starts with `/` and whose basename is staged, and the dependency check could fail the build instead of warning. I have not checked the Intel macOS or Linux builds. Earlier report of the same class on macOS arm64: #7330 (fixed in November 2025).\n\n**User workaround until a build is fixed:** in Bonsai's load settings set Geometry Library to OpenCASCADE before loading (the `geometry_library` option in the Load Project panel), or from the Python console `bpy.context.scene.BIMProjectProperties.geometry_library = \"opencascade\"`.\n\nGenerated with the assistance of an AI coding tool.\n","author":{"url":"https://github.com/petruconduraru","@type":"Person","name":"petruconduraru"},"datePublished":"2026-10-01T09:38:54Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9760"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e678e684-3554-b3fc-6209-eaf668eb1559 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD98:249B28:4614B1:5E6208:6B04A16F |
| html-safe-nonce | 3c1919a076a382ac9cbc76dc99572cb100bce8c33096d176927a50a6482ff1fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDk4OjI0OUIyODo0NjE0QjE6NUU2MjA4OjZCMDRBMTZGIiwidmlzaXRvcl9pZCI6IjU4MzQxNDIwNzM2Njg2NTI2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4c8c796291980ab3df5d76fae379322d64742fadd1aae169141e19b984a4959 |
| hovercard-subject-tag | issue:5660130154 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9760/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0165e760ad572bb7fd735a46b22743491d1327fb6fe7bc7052a69e1474d911fc/IfcOpenShell/IfcOpenShell/issues/9760 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0165e760ad572bb7fd735a46b22743491d1327fb6fe7bc7052a69e1474d911fc/IfcOpenShell/IfcOpenShell/issues/9760 |
| og:image:alt | On the macOS arm64 builds of the 0.9 line, the two CGAL geometry kernels cannot be loaded, so the default geometry library hybrid-cgal-simple-opencascade fails and Bonsai's Open IFC Project fails o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | petruconduraru |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width