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

Most upvoted comments

It was a close finish, but Arch surpassed in both the speed and the snide-ness of the response. 😉

You call it snide, I call it common sense. If something doesn’t work when you do something dumb, don’t do something dumb.