Skip to contentSkip to conversation

New: toolchain Linaro AArch64 2016.11 compile error

Buildroot bugzilla at busybox.net 1 participant 10 messages Dec 3, 2016 – Dec 4, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=9461

Bug ID: 9461
Summary: toolchain Linaro AArch64 2016.11 compile error
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: gmg.kostik at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---

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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 9461] toolchain Linaro AArch64 2016.11 compile error

https://bugs.busybox.net/show_bug.cgi?id=9461

--- Comment #1 from romain.naour at openwide.fr --- 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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 9461] toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

--- Comment #3 from romain.naour at gmail.com ---
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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 9461] toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

--- Comment #5 from romain.naour at gmail.com ---
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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 9461] toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

--- Comment #6 from kosyak <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 9461] odroidc2 - toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

kosyak <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|toolchain Linaro AArch64    |odroidc2 - toolchain Linaro
                   |2016.11 compile error       |AArch64 2016.11 compile
                   |                            |error
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 9461] odroidc2 - toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

--- Comment #7 from romain.naour at gmail.com --- 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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 9461] odroidc2 - toolchain Linaro AArch64 2016.11 compile error

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=9461

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #8 from Thomas Petazzoni <[email protected]> --- 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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.