On Tue, Jul 8, 2014 at 4:03 PM, Unix Savvy Brian <bwitt@value.net> wrote:
Please provide some output with the error message you are getting.  You might want to add -v option to show the intermediate steps actually taken by the SDCC front-end.
that would be helpful.

Here is the command and the output of sdcc when compiling for the PIC.

user@enj:~/sdcc/proj/count$ ls
user@enj:~/sdcc/proj/count$ cat count.c
//#define __16f877

//word at 0x2007  __CONFIG = 0x3f72;

unsigned char count;

#pragma config XINST=OFF

void main(void) {

        TRISJ = 0;
        count = 0;
        while(1) {
                PORTJ = count;
                count ++;

user@enj:~/sdcc/proj/count$ sdcc --std-c99 -mpic16 --use-non-free -p18f97j60 count.c
message: Using default linker script "/usr/local/share/gputils/lkr/18f97j60_g.lkr".
user@enj:~/sdcc/proj/count$ ls
count.asm  count.c  count.cod  count.hex  count.lst  count.o
user@enj:~/sdcc/proj/count$ sdcc --std-c99 -mpic16 --use-non-free -p18f97j60 count.c -v
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.4.1 #9036 (Jul  7 2014) (Linux)
published under GNU General Public License (GPL)
user@enj:~/sdcc/proj/count$ sdcc --std-c99 -mpic16 --use-non-free -p18f97j60 count.c --verbose
Processor: 18f97j60
sdcc: Calling preprocessor...
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: Calling linker...
message: Using default linker script "/usr/local/share/gputils/lkr/18f97j60_g.lkr".