#38 warning: processor mismatch in crt0i.o

closed
nobody
None
5
2006-11-23
2005-08-31
Andy
No

Hello
I am trying to compile (and automatically linking) my
program for pic18f252, and I have warnings:

[root@lnb100 ar7]#sdcc -V -mpic16 -p18f252 R4.C
Processor: 18f252
+ "/usr/local/bin/sdcpp" -nostdinc -Wall -std=c99
-DSDCC=1 -Dpic18f252 -D__18f252 -DSTACK_MODEL_SMALL
-DSDCC_MODEL_SMALL -DSDCC_pic16 -D__pic16
-I"/usr/local/bin/../share/sdcc/include/pic16"
-I"/usr/local/share/sdcc/include/pic16" "R4.C"
R4.C:1131: warning 110: conditional flow changed by
optimizer: so said EVELYN the modified DOG
R4.C:1131: warning 126: unreachable code
R4.C:2256: warning 85: in function main unreferenced
local variable : 'b'
+ "/usr/local/bin/gpasm" -DSDCC_MODEL_SMALL -Dpic18f252
-D__18F252 -DSTACK_MODEL_SMALL -c "R4.asm" -o "R4.o"
+ "/usr/local/bin/gplink"
-I"/usr/local/bin/../share/sdcc/lib/pic16"
-I"/usr/local/share/sdcc/lib/pic16" -o R4 R4.o
crt0i.o pic18f252.lib libsdcc.lib libc18f.lib
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 "pic18f252.o"
warning: processor mismatch in "mullong.o"
warning: processor mismatch in "gptrget1.o"
warning: processor mismatch in "gptrput2.o"
warning: processor mismatch in "mulint.o"
warning: processor mismatch in "gptrput4.o"
warning: processor mismatch in "gptrput1.o"
warning: processor mismatch in "gptrget2.o"
warning: processor mismatch in "delay10ktcy.o"
warning: processor mismatch in "delay1ktcy.o"
warning: processor mismatch in "delay10tcy.o"
[root@lnb100 ar7]#

-my program is working, but not all. What to do ?

Discussion

  • Raphael Neider
    Raphael Neider
    2006-11-23

    • status: open --> closed
     
  • Raphael Neider
    Raphael Neider
    2006-11-23

    Logged In: YES
    user_id=1115835
    Originator: NO

    Hmm, probably time has solved this.
    For the records: The warnings are to be ignored; more recent versions of SDCC pass the -w flag to gplink to suppress it.
    The warning arises as the library is compiled for the 18f452, which is recorded in the .o files. Still the files are compatible with all other pic devices (at least, they should be...).

    Regards,
    Raphael