Pinguino Forum

Full Version: compile and linker error with IDE V12 and PIC18F45K50
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello,

I'am using pinguino board with 18F45K50, pinguino IDE V12,  pc with Linux Mint 
I get a linker error when trying to compile and link any program with SDCC (event the bare minimum program  from the samples).
However, everything works fine if I compile and link with XC8.
Strange enough, SDCC compiles and links correctly for some  microcontrollers like  4550, 2550, 2455,1708,  ...  but fails for some other like 25K50, 45K50, 27J53, Torda, ..
I'am using :

Linux jgl 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u1 (2017-06-18) x86_64 GNU/Linux
gputils version 0.13.7-1
pinguino V12.0.39-beta2 (the 'latest' one as recommended from download page)
python 2.7.9
Here the error messages:
1) warning: "/opt/pinguino/p8/bin/../share/sdcc/lib/pic16/libio18f45k50.lib" is missing symbol index.


2) gplink: /home/regis/Dvpt/pinguino/git-copy/pinguino-compilers/sources/gputils/libgputils/gparchive.c:598: gp_archive_read_index: Assertion `gp_archive_have_index(Archive)' failed

3)+ /opt/pinguino/p8/bin/gplink -I/opt/pinguino/p8/bin/../share/sdcc/lib/pic16 -I/home/regis/Dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/lib/pic16 -I/opt/pinguino/p8/bin/../share/sdcc/non-free/lib/pic16 -I/home/regis/Dvpt/pinguino/git-copy/pinguino-compilers/linux64/p8/share/sdcc/non-free/lib/pic16  -s"/opt/pinguino/v12/p8/lkr/boot4.18f45k50.lkr" -m  -w -r -o /home/jos/Pinguino/v12/source/main.hex  /home/jos/Pinguino/v12/source/main.o   libio18f45k50.lib libdev18f45k50.lib libc18f.lib libm18f.lib libdev18f45k50.lib libsdcc.lib  returned errorcode 34304


Thanks for any suggestion

jl
You might try to download and unzip the latest SDCC and GPUTILS sources in /opt/pinguino/p8.