I didn't realize that LNK stands for the linker binary file. Anyway, what I
did for the installation of gputils and sdcc was downloading the nightly
snapshots and then manually installed it rather than doing a dpkg on a
debian installation file (b/c that's the only way I found initially to get
the latest version of both). After changing LNK to the path Xiaofan
suggested, I now get the following error with gputils.

[error start]
[EMAIL PROTECTED]:/media/sda5/LED_toggle$ make
/usr/local//bin/gplink  -L/usr/local/share/sdcc/lib/pic16/ --use-crt=crt0.o-V -
Wl-s18f2620.lkr,-m -mpic16 -p18f2620 main.o -o LED_toggle.hex -
llibio18f2620.lib -llibc18f.lib
/usr/local//bin/gplink: invalid option -- L
/usr/local//bin/gplink: invalid option -- /
/usr/local//bin/gplink: invalid option -- u
/usr/local//bin/gplink: unrecognized option `--use-crt=crt0.o'
/usr/local//bin/gplink: invalid option -- V
/usr/local//bin/gplink: invalid option -- W
/usr/local//bin/gplink: invalid option -- -
/usr/local//bin/gplink: invalid option -- p
/usr/local//bin/gplink: invalid option -- i
/usr/local//bin/gplink: invalid option -- 1
/usr/local//bin/gplink: invalid option -- 6
/usr/local//bin/gplink: invalid option -- p
/usr/local//bin/gplink: invalid option -- 1
/usr/local//bin/gplink: invalid option -- 8
/usr/local//bin/gplink: invalid option -- i
/usr/local//bin/gplink: invalid option -- b
/usr/local//bin/gplink: invalid option -- i
/usr/local//bin/gplink: invalid option -- i
/usr/local//bin/gplink: invalid option -- b
/usr/local//bin/gplink: invalid option -- 1
/usr/local//bin/gplink: invalid option -- 8
/usr/local//bin/gplink: invalid option -- L
make: *** [LED_toggle.hex] Segmentation fault (core dumped)
[error end]

My guess from reading gplink manual on terminal is that there is something
wrong with the linker options, however I have trouble deducing from the
Makefile what's wrong with the options.

Stanley

On 10/2/07, Xiaofan Chen <[EMAIL PROTECTED]> wrote:
>
> On 10/3/07, Stanley Lee <[EMAIL PROTECTED]> wrote:
>
> > Above is with LNK = /usr/local/share/gputils/lkr/
>
> That is wrong. LNK is for the linker not the linker script (LKR),
> ie LNK=/usr/local/bin/gplink or sdcc can be used to
> call the linker script.
>
> By the way, if you set up gputils and sdcc in the default
> directory, you will not need to go through so much troubles.
> http://ubicomp.lancs.ac.uk/%7Emartyn/sdcc_linux/
> (Do not following the installation instruction -- it is outdated).
>
> Here is a nice example for sdcc with PIC.
>
> http://petertodd.org/tech/example-projects/bin/example-projects-20070527.tar.gz
>
> Xiaofan
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to