-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[BUG] Compile options broken on GCC 9 #13776
Comments
RISC-V Build with GCC 10.2 is also failing: https://github.com/lupyuen/nuttx-ox64/actions/runs/11135472115/job/30945551434
But that's based on the older SiFive RISC-V Toolchain. We could probably ask devs to switch from SiFive Toolchain to the newer xPack RISC-V Toolchain (GCC 14.2), which compiles OK for Ox64. Update: BL602 won't boot when we switch SiFive Toolchain to xPack Toolchain. We might need to tweak the BL602 Makefiles to fix this: https://github.com/lupyuen/nuttx-bl602/releases/tag/upstream-2024-10-02
|
I thought I commented on this already.. I see the same issue with my toolchain:
|
@cuiziwei1 @xiaoxiang781216 for awareness! |
Sorry, we are in the national holiday until next Monday, the response will be a little bit later. |
Ubuntu 22.04 stock RiscV toolchain (in APT package $ dpkg -S $(which riscv64-unknown-elf-gcc)
gcc-riscv64-unknown-elf: /usr/bin/riscv64-unknown-elf-gcc
$ riscv64-unknown-elf-gcc -v 2>&1 | fgrep -v Config
Using built-in specs.
COLLECT_GCC=riscv64-unknown-elf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/riscv64-unknown-elf/10.2.0/lto-wrapper
Target: riscv64-unknown-elf
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 10.2.0 () |
what's error message? |
For
|
@cuiziweizw look at this problem. |
Sorry for the above problem. I have submitted a new patch #14130 to fix this problem. |
Any changes to the compiler need to take into account developers using different versions of the compiler. It is very strange why PR #13720 was merged. The impact of deleting it is to continuously apply meaningless patches. Please review the relevant commits carefully. @xiaoxiang781216 |
Description / Steps to reproduce the issue
Since commit 394a967 I can no longer compile Nuttx with make. The compile error appears to be caused by #13720 . The compile parameter that is causing the error,
min-pagesize
, was introduced in GCC version 12 (as far as I can tell).Steps to reproduce
I have both nuttx and nuttx-apps (up to date with master) in a parent directory, then in nuttx directory:
Produces the error. I have checked, the error does not occur with the previous commit (f2bdfa4).
Error
System Info
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 20.04.6 LTS
NuttX Version
master
Issue Architecture
[Arch: arm]
Issue Area
[Area: Build System]
Verification
The text was updated successfully, but these errors were encountered: