[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/23906] LD Bug : Undocumented exit status 253
From: |
davidledger at live dot com.au |
Subject: |
[Bug ld/23906] LD Bug : Undocumented exit status 253 |
Date: |
Tue, 04 Dec 2018 05:32:33 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23906
--- Comment #2 from David Ledger <davidledger at live dot com.au> ---
I’m not really sure how to use ld gold with arm-embedded toolchain, I don’t
think it is included in the toolchain.
Do you know a way I can use ld.gold or lld?
I am currently working from within windows.
I tried with those flags, with debug, but same error:
collect2 version 7.2.1 20170904 (release) [ARM/embedded-7-branch revision
255204]
ld_file_name =
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe
c_file_name =
C:address@hidden/arm-none-eabi-g++.exe
nm_file_name =
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/nm.exe
strip_file_name =
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/strip.exe
c_file = C:\Users\David\AppData\Local\Temp\cc0uuTr5.c
o_file = C:\Users\David\AppData\Local\Temp\ccQPOCJ0.o
COLLECT_GCC_OPTIONS = '-mcpu=cortex-m0' '-march=armv6-m' '-mthumb' '-Os'
'-fmessage-length=0' '-ffunction-sections' '-fdata-sections' '-ffreestanding'
'-Wall' '-Wextra' '-g' '-T' '../ldscripts/mem.ld' '-T'
'../ldscripts/sections.ld' '-T' '../ldscripts/libs.ld' '-nostartfiles'
'-L../ldscripts' '-specs=nano.specs' '-o' 'uSupply Firmware V1_0.elf'
COLLECT_GCC = arm-none-eabi-g++
COMPILER_PATH =
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/
LIBRARY_PATH =
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v6-m/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../arm-none-eabi/lib/thumb/v6-m/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/;c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../arm-none-eabi/lib/
c:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe
--sysroot=c:address@hidden/arm-none-eabi
-X -o uSupply Firmware V1_0.elf -L../ldscripts
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/thumb/v6-m
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib/thumb/v6-m
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../arm-none-eabi/lib/thumb/v6-m
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/lib
-Lc:/users/david/appdata/roaming/xpacks/@gnu-mcu-eclipse/arm-none-eabi-gcc/7.2.1-1.1.5/.content/bin/../arm-none-eabi/lib
--gc-sections --no-keep-memory --reduce-memory-overhead --print-memory-usage
-Map uSupply Firmware V1_0.map ./system/src/stm32f0-stdperiph/stm32f0xx_adc.o
./system/src/stm32f0-stdperiph/stm32f0xx_can.o
./system/src/stm32f0-stdperiph/stm32f0xx_cec.o
./system/src/stm32f0-stdperiph/stm32f0xx_comp.o
./system/src/stm32f0-stdperiph/stm32f0xx_crc.o
./system/src/stm32f0-stdperiph/stm32f0xx_crs.o
./system/src/stm32f0-stdperiph/stm32f0xx_dac.o
./system/src/stm32f0-stdperiph/stm32f0xx_dbgmcu.o
./system/src/stm32f0-stdperiph/stm32f0xx_dma.o
./system/src/stm32f0-stdperiph/stm32f0xx_exti.o
./system/src/stm32f0-stdperiph/stm32f0xx_flash.o
./system/src/stm32f0-stdperiph/stm32f0xx_gpio.o
./system/src/stm32f0-stdperiph/stm32f0xx_i2c.o
./system/src/stm32f0-stdperiph/stm32f0xx_iwdg.o
./system/src/stm32f0-stdperiph/stm32f0xx_misc.o
./system/src/stm32f0-stdperiph/stm32f0xx_pwr.o
./system/src/stm32f0-stdperiph/stm32f0xx_rcc.o
./system/src/stm32f0-stdperiph/stm32f0xx_rtc.o
./system/src/stm32f0-stdperiph/stm32f0xx_spi.o
./system/src/stm32f0-stdperiph/stm32f0xx_syscfg.o
./system/src/stm32f0-stdperiph/stm32f0xx_tim.o
./system/src/stm32f0-stdperiph/stm32f0xx_usart.o
./system/src/stm32f0-stdperiph/stm32f0xx_wwdg.o ./system/src/newlib/_cxx.o
./system/src/newlib/_exit.o ./system/src/newlib/_sbrk.o
./system/src/newlib/_startup.o ./system/src/newlib/_syscalls.o
./system/src/newlib/assert.o ./system/src/diag/Trace.o
./system/src/diag/trace_impl.o ./system/src/cortexm/_initialize_hardware.o
./system/src/cortexm/_reset_hardware.o
./system/src/cortexm/exception_handlers.o ./system/src/cmsis/system_stm32f0xx.o
./system/src/cmsis/vectors_stm32f0xx.o ./src/peripherals/Interrupt.o
./src/_write.o ./src/main.o -lstdc++_nano -lm --start-group -lgcc -lg_nano
-lc_nano --end-group --start-group -lgcc -lc_nano --end-group -T
../ldscripts/mem.ld -T ../ldscripts/sections.ld -T ../ldscripts/libs.ld
collect2.exe: error: ld returned 253 exit status
[Leaving C:\Users\David\AppData\Local\Temp\cc0uuTr5.c]
[Leaving C:\Users\David\AppData\Local\Temp\ccQPOCJ0.o]
make: *** [makefile:65: uSupply Firmware V1_0.elf] Error 1
[cid:image001.png@01D448F4.339F3940]
David Ledger - Electronics Design Engineer
www.eevblog.com<http://www.eevblog.com>
Skype: david.j.ledger
________________________________
From: nickc at redhat dot com <address@hidden>
Sent: Thursday, November 22, 2018 11:22:14 PM
To: address@hidden
Subject: [Bug ld/23906] LD Bug : Undocumented exit status 253
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceware.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D23906&data=02%7C01%7C%7C8780db8dbe3a4ae4e97e08d650752582%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636784861399878197&sdata=60emLqpCzW3C5AggVAZODUl2PIgXJ0fm34h3zQZzsWc%3D&reserved=0
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
--- Comment #1 from Nick Clifton <nickc at redhat dot com> ---
Hi David,
> How can I assist you in isolating this issue?
To me this sounds like a resource issue. Ie I suspect that the linker is
running out of memory, or maybe stack space, and crashing.
Things that you can try:
* Use a newer version of the linker. The latest release is 2.31.1.
* Try running the linker with its memory overhead reduction options:
--no-keep-memory and --reduce-memory-overhead
You may also find it useful to add the --print-memory-usage option
to see if this produces any useful output.
* Try using the gold linker instead of the bfd based linker.
* Try linking on a machine with more resources available. Or, if
possible, a machine running a different OS.
* Try running the linker from inside GDB, so that it might capture
the problem. In order to obtain the command line for the linker
you can add -Wl,-debug to the g++ command line.
* See if you can create a reproducible testcase that we can examine
ourselves. I suspect however that it might be too big to upload,
but it would be worth a try.
Cheers
Nick
--
You are receiving this mail because:
You reported the bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/23906] LD Bug : Undocumented exit status 253,
davidledger at live dot com.au <=
- [Bug ld/23906] LD Bug : Undocumented exit status 253, nickc at redhat dot com, 2018/12/04
- [Bug ld/23906] LD Bug : Undocumented exit status 253, davidledger at live dot com.au, 2018/12/07
- [Bug ld/23906] LD Bug : Undocumented exit status 253, davidledger at live dot com.au, 2018/12/07
- [Bug ld/23906] LD Bug : Undocumented exit status 253, nickc at redhat dot com, 2018/12/07
- [Bug ld/23906] LD Bug : Undocumented exit status 253, nickc at redhat dot com, 2018/12/07
- [Bug ld/23906] LD Bug : Undocumented exit status 253, davidledger at live dot com.au, 2018/12/09
- [Bug ld/23906] LD Bug : Undocumented exit status 253, tnfchris at sourceware dot org, 2018/12/10
- [Bug ld/23906] LD Bug : Undocumented exit status 253, davidledger at live dot com.au, 2018/12/12
- [Bug ld/23906] LD Bug : Undocumented exit status 253, tnfchris at sourceware dot org, 2018/12/12
- [Bug ld/23906] LD Bug : Undocumented exit status 253, davidledger at live dot com.au, 2018/12/12