Menu

#3974 Linker files are not installed

closed-fixed
None
Build
5
4 hours ago
1 day ago
No

After the standard

./configure --disable-pic14-port --disable-pic16-port
make
make install

procedure, I can not find following files in install dir: sdld6808, sdldf8, sdldgb, sdldpdk, sdldstm8, sdldz80, so when compiling a test app, linking phase fails:

sdcc -mhc08 --std-c99 --out-fmt-ihx -I.. --debug -o t1.rel -c ../t1.c
sdcc -mhc08 --std-c99 --out-fmt-ihx --debug  t1.rel  -o t1.ihx
sh: 1: sdld6808: not found
$ sdcc -v
SDCC : mcs51/z80/z180/r2k/r2ka/r3ka/r4k/r5k/r6k/sm83/tlcs90/ez80/z80n/r800/ds390/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15/mos6502/mos65c02/f8/f8l TD- 4.5.24 #16449 (Linux)
published under GNU General Public License (GPL)

Discussion

  • Philipp Klaus Krause

    This might be a duplicate of [bugs:#3972].

     

    Related

    Bugs: #3972

    • Philipp Klaus Krause

      Since [bugs:#3972] is fixed now, could you please check if this works for you? Unfortunately, you will have to do teh manual fix of your system I posted to the sdcc-user list, which I'll repeat here in case anyone not on the list comes across this bug report:

      If you did build and "make install" sdcc (from trunk or source snapshots tarball) between the beginning of March, and today, this issue most likely affects you.

      During my work on merging current upstream binutils into thr SDCC fork, I introduced a bug (https://sourceforge.net/p/sdcc/bugs/3972/). The bug resulted in "make install" installing some executables into /usr/local/bin that did not have the sd prefix the binaries from the SDCC binutils fork should have.

      This resulted in some executables, in particular addr2line, readelf, strip, size, strings being installed in /usr/local, i.e. in the user's path that did not support the host binaries (sine they were compiled with support for SDCC targest only).

      When the user attempted to e.g. do a "strip" of a host binary, /usr/local/bin/strip could be in the path and be used instead of the correct executable. Then, instead of the intended strip action on the host binary, the user would just get an error message "Unexpected character `\177' in asxxxx .rel file"

      If you are affected by the issue, you will notice executables addr2line, readelf, strip, size, strings in /usr/local/bin with the same or similar creation timestamp as /usr/local/bin/sdcc. In tha case, please:

      • Delete addr2line, readelf, strip, size, strings in /usr/local/bin
      • Use an SDCC version from before March 2026 or later than today's revision 16451.

      Philipp

       

      Related

      Bugs: #3972

  • Daniel Drotos

    Daniel Drotos - 4 hours ago
    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     

Log in to post a comment.

MongoDB Logo MongoDB