Hello,
I'm trying to compile RP2350_Support branch on a new installation of Ubuntu 24.04, which comes with gcc 13.2.1:
I encounter several warnings like:
And then make stops with:
Does somebody have any clues?
There is already another thread on these "first 256 bytes of the binary": viewtopic.php?t=362273, but without any solution.
I'm going to check if I have similar issues with some of my other projects, like https://github.com/CHiPs44/hagl_pico_vg ... e/textmode which is the last I compiled before getting my new PC.
I'm trying to compile RP2350_Support branch on a new installation of Ubuntu 24.04, which comes with gcc 13.2.1:
Code:
$ arm-none-eabi-gcc --versionarm-none-eabi-gcc (15:13.2.rel1-2) 13.2.1 20231009Copyright (C) 2023 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code:
[ 45%] Building C object CMakeFiles/pt52-lua.dir/home/chips/src/pico-sdk/src/rp2_common/pico_unique_id/unique_id.c.objIn file included from /home/chips/src/pico-sdk/lib/tinyusb/src/osal/osal.h:61, from /home/chips/src/pico-sdk/lib/tinyusb/src/tusb.h:38, from /home/chips/src/pico-sdk/lib/tinyusb/hw/bsp/board_api.h:39, from /home/chips/src/pico-sdk/src/rp2_common/tinyusb/include/bsp/board.h:10, from /home/chips/src/pt52-lua/usb-keyboard.c:12:/home/chips/src/pico-sdk/lib/tinyusb/src/osal/osal_pico.h: In function 'osal_queue_create':/home/chips/src/pico-sdk/lib/tinyusb/src/osal/osal_pico.h:120:25: warning: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Waddress-of-packed-member]
Code:
[ 98%] Building C object CMakeFiles/pt52-lua.dir/home/chips/src/pico-sdk/lib/tinyusb/hw/bsp/rp2040/family.c.obj[100%] Linking CXX executable pt52-lua.elf/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/lib/thumb/v8-m.main+fp/softfp/libg.a(libc_a-unlinkr.o): in function `_unlink_r':/build/newlib-38V0JC/newlib-4.4.0.20231231/build/arm-none-eabi/thumb/v8-m.main+fp/softfp/newlib/../../../../../../newlib/libc/reent/unlinkr.c:47:(.text+0xc): warning: _unlink is not implemented and will always fail/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: /usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/lib/thumb/v8-m.main+fp/softfp/libg.a(libc_a-unlinkr.o): note: the message above does not take linker garbage collection into account/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: Binary info must be in first 256 bytes of the binarycollect2: error: ld returned 1 exit statusmake[2]: *** [CMakeFiles/pt52-lua.dir/build.make:2346 : pt52-lua.elf] Erreur 1make[1]: *** [CMakeFiles/Makefile2:2244 : CMakeFiles/pt52-lua.dir/all] Erreur 2make: *** [Makefile:91 : all] Erreur 2
There is already another thread on these "first 256 bytes of the binary": viewtopic.php?t=362273, but without any solution.
I'm going to check if I have similar issues with some of my other projects, like https://github.com/CHiPs44/hagl_pico_vg ... e/textmode which is the last I compiled before getting my new PC.
Statistics: Posted by CHiPs44 — Tue Dec 03, 2024 8:21 pm