Skip to content

Linker error with GCC 6.3.1 #214

@mechatrocity

Description

@mechatrocity

When I try to build with GCC 6.3.1 I'm getting the following error;

arm-none-eabi-g++ -o examples/adc_analog_watchdog/build/small-f4-25000000e/adc_analog_watchdog.elf -Xlinker --gc-sections -mthumb -g3 -gdwarf-2 -mcpu=cortex-m4 -Texamples/adc_analog_watchdog/system/f407_168_8/Linker.ld -Wl,-wrap,__aeabi_unwind_cpp_pr0 -Wl,-wrap,__aeabi_unwind_cpp_pr1 -Wl,-wrap,__aeabi_unwind_cpp_pr2 -Wl,-wrap,atexit examples/adc_analog_watchdog/build/small-f4-25000000e/adc_analog_watchdog.o examples/adc_analog_watchdog/build/small-f4-25000000e/system/LibraryHacks.o examples/adc_analog_watchdog/build/small-f4-25000000e/system/f407_168_8/Startup.o examples/adc_analog_watchdog/build/small-f4-25000000e/system/f407_168_8/System.o lib/build/small-f4-25000000e/libstm32plus-small-f4-25000000e.a
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: error: /usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/lib/crt0.o: Conflicting CPU architectures 13/1
/usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-none-eabi/6.3.1/../../../arm-none-eabi/lib/crt0.o
collect2: error: ld returned 1 exit status
scons: *** [examples/adc_analog_watchdog/build/small-f4-25000000e/adc_analog_watchdog.elf] Error 1

Resulted from scons mode=small mcu=f4 hse=25000000.

Any known issues with this and the latest GCC?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions