bsp\raspberry-pico 使用cmake方式编译报错 /nosys.specs: attempt to rename spec 'link_gcc_c_sequence' to already defined spec 'nosys_link_gcc_c_sequence' compilation terminated. #8465
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
collect2.exe: error: ld returned 1 exit status
编译日志如下
====================[ 清理 | Debug ]==============================================
C:\Users\willi\AppData\Local\Programs\CLion\bin\cmake\win\x64\bin\cmake.exe --build D:\chip_projecrt\pico_rtt\project\cmake-build-debug --target clean -- -j 14
清理 已完成
====================[ 构建 | all | Debug ]========================================
C:\Users\willi\AppData\Local\Programs\CLion\bin\cmake\win\x64\bin\cmake.exe --build D:\chip_projecrt\pico_rtt\project\cmake-build-debug --target all -- -j 14
[ 1%] Building ASM object pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj
[ 2%] Building C object CMakeFiles/rtthread.elf.dir/applications/main.c.obj
[ 3%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/cctype.c.obj
[ 4%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/cstdlib.c.obj
[ 5%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/cstring.c.obj
[ 6%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/ctime.c.obj
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/libcpu/arm/common/div0.c.obj
[ 15%] Linking ASM executable bs2_default.elf
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/core/device.c.obj
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/libcpu/cpuport.c.obj
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/cunistd.c.obj
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/libcpu/arm/common/showmem.c.obj
[ 15%] Building ASM object CMakeFiles/rtthread.elf.dir/libcpu/context_gcc.S.obj
[ 16%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/completion.c.obj
[ 15%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/common/cwchar.c.obj
[ 16%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/libc/compilers/newlib/syscalls.c.obj
arm-none-eabi-gcc.exe: fatal error: D:/portable_soft/arm-gnu-toolchain-13.2/bin/../lib/gcc/arm-none-eabi/13.2.1/nosys.specs: attempt to rename spec 'link_gcc_c_sequence' to already defined spec 'nosys_link_gcc_c_sequence'
compilation terminated.
mingw32-make.exe[2]: *** [pico-sdk\src\rp2_common\boot_stage2\CMakeFiles\bs2_default.dir\build.make:96: pico-sdk/src/rp2_common/boot_stage2/bs2_default.elf] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:1513: pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/all] Error 2
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
[ 17%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/dataqueue.c.obj
[ 18%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/pipe.c.obj
[ 20%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/ringblk_buf.c.obj
[ 21%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/ringbuffer.c.obj
[ 22%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/waitqueue.c.obj
[ 23%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/ipc/workqueue.c.obj
[ 24%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/misc/pin.c.obj
[ 25%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/drivers/serial/serial.c.obj
[ 26%] Building C object CMakeFiles/rtthread.elf.dir/board/board.c.obj
[ 27%] Building C object CMakeFiles/rtthread.elf.dir/drivers/drv_gpio.c.obj
[ 28%] Building C object CMakeFiles/rtthread.elf.dir/drivers/drv_uart.c.obj
[ 29%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/finsh/shell.c.obj
[ 30%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/finsh/msh.c.obj
[ 31%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/finsh/msh_parse.c.obj
[ 32%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/components/finsh/cmd.c.obj
[ 33%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/clock.c.obj
[ 34%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/components.c.obj
[ 35%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/idle.c.obj
[ 36%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/ipc.c.obj
[ 37%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/irq.c.obj
[ 38%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/kservice.c.obj
[ 40%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/mem.c.obj
[ 42%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/mempool.c.obj
[ 42%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/object.c.obj
[ 43%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/scheduler_up.c.obj
[ 45%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/timer.c.obj
[ 45%] Building C object CMakeFiles/rtthread.elf.dir/rt-thread/src/thread.c.obj
[ 46%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_i2c/i2c.c.obj
[ 47%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_float/float_init_rom.c.obj
[ 48%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_bootrom/bootrom.c.obj
[ 50%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_util/pheap.c.obj
[ 50%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_vreg/vreg.c.obj
[ 51%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_spi/spi.c.obj
[ 52%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_float/float_v1_rom_shim.S.obj
[ 53%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_platform/platform.c.obj
[ 54%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_stdio/stdio.c.obj
[ 55%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S.obj
[ 56%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_printf/printf.c.obj
[ 57%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_runtime/runtime.c.obj
[ 58%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_float/float_math.c.obj
[ 60%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_standard_link/crt0.S.obj
[ 61%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_xosc/xosc.c.obj
[ 62%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_double/double_init_rom.c.obj
[ 63%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_stdio_uart/stdio_uart.c.obj
[ 64%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_dma/dma.c.obj
[ 65%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_sync/critical_section.c.obj
[ 66%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_util/datetime.c.obj
[ 67%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_irq/irq_handler_chain.S.obj
[ 68%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_util/queue.c.obj
[ 69%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_adc/adc.c.obj
[ 70%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_double/double_aeabi.S.obj
[ 71%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_uart/uart.c.obj
[ 72%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_multicore/multicore.c.obj
[ 73%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_divider/divider.S.obj
[ 74%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_sync/sync.c.obj
[ 75%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_time/timeout_helper.c.obj
[ 76%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_malloc/pico_malloc.c.obj
[ 77%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_divider/divider.S.obj
[ 78%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_flash/flash.c.obj
[ 80%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_pll/pll.c.obj
[ 81%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_clocks/clocks.c.obj
[ 82%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S.obj
[ 83%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_gpio/gpio.c.obj
[ 84%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_irq/irq.c.obj
[ 85%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_stdlib/stdlib.c.obj
[ 86%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_time/time.c.obj
[ 87%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_double/double_v1_rom_shim.S.obj
[ 88%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_watchdog/watchdog.c.obj
[ 89%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_sync/sem.c.obj
[ 90%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_sync/lock_core.c.obj
[ 91%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_double/double_math.c.obj
[ 92%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_timer/timer.c.obj
[ 93%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/common/pico_sync/mutex.c.obj
[ 94%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_bit_ops/bit_ops_aeabi.S.obj
[ 95%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_standard_link/binary_info.c.obj
[ 96%] Building C object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/hardware_claim/claim.c.obj
[ 97%] Building CXX object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_standard_link/new_delete.cpp.obj
[ 98%] Building ASM object CMakeFiles/rtthread.elf.dir/packages/raspberrypi-pico-sdk-latest/src/rp2_common/pico_float/float_aeabi.S.obj
[100%] Linking CXX executable rtthread.elf.elf
D:/portable_soft/arm-gnu-toolchain-13.2/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: ERROR: Pico second stage bootloader must be 256 bytes in size
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [CMakeFiles\rtthread.elf.dir\build.make:1541: rtthread.elf.elf] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:1487: CMakeFiles/rtthread.elf.dir/all] Error 2
mingw32-make.exe: *** [Makefile:90: all] Error 2
Beta Was this translation helpful? Give feedback.
All reactions