kasjer opened a new pull request, #3121:
URL: https://github.com/apache/mynewt-core/pull/3121

   This tries to fix error:
   Linking 
review/bin/targets/nordic_pca10056-auracast_usb/app/@apache-mynewt-nimble/apps/auracast_usb/auracast_usb.elf
 Error: Arm GNU Toolchain arm-none-eabi/13.2 
Rel1/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: 
Arm GNU Toolchain arm-none-eabi/13.2 Rel1/bin/../lib/gcc/arm-none- 
eabi/13.2.1/thumb/v7e-m/nofp\libg.a(libc_a-fflush.o): in function `fflush': 
fflush.c:(.text.fflush+0x0): multiple definition of `fflush'; 
review/bin/targets/nordic_pca10056-auracast_usb/app/@apache-mynewt-core/libc/baselibc/@apache-mynewt-core_libc_baselibc.a(mynewt.o):review/repos/apache-mynewt-core/libc/baselibc/src/mynewt.c:54:
 first defined here
   
   fflush is not used anywhere in the code but for some reason gcc 12 and 13 
complains about duplicate. When baselibc version of fflush is removed code 
compiles and links without problem and final elf does not have fflush from 
libc_a-fflush.o.
   
   Since baselib.c fflush version is practically empty making it normal static 
inline does not breaks anything and linker stops failing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to