Undefined symbol: ___cxa_atexit

Hi,

I used the simple application ios template and set use toffee v1 to no. When I build I get

               -> Task Link started for App6, Toffee-iOS.
D:                /Applications/Fire.app/Contents/Resources/lld -flavor ld64 -dynamic -arch arm64 -platform_version ios 16.4 16.4 -U __mh_dylib_header -U __mh_execute_header -rpath @executable_path -rpath @executable_path/Frameworks -L "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64" -o "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/App6" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/App6.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/App6.o" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/App6.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-0d865a06df65811e1c1c505d700b2368" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-1b97bdcc48ba5e4bc98ca9f0d4e02306" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-278490315296da353ad9e2736c9d182c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-2dcb0f1dc11e504ed4a2f143e67ed005" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-445054d28e296201f41a26ea52ede30e" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-4ff77d24c08de373f425c09265b1fe86" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-63e9113d53f9986aa38b2a38f5acd768" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-9cb8cff84b18c4e40b0c76dd386ea362" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-a3ca3b438522145206c67ef7e4e1223f" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-a4a0e5089400f7e741d393d974c1db48" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-a8845aea77b9755cdf3acd7e789e557c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-aca8c43b0093550d80c406f85e14e976" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-b633fb8279310f78e5c7312e789f4d98" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-d477103e2f6e527b183de9c4c8a5ef76" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-d84c9cd003685e42d4b6738066bfabda" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-da0ca4796da3f7fe3714f935c20aa63c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-dd3526dffc39a007469b71ab1d524de2" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Device/arm64/importlib-ef9816211702acea8e4a4de63f360122" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Device-arm64/Island.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Device-arm64/libgc.a"
E:                undefined symbol: ___cxa_atexit
                  > >>> referenced by /__windows_drive__c/ci/b/elements/937/source/islandrtl/source/island.darwin.ios.elements-externalcalls-6069268ae2f83f7c993054596767686a
                  > >>>               /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Device-arm64/Island.a(ExternalCalls-6069268ae2f83f7c993054596767686a.o):(symbol l_register_call_dtors.0+0x18)
D:                /Applications/Fire.app/Contents/Resources/lld -flavor ld64 -dynamic -arch arm64 -platform_version ios-simulator 16.4 16.4 -U __mh_dylib_header -U __mh_execute_header -rpath @executable_path -rpath @executable_path/Frameworks -L "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64" -o "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/App6" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/App6.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/App6.o" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Simulator-arm64/Island.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Simulator-arm64/libgc.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/App6.a" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-0d865a06df65811e1c1c505d700b2368" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-1b97bdcc48ba5e4bc98ca9f0d4e02306" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-278490315296da353ad9e2736c9d182c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-2dcb0f1dc11e504ed4a2f143e67ed005" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-445054d28e296201f41a26ea52ede30e" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-4ff77d24c08de373f425c09265b1fe86" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-63e9113d53f9986aa38b2a38f5acd768" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-9cb8cff84b18c4e40b0c76dd386ea362" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-a3ca3b438522145206c67ef7e4e1223f" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-a4a0e5089400f7e741d393d974c1db48" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-a8845aea77b9755cdf3acd7e789e557c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-aca8c43b0093550d80c406f85e14e976" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-b633fb8279310f78e5c7312e789f4d98" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-d477103e2f6e527b183de9c4c8a5ef76" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-d84c9cd003685e42d4b6738066bfabda" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-da0ca4796da3f7fe3714f935c20aa63c" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-dd3526dffc39a007469b71ab1d524de2" "/Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Simulator/arm64/importlib-ef9816211702acea8e4a4de63f360122"
E:                undefined symbol: ___cxa_atexit
                  > >>> referenced by /__windows_drive__c/ci/b/elements/937/source/islandrtl/source/island.darwin.ios.elements-externalcalls-6069268ae2f83f7c993054596767686a
                  > >>>               /Users/JohnMoshakis/Library/Application Support/RemObjects Software/EBuild/Obj/App6-D4C3B8962A340ECFC00B2E47F7005FA71FB4B078/Debug/Toffee-iOS/Libraries/Simulator-arm64/Island.a(ExternalCalls-6069268ae2f83f7c993054596767686a.o):(symbol l_register_call_dtors.0+0x18)

Im using xcode 14.3.1 on an m1 mac
cheers,
John

Curious. no changes to it, and latest compiler? I don’t see it here.

Thaty said, from

referenced by /__windows_drive__c/ci/b/elements/937/source/islandrtl/source/island.darwin.ios.elements-externalcalls-6069268ae2f83f7c993054596767686a

it looks like you’re referencing Island RTL from Toffee?

Yeah, its 2847

App6.zip (130.4 KB)

It has the implicit island reference

Ah: <UseLegacyToffeeMode>False</UseLegacyToffeeMode>.

So it’s an Island project ;). Did you set this manually? the template shucked not have it.

That said, I can reproduce the longer error wit Island. Will log.

Logged as bugs://E26619.

Totally missed that part :see_no_evil:

I changed Use Toffee v1 to false in settings. Is that no longer valid ?

No that’s okay, this is a bug, and should work.

The consoleapplication mac island also gives the same error. Would the bug cover that as well ?

Yeah, and that will probably make it easier to debug as well. thanx!

Fixed with latest Island RTL, if you wanna grab ad build that manually.

1 Like

bugs://E26619 was closed as fixed.

Could you update or add a community license ? I get this

Project license file for RemObjects C#  for Island expired December 13 2022

Ah, sure, i’ll update that. that said, you can build it even w/o license :wink: