Skip to content

Instantly share code, notes, and snippets.

@mikdusan
Created March 26, 2023 03:39
Show Gist options
  • Save mikdusan/38a15d7f51a30ae55ea049941a818dfa to your computer and use it in GitHub Desktop.
Save mikdusan/38a15d7f51a30ae55ea049941a818dfa to your computer and use it in GitHub Desktop.
llvm16 build failure
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -I/opt/llvm-macos13.0-x86_64-16.0.0-release/include -I/Users/mike/project/zig/work/llvm16b -I/Users/mike/project/zig/work/llvm16b/_build -I/Users/mike/project/zig/work/llvm16b/src -I/Users/mike/project/zig/work/llvm16b/stage1 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -std=c99 -O0 -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFiles/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:657:21: error: conflicting types for '__trunctfhf2'
zig_extern uint16_t __trunctfhf2(zig_f128);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3082:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f128, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:195:1: note: expanded from here
__trunctfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:660:21: error: conflicting types for '__truncxfhf2'
zig_extern uint16_t __truncxfhf2(zig_f80);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3081:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f80, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:189:1: note: expanded from here
__truncxfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:662:21: error: conflicting types for '__truncdfhf2'
zig_extern uint16_t __truncdfhf2(zig_f64);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3080:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f64, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:183:1: note: expanded from here
__truncdfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:663:21: error: conflicting types for '__truncsfhf2'
zig_extern uint16_t __truncsfhf2(zig_f32);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3079:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f32, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:177:1: note: expanded from here
__truncsfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:675:20: error: conflicting types for '__extendhfxf2'
zig_extern zig_f80 __extendhfxf2(uint16_t);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3091:1: note: previous declaration is here
zig_convert_builtin(zig_f80, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:249:1: note: expanded from here
__extendhfxf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:676:21: error: conflicting types for '__extendhftf2'
zig_extern zig_f128 __extendhftf2(uint16_t);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3095:1: note: previous declaration is here
zig_convert_builtin(zig_f128, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:273:1: note: expanded from here
__extendhftf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:677:20: error: conflicting types for '__extendhfdf2'
zig_extern zig_f64 __extendhfdf2(uint16_t);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3087:1: note: previous declaration is here
zig_convert_builtin(zig_f64, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:225:1: note: expanded from here
__extendhfdf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:678:20: error: conflicting types for '__extendhfsf2'
zig_extern zig_f32 __extendhfsf2(uint16_t);
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3083:1: note: previous declaration is here
zig_convert_builtin(zig_f32, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:201:1: note: expanded from here
__extendhfsf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:5113:9: error: conflicting types for '__extendhfsf2'
zig_f32 __extendhfsf2(uint16_t const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3083:1: note: previous declaration is here
zig_convert_builtin(zig_f32, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:201:1: note: expanded from here
__extendhfsf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:5221:9: error: conflicting types for '__extendhfdf2'
zig_f64 __extendhfdf2(uint16_t const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3087:1: note: previous declaration is here
zig_convert_builtin(zig_f64, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:225:1: note: expanded from here
__extendhfdf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:5329:10: error: conflicting types for '__extendhftf2'
zig_f128 __extendhftf2(uint16_t const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3095:1: note: previous declaration is here
zig_convert_builtin(zig_f128, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:273:1: note: expanded from here
__extendhftf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:5437:9: error: conflicting types for '__extendhfxf2'
zig_f80 __extendhfxf2(uint16_t const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3091:1: note: previous declaration is here
zig_convert_builtin(zig_f80, extend, zig_f16, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:249:1: note: expanded from here
__extendhfxf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:6437:10: error: conflicting types for '__truncsfhf2'
uint16_t __truncsfhf2(zig_f32 const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3079:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f32, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:177:1: note: expanded from here
__truncsfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:6609:10: error: conflicting types for '__truncdfhf2'
uint16_t __truncdfhf2(zig_f64 const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3080:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f64, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:183:1: note: expanded from here
__truncdfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:6953:10: error: conflicting types for '__truncxfhf2'
uint16_t __truncxfhf2(zig_f80 const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3081:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f80, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:189:1: note: expanded from here
__truncxfhf2
^
/Users/mike/project/zig/work/llvm16b/_build/compiler_rt.c:7629:10: error: conflicting types for '__trunctfhf2'
uint16_t __trunctfhf2(zig_f128 const a0) {
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3082:1: note: previous declaration is here
zig_convert_builtin(zig_f16, trunc, zig_f128, 2)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:3077:24: note: expanded from macro 'zig_convert_builtin'
zig_extern ResType zig_expand_concat(zig_expand_concat(zig_expand_concat(__##operation, \
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:254:37: note: expanded from macro 'zig_expand_concat'
#define zig_expand_concat(lhs, rhs) zig_concat(lhs, rhs)
^
/Users/mike/project/zig/work/llvm16b/stage1/zig.h:253:30: note: expanded from macro 'zig_concat'
#define zig_concat(lhs, rhs) lhs##rhs
^
<scratch space>:195:1: note: expanded from here
__trunctfhf2
^
16 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment