Compiler build tools (2012)

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

i got

ronald@ronald-System-Product-Name:~$ ldd /usr/bin/m68hc11-elf-gcc
geen dynamisch uitvoerbaar bestand
ronald@ronald-System-Product-Name:~$ LANG=C ldd /usr/bin/m68hc11-elf-gcc
not a dynamic executable
ronald@ronald-System-Product-Name:~$

ronald@ronald-System-Product-Name:~$ ls -l /usr/bin/m68hc11-elf-gcc
-rwxr-xr-x 2 root root 76672 okt 24 01:46 /usr/bin/m68hc11-elf-gcc
ronald@ronald-System-Product-Name:~$
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Compiler build tools (2012)

Post by jsmcortina »

Did you install the multi-arch libraries as Kristian suggested?

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".
MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

ronald@ronald-System-Product-Name:~$ LANG=C sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ia32-libs : Depends: ia32-libs-multiarch
E: Unable to correct problems, you have held broken packages.
ronald@ronald-System-Product-Name:~$
kristian
Helpful MS/Extra'er
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Post by kristian »

You can type 'export LANG=C' once and the value will stick for the rest of the terminal session.

Have you tried to refresh your package lists (apt-get update)?

If that doesn't help you can always try to download the missing packages manually from packages.ubuntu.com but it can be quite a nuisance with dependencies and requires some prior experience of how to handle package conflicts and breakage that might occur when using dpkg directly.
Volvo 740 GLT -89, B234F MS3+MS3X Full-Sequential / Wasted Spark
MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

with apt update don,t i get a kernel update into the buggy kernel?
but i will try anyway if things get broken i will do a reinstall
MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

this from my office pc which did not run the ubuntu update in question
also 64 bit install

ronald@ronald-System-Product-Name:~$ ldd /usr/bin/m68hc11-elf-gcc
linux-gate.so.1 => (0xf776f000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf75a7000)
/lib/ld-linux.so.2 (0xf7770000)
ronald@ronald-System-Product-Name:~$

i will try to do an install with the original 12.04 64 bit without the kernel updates
kristian
Helpful MS/Extra'er
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Post by kristian »

apt-get update is not the same as apt-get upgrade.
apt-get update just updates the lists used when issuing apt-get install [PACKAGE]. apt-get upgrade on the other hand installs all available updates.

If you have the other installation left you should be able to boot with the old kernel. Ubuntu doesn't remove them when installing updates.
Try to press up or down just before ubuntu boots that should give you the option to choose the older kernel.
Volvo 740 GLT -89, B234F MS3+MS3X Full-Sequential / Wasted Spark
MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

thank you for pointing that out
when i did the 12.04.2 upgrade i opted to use the whole hard drive
so the other versions are gone
i will try the apt-get upgrade
must be getting tired
MS2tester
Master MS/Extra'er
Posts: 606
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands
Contact:

Re: Compiler build tools (2012)

Post by MS2tester »

finally success
did a complete fresh install of ubuntu 12.04.2 LTS
got all the update,s but unticked the kernel update,s
then installed " Wine " program from the software center
this probably has the files you were referring to
downloaded the tools again an installed them as i did in this post
and the rest is history
may i thank the both of you very much
would not have found this without you
NArcher
Helpful MS/Extra'er
Posts: 55
Joined: Wed Mar 23, 2011 1:38 pm

Re: Compiler build tools (2012)

Post by NArcher »

Does anyone know when a new revision of the build tools is coming out? I would like to take advantage of some of the new features available, but right now I have some custom CAN code (Thanks to James and Steve) running and don't want to go without gauges. Not trying to rush anyone, just asking
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Compiler build tools (2012)

Post by jsmcortina »

There are no newer build tools. Are you actually asking for newer firmware sourcecode ?

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".
NArcher
Helpful MS/Extra'er
Posts: 55
Joined: Wed Mar 23, 2011 1:38 pm

Re: Compiler build tools (2012)

Post by NArcher »

jsmcortina wrote:There are no newer build tools. Are you actually asking for newer firmware sourcecode ?

James
Yes. Do you have an idea on timeframe for release? Thanks
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Compiler build tools (2012)

Post by jsmcortina »

NArcher wrote:
jsmcortina wrote:There are no newer build tools. Are you actually asking for newer firmware sourcecode ?

