Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use -isystem for LLVM if the directory is not already on the path #824

Merged
merged 1 commit into from
May 13, 2016

Conversation

tmmcguire
Copy link
Contributor

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: No such file or directory
#include_next <math.h>

Avoiding the use of -isystem if the LLVM include directory is already
on the search path should avoid the problem.

This fixes #797

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: No such file or directory
 #include_next <math.h>

Avoiding the use of -isystem if the LLVM include directory is already
on the search path should avoid the problem.

This fixes ponylang#797
@jemc
Copy link
Member

jemc commented May 12, 2016

The one CI error looks unrelated, but I'm running that matrix item again to be sure.

@SeanTAllen
Copy link
Member

Looks good. Nice work @tmmcguire.

@jemc you good with merging?

@jemc jemc merged commit 37187e1 into ponylang:master May 13, 2016
Praetonus pushed a commit to Praetonus/ponyc that referenced this pull request May 13, 2016
The fix introduced in ponylang#824 added a stray slash in the build commands when
llvm.include was empty, which caused build failures.
sylvanc pushed a commit that referenced this pull request May 13, 2016
The fix introduced in #824 added a stray slash in the build commands when
llvm.include was empty, which caused build failures.
winksaville added a commit to winksaville/ponyc that referenced this pull request Feb 21, 2019
The add lines are from PR ponylang#824 which were changed in ponylang#2976.
winksaville added a commit to winksaville/ponyc that referenced this pull request Feb 21, 2019
This fixes ponylang#3016 by adding lines back introduced in PR ponylang#824. This code
conditionally added llvm include directory only if it wasn't already
included. These lines were a small part of PR ponylang#2976 which adds LLVM
7.0.1 compatibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GCC 6.1 build failure
3 participants