From: Anton S. <an...@so...> - 2009-11-01 18:00:46
|
Problem solved. Thank you both, it turns out it was a dependency problem with respect to gputils. I didn't have the latest version and it seems that the ubuntu packages are not setup with explicit dependencies on 0.13.7 (I had 0.13.6 installed). Building SDCC by itself from scratch didn't help for the obvious reasons. :) Thanks again, Anton On Sun, Nov 1, 2009 at 7:50 AM, Gordon Henderson <gor...@dr...> wrote: > On Sat, 31 Oct 2009, Anton Staaf wrote: > >> Hello, I am trying to compile a simple test program for the >> PIC18F67J60 using the Ubuntu Karmic version of SDCC. The version >> information is: >> >> SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 >> 2.9.0 #5416 (Aug 15 2009) (UNIX) >> >> My test program is: >> >> #include "pic18fregs.h" >> >> int main() >> { >> volatile int count = 0; >> >> while (1) >> ++count; >> } >> >> And my compilation line is: >> >> sdcc -mpic16 -p18f67j60 -Wl /usr/share/gputils/lkr/18f67j60.lkr >> test.c -o test_out >> >> The resulting compiler error has proved hard to diagnose: >> >> error: invalid processor type (0xb760) in "libdev18f67j60_a-pic18f67j60.o" >> gplink: gpprocessor.c:715: gp_processor_rom_width: Assertion `0' failed. >> >> I've looked at the libdev source for the pic18f67j60 that was >> installed and the header that it includes and see no mention of >> processor types, or the constant 0xb760. Is it likely that my install >> is broken? Or is there something else going on? I'm also currently >> working on building SDCC from source to see if that exhibits the >> problem. > > On a build-from-source install, it seems to work just fine: > > gordon @ yakko: sdcc -mpic16 -p18f67j60 bar.c > message: using default linker script "/usr/local/pic/share/gputils/lkr/18f67j60.lkr" > > gordon @ yakko: ls -l bar.* > -rw-rw-r-- 1 gordon gordon 8149 Nov 1 15:45 bar.asm > -rw-rw-r-- 1 gordon gordon 107 Nov 1 15:45 bar.c > -rw-rw-r-- 1 gordon gordon 12288 Nov 1 15:45 bar.cod > -rw-rw-r-- 1 gordon gordon 632 Nov 1 15:45 bar.hex > -rw-rw-r-- 1 gordon gordon 39849 Nov 1 15:45 bar.lst > -rw-rw-r-- 1 gordon gordon 9011 Nov 1 15:45 bar.o > > I installed both gputils and sdcc from scratch. (The gputils supplied with > Debian Lenny didn't support the PIC I am using) > > Gordon > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user > |