Open jaredpmclaughlin opened 2 years ago
Using VSCode and GCC 10.1.0 x86_64-apple-darwin15 : [main] Building folder: ircb [build] Starting build [proc] Executing command: /usr/local/bin/cmake --build /Users/jaredm/ircb/build --config Debug --target all -j 4 -- [build] [4/14 7% :: 0.459] Building CXX object CMakeFiles/ircb.dir/client.cpp.o [build] FAILED: CMakeFiles/ircb.dir/client.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -g -std=c++17 -g -MD -MT CMakeFiles/ircb.dir/client.cpp.o -MF CMakeFiles/ircb.dir/client.cpp.o.d -o CMakeFiles/ircb.dir/client.cpp.o -c ../client.cpp [build] error: invalid value 'c++17' in '-std=c++17' [build] [4/14 14% :: 0.460] Building CXX object CMakeFiles/ircb.dir/irc.cpp.o [build] FAILED: CMakeFiles/ircb.dir/irc.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -g -std=c++17 -g -MD -MT CMakeFiles/ircb.dir/irc.cpp.o -MF CMakeFiles/ircb.dir/irc.cpp.o.d -o CMakeFiles/ircb.dir/irc.cpp.o -c ../irc.cpp [build] error: invalid value 'c++17' in '-std=c++17' [build] [4/14 21% :: 2.695] Building CXX object CMakeFiles/parse_test.dir/irc.cpp.o [build] FAILED: CMakeFiles/parse_test.dir/irc.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -isystem _deps/googletest-src/googletest/include -isystem _deps/googletest-src/googletest -g -std=gnu++11 -MD -MT CMakeFiles/parse_test.dir/irc.cpp.o -MF CMakeFiles/parse_test.dir/irc.cpp.o.d -o CMakeFiles/parse_test.dir/irc.cpp.o -c ../irc.cpp [build] ../irc.cpp:58:24: error: no member named 'make_unique' in namespace 'std' [build] this->inbuf = std::make_unique<char[]>(this->insz); [build] ~^ [build] ../irc.cpp:58:40: error: expected '(' for function-style cast or type construction [build] this->inbuf = std::make_unique<char[]>(this->insz); [build] ~~~~^ [build] ../irc.cpp:98:16: warning: enumeration value 'MODE' not handled in switch [-Wswitch] [build] switch(state) { [build] ^ [build] 1 warning and 2 errors generated. [build] [4/14 28% :: 5.298] Building CXX object CMakeFiles/parse_test.dir/irc_protocol_tests.cpp.o [build] ninja: build stopped: subcommand failed. [build] Build finished with exit code 1
It looks like apple-clang does all sorts of wild things. I've added a special area to cmake files just to get compiler flags to work and still have stl issues.
Using VSCode and GCC 10.1.0 x86_64-apple-darwin15 : [main] Building folder: ircb [build] Starting build [proc] Executing command: /usr/local/bin/cmake --build /Users/jaredm/ircb/build --config Debug --target all -j 4 -- [build] [4/14 7% :: 0.459] Building CXX object CMakeFiles/ircb.dir/client.cpp.o [build] FAILED: CMakeFiles/ircb.dir/client.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -g -std=c++17 -g -MD -MT CMakeFiles/ircb.dir/client.cpp.o -MF CMakeFiles/ircb.dir/client.cpp.o.d -o CMakeFiles/ircb.dir/client.cpp.o -c ../client.cpp [build] error: invalid value 'c++17' in '-std=c++17' [build] [4/14 14% :: 0.460] Building CXX object CMakeFiles/ircb.dir/irc.cpp.o [build] FAILED: CMakeFiles/ircb.dir/irc.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -g -std=c++17 -g -MD -MT CMakeFiles/ircb.dir/irc.cpp.o -MF CMakeFiles/ircb.dir/irc.cpp.o.d -o CMakeFiles/ircb.dir/irc.cpp.o -c ../irc.cpp [build] error: invalid value 'c++17' in '-std=c++17' [build] [4/14 21% :: 2.695] Building CXX object CMakeFiles/parse_test.dir/irc.cpp.o [build] FAILED: CMakeFiles/parse_test.dir/irc.cpp.o [build] /Library/Developer/CommandLineTools/usr/bin/c++ -isystem _deps/googletest-src/googletest/include -isystem _deps/googletest-src/googletest -g -std=gnu++11 -MD -MT CMakeFiles/parse_test.dir/irc.cpp.o -MF CMakeFiles/parse_test.dir/irc.cpp.o.d -o CMakeFiles/parse_test.dir/irc.cpp.o -c ../irc.cpp [build] ../irc.cpp:58:24: error: no member named 'make_unique' in namespace 'std' [build] this->inbuf = std::make_unique<char[]>(this->insz); [build]
~^ [build] ../irc.cpp:58:40: error: expected '(' for function-style cast or type construction [build] this->inbuf = std::make_unique<char[]>(this->insz); [build] ~~~~^ [build] ../irc.cpp:98:16: warning: enumeration value 'MODE' not handled in switch [-Wswitch] [build] switch(state) { [build] ^ [build] 1 warning and 2 errors generated. [build] [4/14 28% :: 5.298] Building CXX object CMakeFiles/parse_test.dir/irc_protocol_tests.cpp.o [build] ninja: build stopped: subcommand failed. [build] Build finished with exit code 1