animetosho / par2cmdline-turbo

par2cmdline × ParPar: speed focused par2cmdline fork
http://parchive.sourceforge.net
GNU General Public License v2.0
94 stars 5 forks source link

macos - compiler error2 #2

Closed thezoggy closed 1 year ago

thezoggy commented 1 year ago

pulled latest git, still getting macos compiler error

gcc -DHAVE_CONFIG_H -I.    -march=armv8-a+sve -g -O2 -MT parpar/gf16/libparpar_gf16_sve_a-gf16_shuffle128_sve.o -MD -MP -MF parpar/gf16/.deps/libparpar_gf16_sve_a-gf16_shuffle128_sve.Tpo -c -o parpar/gf16/libparpar_gf16_sve_a-gf16_shuffle128_sve.o `test -f 'parpar/gf16/gf16_shuffle128_sve.c' || echo './'`parpar/gf16/gf16_shuffle128_sve.c
In file included from parpar/gf16/gf16_shuffle128_sve.c:2:
parpar/gf16/gf16_sve_common.h:32:39: error: call to 'svwhilelt_b8' is ambiguous
        svst1_u8(svptrue_b8(), dst, svld1_u8(svwhilelt_b8((size_t)0, remaining), src));
                                             ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15626:10: note: candidate function
svbool_t svwhilelt_b8(uint32_t, uint32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15634:10: note: candidate function
svbool_t svwhilelt_b8(uint64_t, uint64_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15642:10: note: candidate function
svbool_t svwhilelt_b8(int32_t, int32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15650:10: note: candidate function
svbool_t svwhilelt_b8(int64_t, int64_t);
         ^
In file included from parpar/gf16/gf16_shuffle128_sve.c:2:
parpar/gf16/gf16_sve_common.h:36:39: error: call to 'svwhilelt_b8' is ambiguous
        svst1_u8(svptrue_b8(), dst, svld1_u8(svwhilelt_b8((size_t)0, remaining), src));
                                             ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15626:10: note: candidate function
svbool_t svwhilelt_b8(uint32_t, uint32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15634:10: note: candidate function
svbool_t svwhilelt_b8(uint64_t, uint64_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15642:10: note: candidate function
svbool_t svwhilelt_b8(int32_t, int32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15650:10: note: candidate function
svbool_t svwhilelt_b8(int64_t, int64_t);
         ^
In file included from parpar/gf16/gf16_shuffle128_sve.c:2:
parpar/gf16/gf16_sve_common.h:39:11: error: call to 'svwhilelt_b8' is ambiguous
        svst1_u8(svwhilelt_b8((size_t)0, remaining), dst, svld1_u8(svptrue_b8(), src));
                 ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15626:10: note: candidate function
svbool_t svwhilelt_b8(uint32_t, uint32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15634:10: note: candidate function
svbool_t svwhilelt_b8(uint64_t, uint64_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15642:10: note: candidate function
svbool_t svwhilelt_b8(int32_t, int32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15650:10: note: candidate function
svbool_t svwhilelt_b8(int64_t, int64_t);
         ^
In file included from parpar/gf16/gf16_shuffle128_sve.c:2:
parpar/gf16/gf16_sve_common.h:43:11: error: call to 'svwhilelt_b8' is ambiguous
        svst1_u8(svwhilelt_b8((size_t)0, remaining), dst, svld1_u8(svptrue_b8(), src));
                 ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15626:10: note: candidate function
svbool_t svwhilelt_b8(uint32_t, uint32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15634:10: note: candidate function
svbool_t svwhilelt_b8(uint64_t, uint64_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15642:10: note: candidate function
svbool_t svwhilelt_b8(int32_t, int32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15650:10: note: candidate function
svbool_t svwhilelt_b8(int64_t, int64_t);
         ^
In file included from parpar/gf16/gf16_shuffle128_sve.c:103:
parpar/gf16/gf16_checksum_sve.h:24:21: error: call to 'svwhilelt_b8' is ambiguous
                svbool_t active = svwhilelt_b8((size_t)0, amount);
                                  ^~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15626:10: note: candidate function
svbool_t svwhilelt_b8(uint32_t, uint32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15634:10: note: candidate function
svbool_t svwhilelt_b8(uint64_t, uint64_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15642:10: note: candidate function
svbool_t svwhilelt_b8(int32_t, int32_t);
         ^
/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_sve.h:15650:10: note: candidate function
svbool_t svwhilelt_b8(int64_t, int64_t);
         ^
5 errors generated.
make[1]: *** [parpar/gf16/libparpar_gf16_sve_a-gf16_shuffle128_sve.o] Error 1
make: *** [all] Error 
animetosho commented 1 year ago

Thanks! Hopefully this covers it all.
(Apple's headers seem to have weird differences with those found on Linux, so it's possible there'll be more surprises)

thezoggy commented 1 year ago

all good, ill pull latest and try again once it lands in turbo. i compiled no problems earlier on ubuntu. so yeah deff just oddness with apple

animetosho commented 1 year ago

Urgh, I'm a mess today. Merged changes now.

thezoggy commented 1 year ago

looks like it compiled just fine now and make check passes everything as well