clang driver crashes in Debug mode for powerpc when given full triple #64194
Labels
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Compiling with :
clang -target powerpc64-unknown-unknown-gnu -mabi=elfv2 test.c
It should just give as release binary gives
/usr/bin/ld: unrecognised emulation mode: elf64ppc Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe clang: error: linker command failed with exit code 1 (use -v to see invocation)
But instead it crashes with following stack trace..
The reason is, in triple when we give unknown as OS type it selects
hurd
instead of linux or Host OS.The text was updated successfully, but these errors were encountered: