Comments (8)
I do not have OSX but it seems like readlink -f does not work:
http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac
I updated the install.sh script with an alternative. See a558a8b
Can you tell me whether it fixes your problem or not ?
from silicon.
That did help. Thanks! But it seems that clang does not support "-std=c++14", at least not the version I have. I'm installing a new version, in addition to gcc 4.9. I did some hack with sed to change c++14 into c++1y and that allowed me to install silicon (I will learn cmake to not rely on this).
When I try to compile the example I run into errors, which I suspect are due the same reason, my current clang version not supporting some c++14 features. I'm not going to paste the errors until I test the new version of clang and also gcc 4.9, nonetheless I wanted to share my results so far.
from silicon.
It works with clang++:
clang version 3.7.0
Target: x86_64-apple-darwin14.0.0
Thread model: posix
I have a problem compiling with g++ 4.9.2 related to: https://gcc.gnu.org/gcc-4.9/porting_to.html
Specifically the error is:
/usr/include/c++/4.9.0/cstddef:51:11: error: ‘::max_align_t’ has not been declared
using ::max_align_t;
from silicon.
Good to know that it works of OSX. On archlinux it compiles fine with gcc 4.9.2. Did you try to add #include at the very begining of the code?
from silicon.
Yes I did, but it gives me the same error. Actually, I also created an empty main function and just added the relevant #include (header ) at the very beginning of the code, when I compile the program it returns the same error. This makes me think that the error is on me since the gcc workaround isn't working.
I haven't had any chance to investigate this further.
from silicon.
Sorry, I just realized that the github formating was hidding the include name. I meant
#include <cstddef>
Did you add this one?
from silicon.
Yes, that was the header I included at the beginning. I didn't realize the name of the header was missing from my comment either, thanks for noticing. If I have the chance I will try again today.
from silicon.
I don't thinks there is an issue with your code but with the compiler. I'm closing this since it is possible to compile and install in OS X provided you use homebrew gcc 4.9.2.
The problem is with clang actually. You can compile silicon with the version of clang that ships with Yosemite iff you modify the std
flag to c++1y. Compiling with clang from homebrew (v 3.7.0) gives the following error:
100%] Building CXX object tools/CMakeFiles/iod_generate_symbols.dir/iod_generate_symbols.cc.o
/Users/alfonso/repos/silicon/silicon_build/externals/iod/tools/iod_generate_symbols.cc:89:21: error: implicit instantiation of undefined template
'std::__1::basic_stringstream<char, std::__1::char_traits, std::__1::allocator >'
std::stringstream symbols_content;
^
/usr/local/Cellar/llvm/HEAD/bin/../include/c++/v1/iosfwd:126:33: note: template is declared here
class _LIBCPP_TYPE_VIS_ONLY basic_stringstream;
^
1 error generated.
from silicon.
Related Issues (20)
- websocket example on your website does not compile with g++ HOT 5
- how to bind 0.0.0.0? HOT 1
- How to accept `std::vector<int>` as get or post parameter HOT 5
- Add `Content-Type: application/json` to response HOT 1
- [Error] websocketpp/config/asio_no_tls.hpp: No such file or directory HOT 2
- ws_broadcast_server.cc broadcast all clients from the server? HOT 2
- urldecode.hh compiler error HOT 1
- a convenient HTTP client for calling other APIs HOT 1
- Handling db connection at run time and documenting rest api example HOT 2
- How to submit a file? HOT 6
- Possibility to add a custom HTTP header ? HOT 4
- How to set status code of response?
- Conan package
- How to accept vector of objects? HOT 1
- CI HOT 3
- Error on run time websocket broadcast
- Documentation on adding new backends
- Can global middlewares access request & response? HOT 5
- Sql fails with iteration on list of records HOT 3
- silicon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silicon.