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

fix compilation with gcc6 #2

Merged
merged 1 commit into from
Sep 4, 2017
Merged

fix compilation with gcc6 #2

merged 1 commit into from
Sep 4, 2017

Conversation

sielicki
Copy link
Contributor

@sielicki sielicki commented Sep 2, 2017

Fixes: linux/compiler-gcc6.h: No such file or directory

Via macros the build will try to include a gcc version-specific header
file, but this doesn't exist for gcc6, so use gcc5's header file for
gcc6+. Tested with gcc6, didn't test with gcc7.

Signed-off-by: Nicholas Sielicki sielicki@yandex.com

Fixes: linux/compiler-gcc6.h: No such file or directory

Via macros the build will try to include a gcc version-specific header
file, but this doesn't exist for gcc6, so use gcc5's header file for
gcc6+.  Tested with gcc6, didn't test with gcc7.

Signed-off-by: Nicholas Sielicki <sielicki@yandex.com>
@mdr78 mdr78 merged commit 8b3c9d8 into mdr78:master Sep 4, 2017
@mdr78
Copy link
Owner

mdr78 commented Sep 4, 2017

Hi Nicholas,

Thanks for that!
Are you using the Galileo with Buildroot?

Ray K

@sielicki
Copy link
Contributor Author

sielicki commented Sep 5, 2017

Hey Ray, Thank you for the quick merge!

Yes, I am using a Galileo (Gen2) with Buildroot; their default toolchain now uses gcc6 and that's how/why I came across this issue. I've submitted a patch to buildroot to update the galileo defconfig to point at this commit, and you can find it here.

buildroot-auto-update pushed a commit to buildroot/buildroot that referenced this pull request Sep 5, 2017
The kernel used so far for the galileo boards would not successfully
build with GCC versions greater than 5.

See: mdr78/Linux-x1000#2

Signed-off-by: Nicholas Sielicki <sielicki@yandex.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
buildroot-auto-update pushed a commit to buildroot/buildroot that referenced this pull request Oct 16, 2017
The kernel used so far for the galileo boards would not successfully
build with GCC versions greater than 5.

See: mdr78/Linux-x1000#2

Signed-off-by: Nicholas Sielicki <sielicki@yandex.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(cherry picked from commit 62ec0af)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
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.

None yet

2 participants