the -Werror has creeped back in
Removing -Werror fixes the issue. I wonder if it could be one of the other flags that disables something that -Werror covers.
21:23:26-adam@Adams-MacBook-Air:~/dart_syntheticpp/build $ make [ 0%] Building CXX object CMakeFiles/dart_corelib.dir/Users/adam/dart_syntheticpp/dartruntime/runtime/vm/bootstrap.cc.o cc1plus: warnings being treated as errors In file included from /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/assembler.h:12, from /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/runtime_entry.h:9, from /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/compiler.h:10, from /Users/adam/dart_syntheticpp/dartruntime/runtime/vm/bootstrap.cc:9: /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h: In member function ‘int dart::Bigint::NumberOfBits() const’: /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h:2420: warning: ‘BN_num_bits’ is deprecated (declared at /usr/include/openssl/bn.h:415) /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h:2420: warning: ‘BN_num_bits’ is deprecated (declared at /usr/include/openssl/bn.h:415) /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h: In member function ‘int dart::Bigint::Bit(intptr_t) const’: /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h:2422: warning: ‘BN_is_bit_set’ is deprecated (declared at /usr/include/openssl/bn.h:469) /Users/adam/dart_syntheticpp/dartruntime/runtime/./vm/object.h:2422: warning: ‘BN_is_bit_set’ is deprecated (declared at /usr/include/openssl/bn.h:469) make[2]: *** [CMakeFiles/dart_corelib.dir/Users/adam/dart_syntheticpp/dartruntime/runtime/vm/bootstrap.cc.o] Error 1 make[1]: *** [CMakeFiles/dart_corelib.dir/all] Error 2 make: *** [all] Error 2
I pulled https://github.com/syntheticpp/dartruntime/commit/448c7905bb277c2f0ae49e18bdac152555b1cb84
The -isysroot option was not used. On my machine I had installed openssl in /usr/include/openssl by ports, and it was actual enough. I assume you have an out dateded openssl in /usr/include, therefore the warning. Now cmake also sets the -isysroot option which should point to a SDK in /Developer/SDKs.
done