Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors on Mac OS X 10.13 High Sierra #8

Open
bgulanowski opened this issue May 19, 2018 · 4 comments
Open

Build errors on Mac OS X 10.13 High Sierra #8

bgulanowski opened this issue May 19, 2018 · 4 comments

Comments

@bgulanowski
Copy link

I used cmake 3.11.1 to generate both Xcode and Unix makefiles. I get the same errors (same clang compiler, I assume).

Here are the errors.

/Users/Shared/Code/github/accidental-noise-library/Framework/../Imaging/imaging.inl:1112:27: error: no matching
      constructor for initialization of 'std::thread'
        threads.push_back(std::thread(mapRGBA2DChunk, chunk));
                          ^           ~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Imaging/imaging.inl:1158:27: error: no matching
      constructor for initialization of 'std::thread'
        threads.push_back(std::thread(mapRGBA2DChunkNoZ, chunk));
                          ^           ~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:27:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,-1},
        ^~~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:28:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {0,-1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:29:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,-1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:30:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,0},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:31:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,0},
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:32:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {-1,1},
        ^~~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:33:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {0,1},
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Processing/erosion.inl:34:9: error: non-aggregate type
      'SDrop' cannot be initialized with an initializer list
        {1,1}
        ^~~~~
/Users/Shared/Code/github/accidental-noise-library/Framework/../Expression/expressionbuilder.inl:11:18: error: no member
      named 'emplace' in 'std::__1::map<std::__1::basic_string<char>, anl::CInstructionIndex,
      std::__1::less<std::__1::basic_string<char> >, std::__1::allocator<std::__1::pair<const
      std::__1::basic_string<char>, anl::CInstructionIndex> > >'
        return c.emplace(k, std::forward<V>(v));
               ~ ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:1529:36: error: 
      calling a private constructor of class 'std::__1::thread'
                ::new ((void*)__p) _Tp(__a0);
                                   ^
@ruohki
Copy link

ruohki commented May 26, 2018

i think this has to do with the gcc that xcode uses for example
emplace is not included in gcc < 4.8

@bgulanowski
Copy link
Author

Xcode uses clang, not gcc. On 10.13, gcc maps to clang:

$gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.4.0

@ruohki
Copy link

ruohki commented May 26, 2018

i was able to build it. i generated a simple makefile and used make to compile it

@bgulanowski
Copy link
Author

@ruohki Not sure how that helps me. 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants