Coder Social home page Coder Social logo

Comments (8)

matt-42 avatar matt-42 commented on August 10, 2024

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.

lhigueragamboa avatar lhigueragamboa commented on August 10, 2024

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.

lhigueragamboa avatar lhigueragamboa commented on August 10, 2024

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.

matt-42 avatar matt-42 commented on August 10, 2024

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.

lhigueragamboa avatar lhigueragamboa commented on August 10, 2024

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.

matt-42 avatar matt-42 commented on August 10, 2024

Sorry, I just realized that the github formating was hidding the include name. I meant

#include <cstddef>

Did you add this one?

from silicon.

lhigueragamboa avatar lhigueragamboa commented on August 10, 2024

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.

lhigueragamboa avatar lhigueragamboa commented on August 10, 2024

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)

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.