Giter Club home page Giter Club logo

Comments (3)

toddboom avatar toddboom commented on August 15, 2024

Switching back to the non-LLVM gcc seemed to fix it as well:

export CC=gcc-4.2

from levigo.

jmhodges avatar jmhodges commented on August 15, 2024

Thanks. Please email the golang-nuts list with this information (structuring it less as a bug report, of course) if it's not yet a known gotcha. You're correct that it's not a problem levigo has solely or one that it can solve on its own.

I ask for the email, because neither levigo, nor Go will be able to guess at a user's environment very well to handle this, so putting it in a bug report here is a little narrow in purview. I believe this will have to be solved by individual developers writing Go on Mavericks just knowing they need to add the directory in their environment's CFLAGS and CXXFLAGS or similar. Apple seems to be accidentally making it more difficult to be a systems engineer on OS X on a regular basis these days. Perhaps, that is in their best interest.

from levigo.

quiqua avatar quiqua commented on August 15, 2024

I encountered the same problem and found a solution.

I installed Xcode, homebrew and all releated libs with brew (go, levigo, etc). I tried to install imposm3 (which is as well a go package and depends on levigo) I got the same errors.

If you run $ gcc -v -x c++ -E - you get something like this:

#include "..." search starts here:
#include <...> search starts here:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks (framework directory)
End of search list.

now i (re)installed the Xcode-Command-Line-Tools via $ xcode-select --install
and get the paths to /usr/local/include and /usr/include also listed in the search paths and I can install your package without any problems

from levigo.

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.