Issue while compiling

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Suprazz
Master MS/Extra'er
Posts: 500
Joined: Mon Jan 22, 2007 7:58 pm
Contact:

Issue while compiling

Post by Suprazz »

I dont understand why but I was able to compile a custom ms3 firmware and it worked, including ini file.

Then I want to do an other make and now I'm able to compile but I always get this error in my ms3.ini file line 448: Binary file core.ini matches

I tried make clean, change nothing.
I tried to extract original ms3-source.1.4.0 and start from scratch I'm still getting this error.

I'm building on windows.

Any idea what is happening and why this appear in my ini file?

Here is the output of my compilation:

Code: Select all

$ make ms3pro
/bin/echo "// setup for MS3PRO" > opt.h
/bin/echo "#define MS3PRO 1" >> opt.h
grep -v "^#[02345]" core.ini | sed 's/^#1//' > ms3pro.ini
/bin/echo "; DO NOT EDIT - this file is automatically generated during build" > ms3h_defines.inc
grep "^#define" ms3_vars.h | awk '{print ".equ",$2,",",$3};' >> ms3h_defines.inc
grep "^#define" opt.h | awk '{print ".equ",$2,",",$3};' >> ms3h_defines.inc
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -O -fomit-frame-pointer -m9s12xg -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mxgate,--xgate-ramoffset -c xgate.s
/bin/echo "/* DO NOT EDIT - this file is automatically generated during build */" > ms3_main_vars.h
cat ms3_vars.h | sed 's/extern //' | grep -v "^#" >> ms3_main_vars.h
/bin/echo "/* DO NOT EDIT - this file is automatically generated during build */" > ms3_defines.h
grep "^#define" ms3_vars.h >> ms3_defines.h
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_can.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_can_isr.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_ego.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_ign.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_ign_wheel.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_main.c
/tmp/cc5UMoP4.s: Assembler messages:
/tmp/cc5UMoP4.s:17419: Warning: ignoring changed section attributes for .text
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_misc.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_boost.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c premain.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_init.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c sigs.c
/tmp/ccnwAAQL.s: Assembler messages:
/tmp/ccnwAAQL.s:19: Warning: ignoring changed section attributes for .text
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_ign_in.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_inj.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_idle.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_user.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c sd_card.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c compress.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_pid.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c serial.c
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_conferr.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_burnfactor.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_sci.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_rtc.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c ms3_asm.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_timerovf.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_ign.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c xg_conf.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_spi.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c isr_pit.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c compress-asm.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c crc32.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -c interp.s
c:/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m9s12x -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -Wa,-mm9s12x -Wl,-defsym,vectors_addr=0xff10,-m,m68hc12elfb,-T,m68hc12elfb.x -Wl,--no-warn-mismatch -o ms3.elf xgate.o ms3_can.o ms3_can_isr.o ms3_ego.o ms3_ign.o ms3_ign_wheel.o ms3_main.o ms3_misc.o ms3_boost.o premain.o ms3_init.o sigs.o ms3_ign_in.o ms3_inj.o ms3_idle.o ms3_user.o sd_card.o compress.o ms3_pid.o serial.o ms3_conferr.o ms3_burnfactor.o isr_sci.o isr_rtc.o ms3_asm.o isr_timerovf.o isr_ign.o xg_conf.o isr_spi.o isr_pit.o compress-asm.o crc32.o interp.o
ms3_main.o: In function `main':
/cygdrive/c/ms3/ms3-ricoboost-1.4.0/ricoboost/ms3/ms3_main.c:585: warning: banked address [e0:8800] (390800) is not in the same bank as current banked address [fe:b298] (40b298)
/cygdrive/c/ms3/ms3-ricoboost-1.4.0/ricoboost/ms3/ms3_main.c:587: warning: banked address [e0:8800] (390800) is not in the same bank as current banked address [fe:b2a7] (40b2a7)
/cygdrive/c/ms3/ms3-ricoboost-1.4.0/ricoboost/ms3/ms3_main.c:589: warning: banked address [e0:8800] (390800) is not in the same bank as current banked address [fe:b2af] (40b2af)
ms3_init.o: In function `main_init':
/cygdrive/c/ms3/ms3-ricoboost-1.4.0/ricoboost/ms3/ms3_init.c:3000: warning: banked address [e0:8800] (390800) is not in the same bank as current banked address [f8:a328] (3f2328)
c:/usr/bin/m68hc11-elf-objcopy --output-target=srec --only-section=.rodata   --change-section-lma   .rodata=0x7fea00 --only-section=.cnfdata  --change-section-lma  .cnfdata=0x100000 --only-section=.cnfdata2 --change-section-lma .cnfdata2=0x103000 --only-section=.cnfdata3 --change-section-lma .cnfdata3=0x106800 --only-section=.lookup   --change-section-lma   .lookup=0x104000 --only-section=.texte0   --change-section-lma   .texte0=0x780000 --only-section=.textf0   --change-section-lma   .textf0=0x7c0000 --only-section=.textf1   --change-section-lma   .textf1=0x7c4000 --only-section=.textf2   --change-section-lma   .textf2=0x7c8000 --only-section=.textf3   --change-section-lma   .textf3=0x7cc000 --only-section=.textf4   --change-section-lma   .textf4=0x7d0000 --only-section=.textf5   --change-section-lma   .textf5=0x7d4000 --only-section=.textf6   --change-section-lma   .textf6=0x7d8000 --only-section=.textf7   --change-section-lma   .textf7=0x7dc000 --only-section=.textf8   --change-section-lma   .textf8=0x7e0000 --only-section=.textf9   --change-section-lma   .textf9=0x7e4000 --only-section=.textfa   --change-section-lma   .textfa=0x7e8000 --only-section=.textfb   --change-section-lma   .textfb=0x7ec000 --only-section=.textfc   --change-section-lma   .textfc=0x7f0000 --only-section=.text3    --change-section-lma    .text3=0x7f4000 --only-section=.textfe   --change-section-lma   .textfe=0x7f8000 --only-section=.text     --change-section-lma     .text=0x7fc000 --only-section=.vectors  --change-section-lma  .vectors=0x7fef10 ms3.elf ms3pro.s19
grep Format sigs.c | sed -e 's/.*MS3/QMS3/' | sed -e 's/\".*//' >> ms3pro.s19
cat s19tail.inc >> ms3pro.s19
Best looking and most advanced CAN-bus gauge
Toyota Supra 7MGE, 7M-GTE and 1JZ-GTE Plug and play ECUs: http://www.perfecttuning.net
Serial to Bluetooth or Serial to WiFi
DIYAutotune Canadian, EFI Source and ECUMaster reseller!
elaw
Super MS/Extra'er
Posts: 2926
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Re: Issue while compiling

Post by elaw »

Did you ever solve this problem?

I just started working with the 1.4 code and have the same issue.
Eric Law
1990 Audi 80 quattro with AAN turbo engine: happily running on MS3+MS3X
2012 Audi A4 quattro, desperately in need of tweaking

Be alert! America needs more lerts.
jsmcortina
Site Admin
Posts: 39614
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Issue while compiling

Post by jsmcortina »

You shouldn't even be getting "ms3.ini" if you are running "make ms3pro"

This is the line that creates the ms3pro.ini file:

Code: Select all

grep -v "^#[02345]" core.ini | sed 's/^#1//' > ms3pro.ini
You can run that on the command line.

Or..

Code: Select all

grep -v "^#[12345]" core.ini | sed 's/^#0//' > ms3.ini
Both are standard uses of 'grep' and 'sed' that any unix-like derivative should support.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply