ponyc: GCC 6.1 build failure
- gcc 6.1.1
Possibly related: http://developers.redhat.com/blog/2016/02/29/why-cstdlib-is-more-complicated-than-you-might-think/
For GCC 6 this has been fixed, by making the C++ library install its own version of math.h, which includes cmath, which then includes the real math.h from the C library.
(Edit: Removed <> from quote because lolmarkdown)
In file included from /usr/include/llvm/Support/DataTypes.h:35:0,
from /usr/include/llvm-c/Support.h:17,
from /usr/include/llvm-c/Core.h:18,
from src/libponyc/codegen/gendebug.h:5,
from src/libponyc/codegen/gendebug.cc:1:
/usr/include/c++/6.1.1/cmath:45:23: fatal error: math.h: No such file or directory
#include_next <math.h>
^
compilation terminated.
Makefile:445: recipe for target 'build/release/obj/libponyc/codegen/gendebug.o' failed
make: *** [build/release/obj/libponyc/codegen/gendebug.o] Error 1
make: *** Waiting for unfinished jobs....
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (12 by maintainers)
Commits related to this issue
- Use `-I` rather than `-isystem` for LLVM include directory Building on Arch Linux, using gcc 6.1.1 and LLVM 3.7.1, fails with the error: /usr/include/c++/6.1.1/cmath:45:23: fatal error: math.h: ... — committed to tmmcguire/ponyc by tmmcguire 8 years ago
- Only use -isystem for LLVM if the directory is not already on the path Building on Arch Linux, using gcc 6.1.1 and LLVM 3.7.1, fails with the error: /usr/include/c++/6.1.1/cmath:45:23: fatal error: ... — committed to tmmcguire/ponyc by tmmcguire 8 years ago
You call it snide, I call it common sense. If something doesn’t work when you do something dumb, don’t do something dumb.