intelxed / xed

The X86 Encoder Decoder (XED), is a software library for encoding and decoding X86 (IA32 and Intel64) instructions
https://intelxed.github.io/
Apache License 2.0
1.39k stars 145 forks source link

error: unknown target triple 'unknown' #318

Closed hxm-cpp closed 8 months ago

hxm-cpp commented 8 months ago
[EXIT_STATUS ] 1
[STDERR]
error: unknown target triple 'unknown'

[MBUILD WARNING] Command execution failed. Waiting for remaining jobs and exiting.
R: 1 P: 114 C: 3 E: 3 / 64 msecs
[COMMAND     ] clang -I./include/private -I./include/public/xed -I./include/public -Iobj -Iobj/include-private          -std=c99  -pedantic  -Wall -Wunused -Wno-long-long -Wno-unknown-pragmas -fmessage-length=0 -pipe -fomit-frame-pointer -fno-exceptions -Wformat-security -Wformat -Wstrict-prototypes -Wwrite-strings -Wredundant-decls -DXED_VERSION="v2023.12.19" -DXED_AMD_ENABLED -DXED_VIA_ENABLED -DXED_AVX -DXED_SUPPORTS_AVX512 -DXED_MPX -DXED_CET -DXED_APX -DXED_SUPPORTS_SHA -DXED_SUPPORTS_WBNOINVD -DXED_DECODER -DXED_ENCODER -DXED_SUPPORTS_LZCNT_TZCNT -DXED_BUILD -c -o obj/xed-reg-class-enum.o
[EXIT_STATUS ] 1
[STDERR]
error: unknown target triple 'unknown'

[MBUILD WARNING] Command execution failed. Waiting for remaining jobs and exiting.
R: 0 P: 114 C: 4 E: 4 / 65 msecs
[COMMAND     ] clang -I./include/private -I./include/public/xed -I./include/public -Iobj -Iobj/include-private          -std=c99  -pedantic  -Wall -Wunused -Wno-long-long -Wno-unknown-pragmas -fmessage-length=0 -pipe -fomit-frame-pointer -fno-exceptions -Wformat-security -Wformat -Wstrict-prototypes -Wwrite-strings -Wredundant-decls -DXED_VERSION="v2023.12.19" -DXED_AMD_ENABLED -DXED_VIA_ENABLED -DXED_AVX -DXED_SUPPORTS_AVX512 -DXED_MPX -DXED_CET -DXED_APX -DXED_SUPPORTS_SHA -DXED_SUPPORTS_WBNOINVD -DXED_DECODER -DXED_ENCODER -DXED_SUPPORTS_LZCNT_TZCNT -DXED_BUILD -c -o obj/xed-operand-ctype-enum.o
[EXIT_STATUS ] 1
[STDERR]
error: unknown target triple 'unknown'
marjevan commented 8 months ago

Could you please provide more details?

hxm-cpp commented 8 months ago

i'm on m1, when i try to build using the python script it fails.

hxm-cpp commented 8 months ago

i had to set it up manually for some reason a custom llvm build was causing the issue.