Hi, I'm trying to compile the MS2 3.4.3 code as a first step toward trying some modifications. I have cygwin 32 bit installed as well as the 2012 version of the msextra build tools. Everything seems to work fine until I get this "fatal error in a forked process". Can anyone please offer a suggestion?
kenhe@DESKTOP-T6KET01 /cygdrive/c/Users/kenhe/Documents/ms2extra-release-3.4.3/ms2extra
$ make ms2
make make_megasquirt2
make[1]: Entering directory '/cygdrive/c/Users/kenhe/Documents/ms2extra-release-3.4.3/ms2extra'
echo '// setup for Megasquirt' > us_opt_c.h
echo '; setup for Megasquirt' > us_opt_asm.inc
grep -av "^#[12345]" ms2extra.ini | sed 's/^#0//' > megasquirt2.ini
echo "/* DO NOT EDIT - this file is automatically generated during build */" > ms2_extra_defines.h
grep "^#define" ms2_extra_vars.h >> ms2_extra_defines.h
echo "; DO NOT EDIT - this file is automatically generated during build" > ms2_extra_defines.inc
grep "^#define" ms2_extra_vars.h | awk '{print ".equ",$2,",",$3};' >> ms2_extra_defines.inc
echo "/* DO NOT EDIT - this file is automatically generated during build */" > ms2_extra_main_vars.h
cat ms2_extra_vars.h | sed 's/extern //' | grep -v "^#" >> ms2_extra_main_vars.h
/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m68hcs12 -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -c ms2_extra_main.c
/usr/bin/m68hc11-elf-gcc -g -Wall -Werror -Wsign-compare -Wshadow -O -fomit-frame-pointer -m68hcs12 -mshort -msoft-reg-count=5 -mauto-incdec -fsigned-char -c ms2_extra_can.c
1 [main] m68hc11-elf-gcc (13816) C:\cygwin\bin\m68hc11-elf-gcc.exe: *** fatal error in forked process - couldn't allocate heap, Win32 error 487, base 0xC50000, top 0xCE0000, reserve_size 585728, allocsize 589824, page_const 4096
Trouble compliling
Moderators: jsmcortina, muythaibxr
Trouble compliling
1951 Ford 239 cubic inch flathead Ford V8 with 6.8:1 CR. Dual Ducati S4R throttle bodies with one 550 cc/min injector each. EDIS ignition. Running MS2/Extra 3.4.3
Re: Trouble compliling
So I tried an alternative method using VirtualBox and Linux Mint. I’m able to unpack the 2012 tools into usr bin etc using tar from the terminal, but make ms2 seems unable to find c usr bin m68hc11-elf-gcc even though I can clearly see the file in the directory. The error says no such file in c:/usr/bin. Do I need to change something in makefile because it is a virtual machine not starting w c?
1951 Ford 239 cubic inch flathead Ford V8 with 6.8:1 CR. Dual Ducati S4R throttle bodies with one 550 cc/min injector each. EDIS ignition. Running MS2/Extra 3.4.3
-
- Site Admin
- Posts: 39622
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: Trouble compliling
In Unix/Linux there's no such thing as "C:"
Your tools should be in /usr/bin or /usr/local/bin
James
Your tools should be in /usr/bin or /usr/local/bin
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".
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".
Re: Trouble compliling
Thanks for the reply James. I got it working yesterday with the following command:
LANG=C sudo apt-get install ia32-libs
This apparently installs the needed ia32 libraries to run the compiler. Interestingly there was still a message in the output of 'make ms2' about no 'c:/usr/bin/m68hc11-elf-gcc' but it was clearly running /usr/bin/m68hc11-elf-gcc and made a function s19 file.
LANG=C sudo apt-get install ia32-libs
This apparently installs the needed ia32 libraries to run the compiler. Interestingly there was still a message in the output of 'make ms2' about no 'c:/usr/bin/m68hc11-elf-gcc' but it was clearly running /usr/bin/m68hc11-elf-gcc and made a function s19 file.
1951 Ford 239 cubic inch flathead Ford V8 with 6.8:1 CR. Dual Ducati S4R throttle bodies with one 550 cc/min injector each. EDIS ignition. Running MS2/Extra 3.4.3
-
- Site Admin
- Posts: 39622
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
Re: Trouble compliling
Ah.. I think the Makefile always checks in C:/..... (reports an error) and then tries the other paths.
James
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".
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".