pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/57101: cross-arm-none-eabi-gcc-8.3.0nb5 does not work with Raspberry Pi Pico SDK



>Number:         57101
>Category:       pkg
>Synopsis:       cross-arm-none-eabi-gcc-8.3.0nb5 does not work with Raspberry Pi Pico SDK
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 10 15:35:00 +0000 2022
>Originator:     Jason Thorpe
>Release:        pkgsrc-current as of Dec 10, 2022
>Organization:
RISCy Business
>Environment:
NetBSD the-ripe-vessel 9.99.82 NetBSD 9.99.82 (GENERIC) #0: Tue May 18 17:05:45 UTC 2021  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Linking pico-sdk applications doesn't work due to a duplicate symbol ("_exit") supplied both by newlib and the Pico runtime.  The newlib copy is not elided because something else is pulling in a symbol supplied by the same "syscalls.o" object that contains newlib's "_exit" symbol.  I'm still working on tracking that down.

[  0%] Linking CXX executable blink.elf
/usr/pkg/cross-arm-none-eabi/lib/gcc/arm-none-eabi/8.3.0/../../../../arm-none-eabi/bin/ld: /usr/pkg/cross-arm-none-eabi/lib/gcc/arm-none-eabi/8.3.0/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-syscalls.o): in function `_exit':
/space/pkgsrc-current/cross/arm-none-eabi-gcc/work/gcc-8.3.0/newlib/libc/sys/arm/syscalls.c:475: multiple definition of `_exit'; CMakeFiles/blink.dir/home/thorpej/Github/raspberrypi/pico-sdk/src/rp2_common/pico_runtime/runtime.c.obj:runtime.c:(.text._exit+0x0): first defined here
collect2: error: ld returned 1 exit status
*** Error code 1

>How-To-Repeat:
Install cmake and cross-arm-none-eabi-gcc packages.

Download the pico-sdk and pico-examples repos from Github, configure them per the SDK instructions, and attempt to build the "blink" example to test your SDK installation.

>Fix:
(Not yet.)



Home | Main Index | Thread Index | Old Index