From: Kustaa N. <Kus...@pl...> - 2008-12-26 20:13:12
|
Hi, tried to compile the standard libraries as per this page: http://www.freenet.org.nz/sdcc/ when I enter commands: cd device/lib/pic16 ./configure make after compiling quite a few files succesfully the make stops as follows: source='delay/delay100ktcy.S' object='delay100ktcy.o' libtool=no \ DEPDIR=.deps depmode=none /bin/sh ../depcomp \ ':' -DHAVE_CONFIG_H -I. -I.. -I../../../include/pic16 -I. -p18f452 -c -o delay100ktcy.o `test -f 'delay/delay100ktcy.S' || echo './'`delay/delay100ktcy.S ../depcomp: line 571: exec: :: not found make[2]: *** [delay100ktcy.o] Error 127 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 digging into this it seems that gnu depcomp chokes on being passed ':' as the file generate the dependencies on. My guess is that has something to do with delay100ktcy.S being an assembler file (as opposed to C) but I'm not expert enought to know how to handle/circumvent this. My sdcc version is: SDCC : pic16/pic14 2.8.5 #5299 (Dec 26 2008) (Mac OS X i386) BR KUSTI |
From: Raphael N. <rn...@we...> - 2008-12-26 22:13:03
|
> when I enter commands: > > cd device/lib/pic16 > ./configure > make During the configure-run you must have gpasm and gplink in your PATH (the configure script will tell you if it found them). In your case, gpasm has not been found. With /path/to/gpasm/gpasm being the installed gpasm tool, try export PATH=$PATH:/path/to/gpasm # if using bash setenv PATH $PATH:/path/to/gpasm # for csh before executing ./configure > after compiling quite a few files succesfully the make stops as > follows: This is strange, as it indicates that the assembler could be found, at least by the compiler ... > source='delay/delay100ktcy.S' object='delay100ktcy.o' libtool=no \ > DEPDIR=.deps depmode=none /bin/sh ../depcomp \ > ':' -DHAVE_CONFIG_H -I. -I.. -I../../../include/pic16 -I. > -p18f452 -c -o delay100ktcy.o `test -f 'delay/delay100ktcy.S' || echo > './'`delay/delay100ktcy.S > ../depcomp: line 571: exec: :: not found > make[2]: *** [delay100ktcy.o] Error 127 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2 > > digging into this it seems that gnu depcomp chokes on being passed ':' > as the file generate the dependencies on. : is a shell built-in that acts like /bin/true and just consumes all arguments successfully. Probably exec on this non-binary fails. This should be circumvented by making gpasm available to configure. > My guess is that has something to do with delay100ktcy.S being an > assembler file (as opposed to C) but I'm not > expert enought to know how to handle/circumvent this. That's right (at least the first part of your statement ;-) ). If the above does not help, please post the complete output of the configure script (Especially the lines around Checking for gpasm ... and Checking for gplink ...). Merry Christmas, Raphael |