Title: mingw-w64 builds fail due to "export ordinal too large" · Issue #1725 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: mingw-w64 builds fail due to "export ordinal too large" · Issue #1725 · IfcOpenShell/IfcOpenShell
X Title: mingw-w64 builds fail due to "export ordinal too large" · Issue #1725 · IfcOpenShell/IfcOpenShell
Description: Hi there, It's been a little while and I though I would come check how this is going. Surprisingly everything compiles out of the box, but the linking is where it seems to get into trouble with some versions of MinGW, using various tools...
Open Graph Description: Hi there, It's been a little while and I though I would come check how this is going. Surprisingly everything compiles out of the box, but the linking is where it seems to get into trouble with som...
X Description: Hi there, It's been a little while and I though I would come check how this is going. Surprisingly everything compiles out of the box, but the linking is where it seems to get into trouble with...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1725
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mingw-w64 builds fail due to \"export ordinal too large\"","articleBody":"Hi there,\r\n\r\nIt's been a little while and I though I would come check how this is going.\r\n\r\nSurprisingly everything compiles out of the box, but the linking is where it seems to get into trouble with some versions of MinGW, using various tools etc. It would probably work if I didn't try to build shared libraries but given the significant filesizes involved It's really hard to justify the multiple-megabyte exectuables and modules that would get generated. Here are a few things probably at least worth mentioning:\r\n\r\nLinking a monolithic libIfcParse.dll dies with \"export ordinal too large\".. Basically it means that the dll is trying to export more than 65000 symbols in a single table I think. Looking at the debian packages I see that there was an attempt at a non-monolithic which subdivided 2x3 from 4 but mutual dependencies between the various ifcGeom dlls made it unbuildable.\r\n\r\nAlso it might be worth mentioning about how you do your symbol exports, for example the _dllexport attribute on template instances on-the-fly in some releases, sorry I don't have that file anymore but essentially the issue was with clang++ ignoring the export attribute when you do something like this:\r\nIFC_GEOM_API class ...\u003c..>\r\nAnd symbols were missing anyway from the dlls when I finally did massage it to build. Again, for some reason in these cases I have better luck when packages use -Wl,--export-all-symbols *.obj as opposed to -Wl,--whole-archive *.a but in the case of latest 0.6.0 or 0.7.0 it does not resolve the issue completely, with about a dozen symbols still missing from ifcGeom::Kernel as well as one or two from IfcParser..\r\n\r\nAnyway these are very specific linking issues limited to very niche tools. I don't know if the feedback is useful in any way but I figured it would be better to give it than not.\r\n\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/asctime","@type":"Person","name":"asctime"},"datePublished":"2021-09-06T17:20:13Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1725"}
| 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:cb0e97c7-ab56-7a41-964c-740c28874c7f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD12:3E863D:1027DD:160C5B:6B04B129 |
| html-safe-nonce | 0cf4fbd9684e611e9a1c97d0f34b03bc9b10351a1da13870803a9a82126368c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDEyOjNFODYzRDoxMDI3REQ6MTYwQzVCOjZCMDRCMTI5IiwidmlzaXRvcl9pZCI6IjUwMDk5NDIyMTQyNzM3MDgzMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d44dabee2d88afc0e77afeee81489c72babc34cc5d0bd2f4d2fc05333264ad9e |
| hovercard-subject-tag | issue:989344302 |
| 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/1725/issue_layout |
| twitter:image | https://opengraph.githubassets.com/013cc7f3c47af1ca0056f07c02dbd6479ee0d73a4ca8b2ba42ee777e226f4ac9/IfcOpenShell/IfcOpenShell/issues/1725 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/013cc7f3c47af1ca0056f07c02dbd6479ee0d73a4ca8b2ba42ee777e226f4ac9/IfcOpenShell/IfcOpenShell/issues/1725 |
| og:image:alt | Hi there, It's been a little while and I though I would come check how this is going. Surprisingly everything compiles out of the box, but the linking is where it seems to get into trouble with som... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asctime |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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