2025-04-08 12:20 AM - last edited on 2025-04-08 12:39 AM by Andrew Neil
Since I have a yellow exclamation mark sticking at the project icon I would like to see if it disappears when I add the CFLAG:
--no-warn-rwx-segments
in the makefile. The Debug/makefile contains a bunch of flags but misses the CFLAG which I assume to be burried in one of the includes (makefile.init, makefile.defs). Only, I cannot finde these included files. Can anyone help?
And how can I find out about the reason for the yellow exclamation mark? I was used to find this propagating downstream in the tree view attached to other files. But I don't see any "smudged" file.
2025-04-08 12:38 AM - edited 2025-04-08 1:11 AM
You can add flags in the Project settings Properties here:
@chriskuku wrote:how can I find out about the reason for the yellow exclamation mark?
If you hover your mouse over it, it should show the warning.
Also look in the Console output window.
2025-04-08 1:08 AM
Project Settings, name it better "Project Properties" - hard to find. Rightclick on the project in the tree view.
Click on Properties. The one finds C/C++ Build.
It's not in the Preferences menu item (macOS)
2025-04-08 1:13 AM
@chriskuku wrote:Project Settings, name it better "Project Properties"
Indeed - post corrected
2025-04-08 1:18 AM - edited 2025-04-08 1:34 AM
Ah, it's a linker flag. OTOH, it's passed to gcc -o . Maybe the syntax is still wrong?
arm-none-eabi-gcc: error: unrecognized command-line option '--no-warn-rwx-segments'
make[1]: *** [makefile:66: OledDrv.elf] Error 1
make: *** [makefile:59: all] Error 2
"make all" terminated with exit code 2. Build might be incomplete.
Maybe my toolchain is too old? Where can I update the toolchain?
2025-04-08 1:27 AM
Ah, yes - that figures!
2025-04-08 1:32 AM
Seems linker doesn't know of that flag. Maybe my tool chain is too old? How can I upgrade the toolchain?
2025-04-08 1:41 AM
@chriskuku wrote:Seems linker doesn't know of that flag.
What makes you say that?
2025-04-08 1:43 AM
My previous post:
arm-none-eabi-gcc: error: unrecognized command-line option '--no-warn-rwx-segments'
make[1]: *** [makefile:66: OledDrv.elf] Error 1
make: *** [makefile:59: all] Error 2
"make all" terminated with exit code 2. Build might be incomplete.
2025-04-08 1:57 AM
and was that as a Linker option, or a Compiler option ?
To pass options to the Linker via the Compiler: https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-Wl