gnupic: Re: [gnupic] want an sdcc howto?


Previous by date: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Chen Xiao Fan
Next by date: 16 Jul 2005 08:08:33 +0100 sdcc/PIC howto, first draft is up, David McNab
Previous in thread: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Chen Xiao Fan
Next in thread: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Geoff

Subject: RE: [gnupic] want an sdcc howto?
From: Peter Onion ####@####.####
Date: 16 Jul 2005 08:08:33 +0100
Message-Id: <1121497685.5706.15.camel@HP.RoomLan>

On Sat, 2005-07-16 at 10:20 +0800, Chen Xiao Fan wrote:

> The installation is okay. Actually I tried Cygwin as well. The compilation
> of all the example C file failed. The following is
> the error message of the compiling. It seems to me a configutation
> problem. The error messaga in Cygwin is similar.
> 

If you read section 4.5.4 of the SDCC manual it will help with the first
error atleast.

> System: Ubuntu 5.04 Linux
> SDCC: latest CVS
> GPUtils: latest CVS
> 
> Regards,
> Xiaofan
> 
> ***************************************************
> mcuee@ubuntu:~$ sdcc -v
> SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08
> 2.5.1 #1059 (Jul 16 2005) (UNIX)
> mcuee@ubuntu:~$ gpasm -v
> gpasm-0.13.2 beta
> mcuee@ubuntu:~/Desktop/sdcc$ which sdcc
> /usr/local/bin/sdcc
> 
> mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic14 -p16f84 test.c
> Processor: 16f84
> C_pic14 -D__pic14 -I/usr/local/bin/../share/sdcc/include/pic14
> -I/usr/local/share/sdcc/include/pic14 -I/usr/local/bin/../share/sdcc/include
> -I/usr/local/share/sdcc/include  test.c .o: No such file or directory
> 
> mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 wave.c
> Processor: 18f252
> wave.c:25:1: warning: "__18f252" redefined
> <command line>:1:1: warning: this is the location of the previous definition
> wave.c:23: warning: setting stack to default size 64 (0x0040)
> wave.c:23: warning: stack [0x5FF,0x63E] crosses memory bank boundaries (not
> fully tested)
> wave.c:23: error: stack [0x5FF,0x63E] is placed outside available memory
> [0x000,0x5FF]!
> 
> mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 serial.c
> Processor: 18f252
> serial.c:9: warning: setting stack to default size 64 (0x0040)
> warning: processor mismatch in
> "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o"
> message: using default linker script
> "/usr/local/share/gputils/lkr/18f252.lkr"
> gplink: gpcofflink.c:203: gp_cofflink_clean_table: Assertion `sym != ((void
> *)0)' failed.
> mcuee@ubuntu:~/Desktop/sdcc$ sdcc -mpic16 -p18f252 printf.c
> Processor: 18f252
> printf.c:9: warning: setting stack to default size 64 (0x0040)
> warning: processor mismatch in
> "/usr/local/bin/../share/sdcc/lib/pic16/crt0i.o"
> message: using default linker script
> "/usr/local/share/gputils/lkr/18f252.lkr"
> warning: processor mismatch in "printf_tiny.o"
> warning: processor mismatch in "ltoa.o"
> warning: processor mismatch in "islower.o"
> warning: processor mismatch in "modulong.o"
> warning: processor mismatch in "gptrget1.o"
> warning: processor mismatch in "gptrget2.o"
> warning: processor mismatch in "gptrget3.o"
> warning: processor mismatch in "gptrget4.o"
> warning: processor mismatch in "divulong.o"
> gplink: gpcofflink.c:203: gp_cofflink_clean_table: Assertion `sym != ((void
> *)0)' failed.
> 
> ------------------
> 
> The Ubuntu package may well be different from the Debian one.  Where 
> did you report your problems with the Ubuntu compiler ? 

These don't look like anything to do with umbutu.   I think you need to
read the sdcc manual.  I'm planning top build latest sdcc snapshot later
today so I'll tell you how I got on.

Peter




Previous by date: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Chen Xiao Fan
Next by date: 16 Jul 2005 08:08:33 +0100 sdcc/PIC howto, first draft is up, David McNab
Previous in thread: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Chen Xiao Fan
Next in thread: 16 Jul 2005 08:08:33 +0100 Re: [gnupic] want an sdcc howto?, Geoff


Powered by ezmlm-browse 0.20.