dartruntime icon indicating copy to clipboard operation
dartruntime copied to clipboard

Building on Mac OSX 10.7.2

Open adam-singer opened this issue 14 years ago • 5 comments

running the commands from the README produces the following errors when calling make:

19:41:37-adam@Adams-MacBook-Air:~/dart_syntheticpp/build $ make Scanning dependencies of target dart_vm [ 1%] Building CXX object CMakeFiles/dart_vm.dir/Users/adam/dart_syntheticpp/dartruntime/runtime/vm/allocation.cc.o [ 1%] Building CXX object CMakeFiles/dart_vm.dir/Users/adam/dart_syntheticpp/dartruntime/runtime/vm/assembler.cc.o cc1plus: warnings being treated as errors In file included from /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/assembler.h:12, from /Users/adam/dart_syntheticpp/dartruntime/runtime/vm/assembler.cc:5: /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h: In member function ‘int dart::Bigint::NumberOfBits() const’: /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h:2404: warning: ‘BN_num_bits’ is deprecated (declared at /usr/include/openssl/bn.h:415) /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h:2404: warning: ‘BN_num_bits’ is deprecated (declared at /usr/include/openssl/bn.h:415) /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h: In member function ‘int dart::Bigint::Bit(intptr_t) const’: /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h:2406: warning: ‘BN_is_bit_set’ is deprecated (declared at /usr/include/openssl/bn.h:469) /Users/adam/dart_syntheticpp/dartruntime/cmake/../runtime/./vm/object.h:2406: warning: ‘BN_is_bit_set’ is deprecated (declared at /usr/include/openssl/bn.h:469) make[2]: *** [CMakeFiles/dart_vm.dir/Users/adam/dart_syntheticpp/dartruntime/runtime/vm/assembler.cc.o] Error 1 make[1]: *** [CMakeFiles/dart_vm.dir/all] Error 2 make: *** [all] Error 2

adam-singer avatar Dec 14 '11 03:12 adam-singer

This is prob not a proper fix, but did compile and run hello world after removing -Werror

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index a1d43f5..9771e5b 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -31,7 +31,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(lang "-ansi -fno-rtti -fno-exceptions") set(link "-fvisibility=hidden -fvisibility-inlines-hidden") if(GCC_VERSION VERSION_LESS 4.6)

  •    set(warn "${warn} -Werror")
    
  •    set(warn "${warn} ")
    
    endif() if(NOT GCC_VERSION VERSION_LESS 4.3) set(warn "${warn} -Wno-conversion-null -Wvla")

adam-singer avatar Dec 14 '11 03:12 adam-singer

Haven't tested it on Lion, which version has gcc there?

Maybe we have to disable -Werror always on Mac.

syntheticpp avatar Dec 14 '11 07:12 syntheticpp

Maybe, when the chance permits I will try and trace the build done from the build.py scripts and see what parameters and libraries are being passed to gcc.

On Tue, Dec 13, 2011 at 11:52 PM, Peter Kmmel < [email protected]

wrote:

Haven't tested it on Lion, which version has gcc there?

Maybe we have to disable -Werror always on Mac.


Reply to this email directly or view it on GitHub: https://github.com/syntheticpp/dartruntime/issues/1#issuecomment-3136602

http://code.google.com/p/googlefinance/ http://financecoding.wordpress.com/ http://financecoding.blogspot.com/ https://github.com/financeCoding/

adam-singer avatar Dec 14 '11 22:12 adam-singer

I've checked this on 10.6, and there is now -Werror. I've disabled -Werror for all Macs: if(GCC_VERSION VERSION_LESS 4.6 AND NOT APPLE)

syntheticpp avatar Dec 14 '11 23:12 syntheticpp

Thanks!

On Wed, Dec 14, 2011 at 3:12 PM, Peter Kmmel < [email protected]

wrote:

I've checked this on 10.6, and there is now -Werror. I've disabled -Werror for all Macs: if(GCC_VERSION VERSION_LESS 4.6 AND NOT APPLE)


Reply to this email directly or view it on GitHub: https://github.com/syntheticpp/dartruntime/issues/1#issuecomment-3153939

http://code.google.com/p/googlefinance/ http://financecoding.wordpress.com/ http://financecoding.blogspot.com/ https://github.com/financeCoding/

adam-singer avatar Dec 14 '11 23:12 adam-singer