Menu ▾ ▴

#4256 Rebuilding just z80 library

open
nobody
None
Build
5
2026-11-16
2026-11-15
No

I can still build the library via "make" in sdcc/ or sdcc/device/lib/.

But it used to be possible to do this for a single port, too. Now however, it fails:

philipp@notebook7:~/sdcc-trunk/sdcc/device/lib/z80$ make clean
rm -f *.rel *.sym *.lst *~  *.dump* *.asm *.lib
philipp@notebook7:~/sdcc-trunk/sdcc/device/lib/z80$ make -k
…
/home/philipp/sdcc-trunk/sdcc/bin/sdcc  --std-c23 --max-allocs-per-node 32768 -I../../../device/include -I../../../device/include/ -I.  -c ./../_fsneq.c -o _fsneq.rel
./../_fsneq.c:58: error 98: conflict with previous declaration of '__fsneq' for attribute 'reentrant' at (null):1
…
/home/philipp/sdcc-trunk/sdcc/bin/sdcc  --std-c23 --max-allocs-per-node 32768 -I../../../device/include -I../../../device/include/ -I.  -c ./../z80-common/memset.c -o memset.rel
./../z80-common/memset.c:37: error 98: conflict with previous declaration of 'memset' for attribute 'type' at ../../../device/include/string.h:208

Looks like the target is missing now from the compiler invokation.

Discussion

  • Philipp Klaus Krause

    • summary: Rebuildingjust z80 library --> Rebuilding just z80 library
     
  • Philipp Klaus Krause

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,8 +5,13 @@
     ~~~~
     philipp@notebook7:~/sdcc-trunk/sdcc/device/lib/z80$ make clean
     rm -f *.rel *.sym *.lst *~  *.dump* *.asm *.lib
    -philipp@notebook7:~/sdcc-trunk/sdcc/device/lib/z80$ make
    +philipp@notebook7:~/sdcc-trunk/sdcc/device/lib/z80$ make -k
     …
     /home/philipp/sdcc-trunk/sdcc/bin/sdcc  --std-c23 --max-allocs-per-node 32768 -I../../../device/include -I../../../device/include/ -I.  -c ./../_fsneq.c -o _fsneq.rel
     ./../_fsneq.c:58: error 98: conflict with previous declaration of '__fsneq' for attribute 'reentrant' at (null):1
    +…
    +/home/philipp/sdcc-trunk/sdcc/bin/sdcc  --std-c23 --max-allocs-per-node 32768 -I../../../device/include -I../../../device/include/ -I.  -c ./../z80-common/memset.c -o memset.rel
    +./../z80-common/memset.c:37: error 98: conflict with previous declaration of 'memset' for attribute 'type' at ../../../device/include/string.h:208
     ~~~~
    +
    +Looks like the target is missing now from the compiler invokation.
    
     
  • Gabriele Gorla

    Gabriele Gorla - 2026-11-16

    several variables are inherited from the parent makefile.
    I usually build a single target with:
    make model-z80
    from device/lib

    Is this acceptable?

     

Log in to post a comment.