You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When building with CFE, this ultimately triggers a (seemingly) unrelated error:
i386-rtems4.11-gcc: error: unrecognized command line option '--whole-archive'
i386-rtems4.11-gcc: error: unrecognized command line option '--no-whole-archive'
To Reproduce
Build software for i686-rtems4.11 per README instructions and example toolchain
Expected behavior
Build should succeed without warnings or errors
System observed on:
Ubuntu 18.04 LTS 64-bit (build host) building for i686-rtems4.11
Additional context
This regression was introduced when CFE added logic to inspect the variable CMAKE_EXE_EXPORTS_C_FLAG and use the same flags for the --[no-]whole-archive option on the link line. Normally CMAKE_EXE_EXPORTS_C_FLAG is exported by the platform module, but not in the locally-provided RTEMS module.
RTEMS uses the compiler to perform linking (gcc) and as such it needs the -Wl, prefix. It may also benefit from --export-dynamic anyway so it is a good idea to include this.
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered:
Addresses various compatibility/usability issues observed during testing
- Correctly set/export the CMAKE_EXE_EXPORTS_C_FLAG
- Incorporate the system specs directly into the COMPILE_OBJECT templates
so these don't need to be specified by the toolchain or CMAKE_C_FLAGS
- Similarly include the always-needed linker flags flags for entry point
and relocation address into the linker command template
Describe the bug
When building with CFE, this ultimately triggers a (seemingly) unrelated error:
To Reproduce
Build software for i686-rtems4.11 per README instructions and example toolchain
Expected behavior
Build should succeed without warnings or errors
System observed on:
Ubuntu 18.04 LTS 64-bit (build host) building for i686-rtems4.11
Additional context
This regression was introduced when CFE added logic to inspect the variable
CMAKE_EXE_EXPORTS_C_FLAG
and use the same flags for the--[no-]whole-archive
option on the link line. NormallyCMAKE_EXE_EXPORTS_C_FLAG
is exported by the platform module, but not in the locally-provided RTEMS module.RTEMS uses the compiler to perform linking (gcc) and as such it needs the
-Wl,
prefix. It may also benefit from--export-dynamic
anyway so it is a good idea to include this.Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: