-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
os-macosmacOSmacOS
Milestone
Description
on OSX 10.15.2 (19C57)
brew install zig
zig version
0.6.0
zig build-exe --c-source thelloc.c --library c
error: unable to create target: 'Unable to find target for this triple (no targets are registered)'
1 error generated.
The following command failed:
/usr/local/Cellar/zig/0.6.0/bin/zig clang -c -nostdinc -fno-spell-checking -target x86_64-unknown-macosx-gnu -isystem /usr/local/Cellar/zig/0.6.0/lib/zig/include -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Xclang -target-cpu -Xclang skylake -Xclang -target-feature -Xclang -3dnow,-3dnowa,+64bit,+adx,+aes,+avx,+avx2,-avx512bf16,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512er,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vp2intersect,-avx512vpopcntdq,+bmi,+bmi2,-branchfusion,-cldemote,+clflushopt,-clwb,-clzero,+cmov,+cx16,+cx8,-enqcmd,+ermsb,+f16c,-false-deps-lzcnt-tzcnt,+false-deps-popcnt,-fast-11bytenop,-fast-15bytenop,-fast-bextr,+fast-gather,-fast-hops,-fast-lzcnt,+fast-scalar-fsqrt,-fast-scalar-shift-masks,+fast-shld-rotate,+fast-variable-shuffle,+fast-vector-fsqrt,-fast-vector-shift-masks,+fma,-fma4,+fsgsbase,+fxsr,-gfni,-idivl-to-divb,+idivq-to-divl,+invpcid,-lea-sp,-lea-uses-ag,-lwp,+lzcnt,+macrofusion,+merge-to-threeway-branch,+mmx,+movbe,-movdir64b,-movdiri,-mpx,-mwaitx,+nopl,-pad-short-functions,+pclmul,-pconfig,-pku,+popcnt,-prefer-128-bit,-prefer-256-bit,-prefer-mask-registers,-prefetchwt1,+prfchw,-ptwrite,-rdpid,+rdrnd,+rdseed,-retpoline,-retpoline-external-thunk,-retpoline-indirect-branches,-retpoline-indirect-calls,+rtm,+sahf,+sgx,-sha,-shstk,+slow-3ops-lea,-slow-incdec,-slow-lea,-slow-pmaddwd,-slow-pmulld,-slow-shld,-slow-two-mem-ops,-slow-unaligned-mem-16,-slow-unaligned-mem-32,-soft-float,+sse,-sse-unaligned-mem,+sse2,+sse3,+sse4.1,+sse4.2,-sse4a,+ssse3,-tbm,-use-aa,-use-glm-div-sqrt-costs,-vaes,-vpclmulqdq,+vzeroupper,-waitpkg,-wbnoinvd,+x87,-xop,+xsave,+xsavec,+xsaveopt,+xsaves -MD -MV -MF zig-cache/tmp/twKKHmKNIRM8-thelloc.o.d -g -fno-omit-frame-pointer -fsanitize=undefined -fsanitize-trap=undefined -D_DEBUG -Og -fstack-protector-strong --param ssp-buffer-size=4 -fPIC -o zig-cache/tmp/twKKHmKNIRM8-thelloc.o thelloc.c
// thelloc.c
#include <stdio.h>
int main (int argc, char *argv[]) {
printf("hello\n");
return 0;
}likewise if I do nim c -f --cc:zig hello.nim (which was my original use case, see nim-lang/Nim#13757)
note
-
which clang
/usr/bin/clang -
clang -v
Apple clang version 11.0.3 (clang-1103.0.32.29)
Target: x86_64-apple-darwin19.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin -
brew test zigworks but that doesnt' help -
I also tried specifying a target explicitly via
-target ...but nothing worked
evangrayk
Metadata
Metadata
Assignees
Labels
os-macosmacOSmacOS