Skip to content

Zephyr SDK 1.0.0-rc1 build fixes#104712

Open
keith-packard wants to merge 3 commits intozephyrproject-rtos:mainfrom
keith-packard:build-fixes
Open

Zephyr SDK 1.0.0-rc1 build fixes#104712
keith-packard wants to merge 3 commits intozephyrproject-rtos:mainfrom
keith-packard:build-fixes

Conversation

@keith-packard
Copy link
Contributor

@keith-packard keith-packard commented Feb 28, 2026

I'm cleaning up various build problems with SDK 1.0.0 that have crept into the tree. Here are three fixes:

  1. drivers/serial/uart_max32.c -- I don't think this is toolchain related, but it was pretty simple.
  2. Without __volatile__, the compiler occasionally elides asm statements that have unused output parameters. I don't think that's true for these, but it's safest to always use __volatile__.
  3. heap_constants.c was getting built with -flto=auto in some twister tests causing none of the heap constants to end up being defined.
When UART_INTERRUPT_DRIVE, PM and UART_CONSOLE_INPUT_EXPIRED are all
defined the driver uses the device flags without the necessary declaratoins
or fetching the hardware register.

Signed-off-by: Keith Packard <keithp@keithp.com>
This should prevent GCC from eliding these otherwise-unused asm statements.

Signed-off-by: Keith Packard <keithp@keithp.com>
This object file is used to have the compiler compute various constants
with the results being extracted with a python script. If LTO is used, none
of those constants will end up in the resulting object file.

Signed-off-by: Keith Packard <keithp@keithp.com>
@tpambor
Copy link
Contributor

tpambor commented Mar 1, 2026

I think a fix as in the third commit is already on main 2d747e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Build System area: Toolchains Toolchains area: UART Universal Asynchronous Receiver-Transmitter platform: ADI Analog Devices, Inc.

4 participants