[Debian-lego-team] Bug#954598: Bug#954598: nxt-firmware: FTBFS: readr.c:49: undefined reference to `_read'
    Petter Reinholdtsen 
    pere at hungry.com
       
    Wed Aug 18 06:10:36 BST 2021
    
    
  
Hi,
[Nicolas Schodet]
> I just upgraded to bullseye and saw this.
>
> I have made a fix on my git repo:
>
> https://git.ni.fr.eu.org/nxt-firmware.git/log/
>
> Now I need to update the website and do a real release.
Nice!  What can be changed to ensure you discover such issues before
releases in the future?
For the record, this is the patch:
diff --git a/AT91SAM7S256/SAM7S256/gcc/Makefile b/AT91SAM7S256/SAM7S256/gcc/Makefile
index f236a08..ed52112 100644
--- a/AT91SAM7S256/SAM7S256/gcc/Makefile
+++ b/AT91SAM7S256/SAM7S256/gcc/Makefile
@@ -45,7 +45,7 @@ ASFLAGS = -g -mcpu=$(MCU) $(THUMB) $(THUMB_INTERWORK)
 CPPFLAGS = $(INCLUDES) $(DEFINES) -MMD
 LDSCRIPT = nxt.ld
 LDFLAGS = -nostdlib -T $(LDSCRIPT) -Wl,--gc-sections
-LDLIBS = -lc -lm -lgcc
+LDLIBS = -lc -lm -lgcc -lnosys
 
 ifeq ($(ARMDEBUG),y)
 ASM_ARM_SOURCE += abort_handler.S undef_handler.S debug_hexutils.S \
-- 
Happy hacking
Petter Reinholdtsen
    
    
More information about the Debian-lego-team
mailing list