Discussion:
[Sdcc-user] libdev18f4550.lib not found on fedora 24 (sdcc + piklab)
Leonardo
2016-09-14 05:18:10 UTC
Permalink
Hello all,

i'm facing a problem using sdcc + piklab here.

currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.

the commands created by piklab to compile and link follows:

sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c

sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o

the compile phase seems to work well, however the second command tries to
find a file called libdev18f4550.lib and then fails.

searching the sdcc installation i've found a .lib file with similar name,
but i'm not sure if it's the same thing the linker is looking for:

*/usr/share/sdcc//lib/pic16/libio18f4550.lib*

any guidance is welcome.
Gál Zsolt
2016-09-14 19:05:20 UTC
Permalink
Hello,

How did you install your sdcc? Did you install a snapshot or compile it
from source?

Could you write the version number of it? ( sdcc -v )

I think the device library files for pic16 devices should be in this
directory:

/usr/share/sdcc/non-free/lib/pic16

Regards,

Zsolt
Post by Leonardo
Hello all,
i'm facing a problem using sdcc + piklab here.
currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.
sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c
sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
the compile phase seems to work well, however the second command tries to
find a file called libdev18f4550.lib and then fails.
searching the sdcc installation i've found a .lib file with similar name,
*/usr/share/sdcc//lib/pic16/libio18f4550.lib*
any guidance is welcome.
------------------------------------------------------------
------------------
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
--
~~~~~~~~~~~~~~~~
http://galzsolt.zzl.org
Leonardo
2016-09-14 22:57:00 UTC
Permalink
Hello Zsolt, thank you for your answer.

[***@sephiroth ~]$ sdcc -v
SDCC :
mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8
3.6.0 #9615 (Linux)
published under GNU General Public License (GPL)
[***@sephiroth ~]$

this version is what comes from official fedora repo:

[***@sephiroth ~]$ sudo dnf whatprovides sdcc
Última verificação de data de vencimento de metadados: 0:57:21 atrás em Wed
Sep 14 18:57:52 2016.
sdcc-3.6.0-2.fc24.x86_64 : Small Device C Compiler
Repo : @System

sdcc-3.6.0-2.fc24.x86_64 : Small Device C Compiler
Repo : updates

sdcc-3.5.0-6.fc24.x86_64 : Small Device C Compiler
Repo : fedora

[***@sephiroth ~]$

maybe piklab is the real problem, yet i have no light here yet.
Post by Gál Zsolt
Hello,
How did you install your sdcc? Did you install a snapshot or compile it
from source?
Could you write the version number of it? ( sdcc -v )
I think the device library files for pic16 devices should be in this
/usr/share/sdcc/non-free/lib/pic16
Regards,
Zsolt
Post by Leonardo
Hello all,
i'm facing a problem using sdcc + piklab here.
currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.
sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c
sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
the compile phase seems to work well, however the second command tries to
find a file called libdev18f4550.lib and then fails.
searching the sdcc installation i've found a .lib file with similar name,
*/usr/share/sdcc//lib/pic16/libio18f4550.lib*
any guidance is welcome.
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
--
~~~~~~~~~~~~~~~~
http://galzsolt.zzl.org
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
Milan Baša
2016-09-15 15:52:27 UTC
Permalink
Hello.
Why Piklab and no Mplabx with SDCC support?
Post by Leonardo
Hello all,
i'm facing a problem using sdcc + piklab here.
currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.
sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c
sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
the compile phase seems to work well, however the second command tries
to find a file called libdev18f4550.lib and then fails.
searching the sdcc installation i've found a .lib file with similar
*/usr/share/sdcc//lib/pic16/libio18f4550.lib*
Two times backslash?
Post by Leonardo
any guidance is welcome.
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
------------------------------------------------------------------------------
Leonardo
2016-09-15 17:14:24 UTC
Permalink
Hi Milan! thank you for your answer.

I am actually not quite versed on the microcontroller universe, and i've
tried mplabx, yesterday. i'm still figuring things.

One thing i already figured, piklab seems outdated. one of the commands it
generated seems to be using sdcc parameters that aren't there anymore
(--ide for instance)

Also, the two backslashes are a typo yet harmless:

[***@sephiroth ~]$ ls /usr/share/sdcc//lib/pic16/libio18f4550.lib
/usr/share/sdcc//lib/pic16/libio18f4550.lib
[***@sephiroth ~]$ ls /usr/share/sdcc/lib/pic16/libio18f4550.lib
/usr/share/sdcc/lib/pic16/libio18f4550.lib
Post by Milan Baša
Hello.
Why Piklab and no Mplabx with SDCC support?
Post by Leonardo
Hello all,
i'm facing a problem using sdcc + piklab here.
currently it compiles my hello world quite well, however the link step
(from .o file to .hex) seems problematic.
sdcc --use-non-free -mpic16 -p18f4550 -V --debug
-I/home/sombriks/Documentos/samplepic/ -c main.c
sdcc --use-non-free -mpic16 -p18f4550 -V --debug -Wl-c -Wl-m
-I/home/sombriks/Documentos/samplepic/ -oteste.hex main.o
the compile phase seems to work well, however the second command tries
to find a file called libdev18f4550.lib and then fails.
searching the sdcc installation i've found a .lib file with similar
*/usr/share/sdcc//lib/pic16/libio18f4550.lib*
Two times backslash?
Post by Leonardo
any guidance is welcome.
------------------------------------------------------------------------------
Post by Leonardo
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
https://lists.sourceforge.net/lists/listinfo/sdcc-user
Loading...