Menu

#3110 pic14 libc does not build

closed-fixed
libc (2)
PIC14
1
2020-12-16
2020-09-10
No

Code:

 include * <string.h> // left off # to make this editor happy
char str1[10];
void main(void) {
  strcpy(str1, "testing");
}

Command:

sdcc -mpic14 -p16f887 --use-non-free test.c

SDCC Version

SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.0.3 #11850 (Linux)

Output:

sdcc -mpic14 -p16f887 --use-non-free test.c
libsdcc.lib: No such file or directory

** Traced to missing itoa **

/sdcc/device/lib/pic14$ make
make  all-recursive
make[1]: Entering directory '/home/bhenning/sdcc/device/lib/pic14'
Making all in libc
make[2]: Entering directory '/home/bhenning/sdcc/device/lib/pic14/libc'
test -e ./__assert.c || ln -s /home/bhenning/sdcc/device/lib/__assert.c __assert.c
test -e ./sprintf.c || ln -s /home/bhenning/sdcc/device/lib/sprintf.c sprintf.c
test -e ./vprintf.c || ln -s /home/bhenning/sdcc/device/lib/vprintf.c vprintf.c
make[2]: *** No rule to make target '_itoa.c', needed by 'libc_a-_itoa.o'.  Stop.
make[2]: Leaving directory '/home/bhenning/sdcc/device/lib/pic14/libc'
make[1]: *** [Makefile:436: all-recursive] Error 1
make[1]: Leaving directory '/home/bhenning/sdcc/device/lib/pic14'
make: *** [Makefile:376: all] Error 2

** Additional Notes **

Latest gputil
Latest sdcc
Lubuntu 20.04
x86 64 bit, 8GB ram

Discussion

  • Philipp Klaus Krause

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,26 +1,35 @@
     **Code:**
    
    +~~~~
      include * &lt;string.h&gt; // left off # to make this editor happy
     char str1[10];
     void main(void) {
       strcpy(str1, &#34;testing&#34;);
     }
    +~~~~
    
     **Command:**
    
    +~~~~
     sdcc -mpic14 -p16f887 --use-non-free test.c
    +~~~~
    
     **SDCC Version**
    
    +~~~~
     SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ez80_z80/z80n/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8/pdk13/pdk14/pdk15 4.0.3 #11850 (Linux)
    +~~~~
    
     **Output:**
    
    +~~~~
     sdcc -mpic14 -p16f887 --use-non-free test.c
     libsdcc.lib: No such file or directory
    +~~~~
    
     ** Traced to missing itoa **
    
    +~~~~
     /sdcc/device/lib/pic14$ make
     make  all-recursive
     make[1]: Entering directory &#39;/home/bhenning/sdcc/device/lib/pic14&#39;
    @@ -34,6 +43,7 @@
     make[1]: *** [Makefile:436: all-recursive] Error 1
     make[1]: Leaving directory &#39;/home/bhenning/sdcc/device/lib/pic14&#39;
     make: *** [Makefile:376: all] Error 2
    +~~~~
    
     ** Additional Notes **
    
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Fixed in [r11997].

     

Log in to post a comment.

MongoDB Logo MongoDB