Failure to build PIC14 libs

Help
steve
2012-08-24
2013-03-12
  • steve

    steve - 2012-08-24

    Having trouble building the svn PIC14 libs, in ubuntu 12.04
    Here is the build error:

    ~/coding/sdcc/trunk/sdcc/device/lib/pic14$ make
    make  all-recursive
    make[1]: Entering directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14'
    Making all in libm
    make[2]: Entering directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libm'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libm'
    Making all in libsdcc/regular
    make[2]: Entering directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libsdcc/regular'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libsdcc/regular'
    Making all in libsdcc/enhanced
    make[2]: Entering directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libsdcc/enhanced'
    source='_gptrget2.S' object='_gptrget2.o' libtool=no \
        DEPDIR=.deps depmode=none /bin/bash ../../depcomp \
        '/usr/bin/gpasm' -DHAVE_CONFIG_H -I. -I../..  -I. -I../../../../include/pic14 -I../../../../non-free/include/pic14  -p16f1934 -I../../../../include/pic14 -I../../../../non-free/include/pic14 -I.  -c -o _gptrget2.o _gptrget2.S
    _gptrget2.S:61:Error [103] syntax error
    make[2]: *** [_gptrget2.o] Error 1
    make[2]: Leaving directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14/libsdcc/enhanced'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/steve/coding/sdcc/trunk/sdcc/device/lib/pic14'
    make: *** [all] Error 2
    

    Version:

    $ sdcc -version
    SDCC : mcs51/gbz80/z80/z180/r2k/r3ka/ds390/pic16/pic14/TININative/ds400/hc08/s08 3.2.1 #8079 (Aug 24 2012) (Linux)

    I ran an svn update again today and its still doing it, im sure its something my side?

    SDCC otherwise seemed to compile ok, and make install installed the binaries, it just failed with this error on usage:

    $ sdcc -mpic14 -p16f877a main.c
    pic16f877a.lib: No such file or directory
    
     
  • Raphael Neider

    Raphael Neider - 2012-08-24

    You may have to update your gputils (http://gputils.sf.net/); possibly the "moviw FSR0++" instruction was added sometime later than your gputils release.
    The subsequent errors are probably caused by this error. You can also try to ignore the error using "make -k" when building and installing sdcc.

     

Log in to post a comment.