Open LinuxUserGD opened 2 years ago
install
└─ install zig
└─ zig build-exe zig ReleaseFast arm-linux-gnueabihf failure
error: warning(link): unexpected LLD stderr:
ld.lld: warning: Linking two modules of different target triples: '/home/alexrp/Source/zig-bootstrap/zig/.zig-cache/o/01689e06a60d64e2c89337e609a9fed9/zig.o' is 'arm-unknown-linux-gnueabihf' whereas 'ld-temp.o' is 'armv6kz-unknown-linux-gnueabihf'
Not sure what could be causing this.
When producing the LLVM target triple, it needs to select the appropriate LLVM subarch for arm. In Zig we model this with CPU features instead of a "sub architecture" concept.
I'm just not clear on where exactly that subarch gets added to the triple. :thinking:
Oh, sorry, are you saying we don't currently add the appropriate Arm version to the triple but we should?
Yeah. Or maybe it had to do with assembly files taking the target differently. This is definitely my fault, I remember noticing it and thinking, "oh that's an easy fix" and then never doing it.
Host system: x86_64-gentoo-linux-musl