gnupic: Thread: trouble linking sdcc-svn vs gputils-0.13.7-1


[<<] [<] Page 1 of 1 [>] [>>]
Subject: trouble linking sdcc-svn vs gputils-0.13.7-1
From: James Cameron ####@####.####
Date: 28 Aug 2013 11:48:06 -0000
Message-Id: <20130828114653.GB13340@us.netrek.org>

G'day,

I've attempted to combine sdcc from SVN with gputils 0.13.7-1 on
Debian, to build a LED blink test program for PIC 16F84.

I'm confused by this output from the link:

$ gplink -m -s a.lkr -o a.hex a.o  -I /usr/local/share/sdcc/lib/pic14 libsdcc.lib
warning: processor mismatch in "shadowregs.o"
warning: processor mismatch in "idata.o"
warning: processor mismatch in "_gptrget1.o"
warning: processor mismatch in "_gptrget2.o"
error: missing definition for symbol "_STATUS", required by "_gptrget1.o"
error: missing definition for symbol "_PCLATH", required by "_gptrget1.o"
error: missing definition for symbol "_PORTB", required by "a.o"
error: missing definition for symbol "_INDF", required by "_gptrget1.o"
error: missing definition for symbol "_INTCONbits", required by "a.o"
error: missing definition for symbol "_PCL", required by "_gptrget1.o"
error: missing definition for symbol "_TRISB", required by "a.o"
error: missing definition for symbol "_FSR", required by "_gptrget1.o"
$ 

What have I done wrong?

http://dev.laptop.org/~quozl/z/1VEeBr.txt has Makefile, C source,
.lst, and .lkr.

p.s. on http://gputils.sourceforge.net/faq.html feel free to change
####@####.#### to ####@####.#### thanks!

-- 
James Cameron
http://quozl.linux.org.au/
Subject: Re: trouble linking sdcc-svn vs gputils-0.13.7-1
From: James Cameron ####@####.####
Date: 31 Aug 2013 12:32:45 -0000
Message-Id: <20130831123438.GB597@us.netrek.org>

Solved!

Needed to add sdcc/non-free/lib/pic14/pic16f84.lib to gplink command.

http://quozl.linux.org.au/pic16f84-sdcc-blink/ has the details.

p.s. on http://gputils.sourceforge.net/faq.html feel free to change
####@####.#### to ####@####.#### thanks!

Index: wwwdocs/htdocs/faq.html
===================================================================
--- wwwdocs/htdocs/faq.html	(revision 991)
+++ wwwdocs/htdocs/faq.html	(working copy)
@@ -28,7 +28,7 @@
 
 <UL>
 	<P><A ####@####.#### Dattalo</A>
-        <BR><A ####@####.#### Cameron</A>
+        <BR><A ####@####.#### Cameron</A>
         <BR><A ####@####.#### Petersen</A>
 	<BR><A ####@####.#### Smith</A>
         <BR><A ####@####.#### Zummo</A>

-- 
James Cameron
http://quozl.linux.org.au/
Subject: Re: trouble linking sdcc-svn vs gputils-0.13.7-1
From: Borut ####@####.####
Date: 31 Aug 2013 13:31:49 -0000
Message-Id: <5221F0C0.4060506@gmail.com>

On 31. 08. 2013 14:34, James Cameron wrote:
> Solved!
>
> Needed to add sdcc/non-free/lib/pic14/pic16f84.lib to gplink command.
>
> http://quozl.linux.org.au/pic16f84-sdcc-blink/ has the details.
>
> p.s. on http://gputils.sourceforge.net/faq.html feel free to change
> ####@####.#### to ####@####.#### thanks!

I'm glad you figured it out by yourself.

>
> Index: wwwdocs/htdocs/faq.html
> ===================================================================
> --- wwwdocs/htdocs/faq.html	(revision 991)
> +++ wwwdocs/htdocs/faq.html	(working copy)
> @@ -28,7 +28,7 @@
>   
>   <UL>
>   	<P><A ####@####.#### Dattalo</A>
> -        <BR><A ####@####.#### Cameron</A>
> +        <BR><A ####@####.#### Cameron</A>
>           <BR><A ####@####.#### Petersen</A>
>   	<BR><A ####@####.#### Smith</A>
>           <BR><A ####@####.#### Zummo</A>
>

Done.
Borut
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.