ctools icon indicating copy to clipboard operation
ctools copied to clipboard

macOS Catalina w/ command line tools can't compile

Open jritorto opened this issue 4 years ago • 1 comments

% cd src % make g++ -O -Wall -DVERSION="V0.4" -c -o d64dump.o d64dump.cc g++ -O -Wall -DVERSION="V0.4" -c -o dump.o dump.cc g++ -O -Wall -DVERSION="V0.4" -c -o misc.o misc.cc g++ -O -Wall -DVERSION="V0.4" -c -o err.o err.cc g++ -O -Wall -DVERSION="V0.4" -c -o d64.o d64.cc In file included from d64.cc:22: In file included from ./err.h:24: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:100: In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:311: /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:740:29: error: redefinition of '__libcpp_is_integral' template <> struct __libcpp_is_integral : public true_type {}; ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:739:29: note: previous definition is here template <> struct __libcpp_is_integral : public true_type {}; ^ 1 error generated. make: *** [d64.o] Error 1 % uname -a Darwin turwilliger.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64

jritorto avatar Oct 23 '21 23:10 jritorto

Seems to be fixed with clang 16

$ clang -v
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

polluks avatar Oct 29 '24 20:10 polluks