| |
|
Jan Allersma ![Jan Allersma's Gravatar profile Gravatar of Jan Allersma](//www.gravatar.com/avatar/cddd7e9acdd128834222aabe421a4e77?d=identicon&s=80)
| On Monday, 30 October 2023 at 21:06:34 UTC, Richard (Rikki) Andrew Cattermole wrote:
> See: https://github.com/dlang/dub/blob/master/source/dub/compilers/ldc.d#L93
Use aarch64 instead.
Thanks! It seems to partially solve the problem. When building, the linker still expects x86_64 architecture instead of arm64:
/usr/local/homebrew/Cellar/ldc/1.35.0/bin/ldc2 -L-lstdc++ -Xcc --mv=arsd.dom=/Users/werk/.dub/packages/arsd-official/11.2.2/arsd-official/dom.d --mv=arsd.characterencodings=/Users/werk/.dub/packages/arsd-official/11.2.2/arsd-official/characterencodings.d --mv=arsd.core=/Users/werk/.dub/packages/arsd-official/11.2.2/arsd-official/core.d -march=aarch64 -c -of/Users/werk/.dub/cache/printplaat/~apple-silicon/build/application-debug-881Rj0Sg_L43vATMyoyqKA/printplaat.o -d-debug -g -w --oq -od=/Users/werk/.dub/cache/printplaat/~apple-silicon/build/application-debug-881Rj0Sg_L43vATMyoyqKA/obj -d-version=Have_printplaat -d-version=Have_arsd_official_dom -d-version=Have_arsd_official_characterencodings -d-version=Have_arsd_official_core -Isrc/ sdl_wrapper/build/arsd-official/arsd/dom.d src/app.d src/components.d src/input/delegates.d src/input/field.d src/palette.d src/persistency.d -vcolumns
Linking printplaat
/usr/local/homebrew/Cellar/ldc/1.35.0/bin/ldc2 -of/Users/werk/.dub/cache/printplaat/~apple-silicon/build/application-debug-881Rj0Sg_L43vATMyoyqKA/printplaat /Users/werk/.dub/cache/printplaat/~apple-silicon/build/application-debug-881Rj0Sg_L43vATMyoyqKA/printplaat.o ../../.dub/cache/arsd-official/11.2.2/+dom/build/library-debug-QoYAFb4-AqELlyjHCh3Bog/libarsd-official_dom.a ../../.dub/cache/arsd-official/11.2.2/+characterencodings/build/library-debug-O9UK1pRdgOznLacdyYRRLA/libarsd-official_characterencodings.a ../../.dub/cache/arsd-official/11.2.2/+core/build/library-debug-kVIIkSg8q9PWianoM_cwlw/libarsd-official_core.a -L-Lsdl_wrapper/build -L-lsdlwrapper -L-lSDL2 -L-lSDL2_ttf -L-lstdc++ -march=aarch64 -g
ld: warning: ignoring file 'sdl_wrapper/build/libSDL2_ttf.a[2](libSDL2_ttf_la-SDL_ttf.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '../../.dub/cache/arsd-official/11.2.2/+core/build/library-debug-kVIIkSg8q9PWianoM_cwlw/libarsd-official_core.a[2](arsd.core.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/Users/werk/.dub/cache/printplaat/~apple-silicon/build/application-debug-881Rj0Sg_L43vATMyoyqKA/printplaat.o': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '../../.dub/cache/arsd-official/11.2.2/+characterencodings/build/library-debug-O9UK1pRdgOznLacdyYRRLA/libarsd-official_characterencodings.a[2](arsd.characterencodings.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '../../.dub/cache/arsd-official/11.2.2/+dom/build/library-debug-QoYAFb4-AqELlyjHCh3Bog/libarsd-official_dom.a[2](arsd.dom.o)': found architecture 'arm64', required architecture 'x86_64'
ld: warning: ignoring file '/usr/local/homebrew/Cellar/ldc/1.35.0/lib/libphobos2-ldc.a[183](zlib.o)': found architecture 'arm64', required architecture 'x86_64'
(...)
And so on...
Could it have something to do with -L-lstdc++ ? Or am I supposed to use a different linker?
|