James
Yes. Do you have an idea on timeframe for release? Thanks
I'm still awaiting feedback on 1.2.1 which has been close to zero. But also with the "piledriver CL issue" I want to get that resolved first.

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".
shauer
Experienced MS/Extra'er
Posts: 364
Joined: Wed Oct 05, 2005 10:39 am
Location: Rochester, NY USA
Contact:

Re: Compiler build tools (2012)

Post by shauer »

I just installed the build tools on my Win7 laptop. I found that Cygwin 64 bit did not work, I got a mysterious build failure right away with no explanation. I then installed Cygwin 32 bit and the only additional package I installed was 'make'

MS3 1.2.3 source built first try with the 32 bit Cygwin and a diff of the released binary vs. my built showed no differences.

Not sure if the 64 bit issue has been documented somewhere, I didn't see it.
Steve Hauer
http://www.77e21.info
1977 BMW 320i with MAF, COP, IAC, Sequential fuel and spark, MS3 knock sensing
MS3 / MS3X / V3 mainboard, MS3 V1.5 a4
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Compiler build tools (2012)

Post by piledriver »

jsmcortina wrote:
NArcher wrote:
jsmcortina wrote:There are no newer build tools. Are you actually asking for newer firmware sourcecode ?

James
Yes. Do you have an idea on timeframe for release? Thanks
I'm still awaiting feedback on 1.2.1 which has been close to zero. But also with the "piledriver CL issue" I want to get that resolved first.

James
I was never able to duplicate it once it warmed up... and even now that it's cold again, pre1.3A10 doesn't have the CL issue that I can tell.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
kristian
Helpful MS/Extra'er
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Post by kristian »

When building the ms3-1.3.2 source on osx I got the following error.
sed: RE error: illegal byte sequence
However it's easily avoided by using the C locale.
export LANG=C
make
or
LANG=C make
It's also possible to add LANG=C to the Makefile. Maybe something like this could be included in the next source release?

Code: Select all

--- Makefile.old	2014-07-12 09:47:10.000000000 +0200
+++ Makefile	2014-07-12 09:52:05.000000000 +0200
@@ -21,6 +21,8 @@
 # * ask on the www.msextra.com forum if you did not.
 # *
 
+LANG=C
+
 ifdef SYSTEMDRIVE
 BINDIR = c:/usr/bin
 else
Volvo 740 GLT -89, B234F MS3+MS3X Full-Sequential / Wasted Spark
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Compiler build tools (2012)

Post by ol boy »

What compiler are we now using since Cygwin only supports there new X86_64 setup? I'm now on a Win11 box and I was able to produce a new .s19 and .ini fille but once an edit was made to a .c file the corresponding .o file would produce an error on the "make ms3" command.

Has anyone sorted away to get the new Cygwin to compile edited code?

Ryan
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Compiler build tools (2012)

Post by piledriver »

Subsystem for Linux v2... if you are on Win11... should work, cygwin no longer needed, it would probably just get in the way.
Last edited by piledriver on Sun Jan 15, 2023 6:23 pm, edited 2 times in total.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
ol boy
Super MS/Extra'er
Posts: 1532
Joined: Mon Sep 10, 2007 3:06 am
Location: Tucson, Az

Re: Compiler build tools (2012)

Post by ol boy »

piledriver wrote: Sun Jan 15, 2023 6:17 pm Subsystem for Linux v2... if you are on Win11... should work, cygwin no longer needed, it would probably just get in the way.
Can you provide a step by step of what to DL/install in what order? and unzipping the tar file? then how to make the ini and s19?

Thanks Ryan
306 SBFord, Torquer II EFI intake, 60 lbs injectors, 8 LS2 coils, VS Racing 7668 turbo, 4R70W, MS3x fw1.4 w/built in trans controller.
piledriver
Super MS/Extra'er
Posts: 1679
Joined: Tue Oct 27, 2009 6:24 am
Location: Van Alstyne, Texas

Re: Compiler build tools (2012)

Post by piledriver »

I'm not using it, found it better to run Windows in a VM when required so it has the desperately needed "undo" button snapshots provide.
(some Linux distros have native snapshot support using btrfs, which still isn't ZFS but it seems to work these days)

It has been awhile, but getting it working on any Ubuntu variant was pain free, I usually suggest some KDE desktopped version as the setup can be made very like Windows.

If I get some free time I'll try setting it up again.
Always doing things the hard way, MS2 sequential w/ v1.01 mainboard, LS2 coils. 80 mile/day commuter status.
Post Reply