Bug 9461 - odroidc2 - toolchain Linaro AArch64 2016.11 compile error
Summary: odroidc2 - toolchain Linaro AArch64 2016.11 compile error
Status: RESOLVED WONTFIX
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-03 16:17 UTC by kosyak
Modified: 2016-12-04 23:01 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kosyak 2016-12-03 16:17:38 UTC
I try build odroidc2_defconfig.
Select external toolchain Linaro AArch64 2016.11.

Bug out when compiling uboot:

../include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory


Then i use toolchain Linaro AArch64 2016.05 all ok.
Comment 1 romain.naour 2016-12-03 16:47:42 UTC
Hi,

The odroidc2 kernel doesn't support gcc6 yet.
Can you look if there is a newer odroidc2 kernel or try to backport this patch [1].

Thank for your report!

Best regards,
Romain Naour

[1] http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=677fa15cd6d5b0843e7b9c58409f67d656b1ec2f
Comment 2 kosyak 2016-12-03 16:56:58 UTC
How i can select external toolchain version 5 in new buildroot?
Comment 3 romain.naour 2016-12-03 17:10:45 UTC
You can't without reverting this patch [1].
The version selection for preconfigured external toolchains removed in 2016.02 release [2].

For a long term fix, the odroid kernel must be patched.

[1] https://git.buildroot.net/buildroot/commit/?id=cacfea6c263cfbfc450256b25f71dde29fa03f3b
[2] http://lists.busybox.net/pipermail/buildroot/2016-March/154535.html
Comment 4 kosyak 2016-12-03 17:30:18 UTC
Ok. Thank you.
Comment 5 romain.naour 2016-12-04 13:39:16 UTC
Hi,

The odroidc2-3.14.y branch on github [1] is still maintained and you have just to update the git hash to the latest version to fix your build issue.

Also it seems that the Amlogic S905 SoC used in your board [2] is now available with the latest kernel version (v4.8) [3].

I don't have this board, can you test with the new 3.14 hardkernel or 4.8 kernel version and summit a patch bumping the version ?

[1] https://github.com/hardkernel/linux/commits/odroidc2-3.14.y/include/linux/compiler-gcc.h
[2] http://www.hardkernel.com/main/products/prdt_info.php
[3] http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/arch/arm64/Kconfig.platforms?h=linux-4.8.y#n81
Comment 6 kosyak 2016-12-04 19:29:32 UTC
I find buildroot from hardkernel - https://github.com/hardkernel/buildroot.git
it works good. But use toolchain Linaro AArch64 2014.09 (gcc 4.9).

Other toolchains (gcc version > 4.9) not works (https://bugs.busybox.net/show_bug.cgi?id=9326).

The kernel version 4. 8 I'll try later.
Comment 7 romain.naour 2016-12-04 20:30:47 UTC
Thanks for the link to the other bug, I didn't notice the BR2_GCC_VERSION_4_9_X=y in the config file.

So event with the Linaro 2016.05 toolchain, your board shouldn't boot.

I don't see what we can do, except waiting for the odroid-c2 upstream kernel support.

Best regards,
Romain
Comment 8 Thomas Petazzoni 2016-12-04 23:01:41 UTC
Using a gcc 6.x toolchain with a kernel version too old to support gcc 6.x is not a Buildroot problem, but a configuration issue. One should either select a toolchain that uses an older gcc version, or a kernel version that is recent enough to build properly with gcc 6.x.