Skip to content

"Change the default build type to MinSizeRel." broke zephyr/qemu_x86 build #1526

@pfalcon

Description

@pfalcon

#1513 merged as ff8ff98 leads to:

$ make -f ./targets/zephyr/Makefile.zephyr BOARD=qemu_x86
...
/home/pfalcon/opt/zephyr-sdk-0.8.2/sysroots/i686-pokysdk-linux/usr/libexec/i586-poky-elf/gcc/i586-poky-elf/5.2.0/real-ld: zephyr_prebuilt.elf section `bss' will not fit in region `RAM'
/home/pfalcon/opt/zephyr-sdk-0.8.2/sysroots/i686-pokysdk-linux/usr/libexec/i586-poky-elf/gcc/i586-poky-elf/5.2.0/real-ld: region `RAM' overflowed by 19396 bytes
collect2: error: ld returned 1 exit status

The size quoted, 19396, is, based on the Zephyr linker map file, is the full size of "bss" section, i.e. the message kind of tells that full and exact BSS is what doesn't fit RAM, which is otherwise 192K. Surprisingly, this issue doesn't affect qemu_cortex_m3 build (RAM 64K). Based on that, it looks like a weird incompatibility with Zephyr SDK x86 toolchain or something. The issue occurs with both Zephyr 1.6.0 and master, SDK used is 0.8.2 (latest).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions