-
Notifications
You must be signed in to change notification settings - Fork 14
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 failed in OSX #62
Comments
Thanks for reporting. I'll look into this. |
@pepedocs Hi, I have made Etaler buildable on OS X again Please install tbb, cmake, gcc, cereal, catch2 from homebrew Then by using the commands
Somehow compiling using clang causes linker errors. I'm still investigating that. But you should now able to have Etaler running. |
Ok thanks @marty1885 - I will try these changes. First error I've encountered by the way, I don't think this will affect Etaler core functionality though.
|
Ok I was able to build even with the errors above. There was a typo in the CMakeLists.txt file line:24. After this I tried building stackedsp.cpp but I got more errors.
|
I'm replying on the move. Pardon the quick explanation.
Seems your compiler is working in C++98/03 mode. May you provide your
compiler version? Also the error message looks like one generated by clang,
may you try GCC 9?
Jose Cueto <[email protected]> 於 2019年8月8日 週四 10:54 寫道:
… Ok I was able to build even with the errors above. There was a typo in the
CMakeLists.txt file line:24. After this I tried building stackedsp.cpp but
I got more errors.
n file included from /usr/local/include/Etaler/Etaler.hpp:4:
In file included from /usr/local/include/Etaler/Core/Shape.hpp:7:
/usr/local/include/Etaler/Core/SmallVector.hpp:93:25: error: no type named 'aligned_union' in namespace 'std'
typedef typename std::aligned_union<1, T>::type U;
~~~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/local/include/Etaler/Core/SmallVector.hpp:93:38: error: expected member name or ';' after declaration specifiers
typedef typename std::aligned_union<1, T>::type U;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:94:3: error: unknown type name 'U'
U FirstEl;
^
/usr/local/include/Etaler/Core/SmallVector.hpp:235:20: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(T &&Elt) {
^
/usr/local/include/Etaler/Core/SmallVector.hpp:341:45: warning: deleted function definitions are a C++11 extension [-Wc++11-extensions]
SmallVectorImpl(const SmallVectorImpl&) = delete;
^
/usr/local/include/Etaler/Core/SmallVector.hpp:431:20: error: no template named 'initializer_list' in namespace 'std'
void append(std::initializer_list<T> IL) {
~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:443:20: error: no template named 'initializer_list' in namespace 'std'
void assign(std::initializer_list<T> IL) {
~~~~~^
/usr/local/include/Etaler/Core/SmallVector.hpp:481:33: warning: rvalue references are a C++11 extension [-Wc++11-extensions]```
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#62?email_source=notifications&email_token=ACDCSSJ5NNFHHBRQQYXE4LTQDODH7A5CNFSM4IJ3PT2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32IWVQ#issuecomment-519342934>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACDCSSPAOYEOBY473ERX7I3QDODH7ANCNFSM4IJ3PT2A>
.
|
Replicate: Build by following the instructions in building from source.
Expected: Build should pass.
Observed: Build failed.
Environment
The text was updated successfully, but these errors were encountered: