GithubHelp home page GithubHelp logo

Comments (5)

anirudhvr avatar anirudhvr commented on April 26, 2024 2

The SSL warnings are because Apple has "deprecated" OpenSSL for some time. This doesn't mean anything other than you should probably verify which version of OpenSSL is being linked in, and perhaps install your own using homebrew.

The actual error is that the linker can't find -latomic. I don't believe wangle is "officially" supported on OS X, but since this is part of C++11, can you try removing '-latomic' from CMakeLists and try?

from wangle.

Dalzhim avatar Dalzhim commented on April 26, 2024 1

Problem is the CMakeLists.txt file has the CXX Compiler Flags set to -std=c++11. Replace that with -std=c++14 and it'll compile fine. You can also check my pull request which fixes the OS X build : #47

from wangle.

bithavoc avatar bithavoc commented on April 26, 2024

After removing -latomic from Cmakelist I got:

[ 72%] Building CXX object CMakeFiles/AsyncTest.dir/concurrent/test/AsyncTest.cpp.o
In file included from /Users/bithavoc/Documents/Projects/wangle/wangle/concurrent/test/AsyncTest.cpp:12:
/Users/bithavoc/Documents/Projects/wangle/wangle/../wangle/concurrent/Async.h:18:1: error: 'auto' return without trailing return type; deduced return
      types are a C++14 extension
auto async(F&& fn) {
^
/Users/bithavoc/Documents/Projects/wangle/wangle/concurrent/test/AsyncTest.cpp:22:12: error: no matching function for call to 'async'
  auto f = async([]{ return 42; });
           ^~~~~
/Users/bithavoc/Documents/Projects/wangle/wangle/concurrent/test/AsyncTest.cpp:31:17: error: no matching function for call to 'async'
  auto future = async(lambda);
                ^~~~~
/Users/bithavoc/Documents/Projects/wangle/wangle/concurrent/test/AsyncTest.cpp:37:17: error: no matching function for call to 'async'
  auto future = async(lambda);
                ^~~~~
/Users/bithavoc/Documents/Projects/wangle/wangle/concurrent/test/AsyncTest.cpp:44:17: error: no matching function for call to 'async'
  auto future = async(lambda);
                ^~~~~
5 errors generated.
make[2]: *** [CMakeFiles/AsyncTest.dir/concurrent/test/AsyncTest.cpp.o] Error 1
make[1]: *** [CMakeFiles/AsyncTest.dir/all] Error 2
make: *** [all] Error 2

any tips?

Update:
I'm compiling without tests, seems to be doing the trick: cmake -DBUILD_TESTS=OFF . && make

from wangle.

snarkmaster avatar snarkmaster commented on April 26, 2024

@bithavoc, it says "types are a C++14 extension". Does your compiler speak C++14?

from wangle.

bithavoc avatar bithavoc commented on April 26, 2024

it should

 g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.29)
Target: x86_64-apple-darwin15.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

from wangle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.