Compiler build tools (2012)

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Compiler build tools (2012)

Post by jsmcortina »

As binutils 2.23 was released today I've posted some updated build tools.
http://www.msextra.com/tools

The gcc has minor tweaks over the 2010 version previously available.

These tools are required for MS3 1.1.x and will be used with the next MS2/Extra pre-3.3 alpha. To use them with older versions you'll need to make small Makefile changes as the executables are prefixed m68hc11-elf

I've only uploaded the Linux zip so far, the Cygwin one is still building and takes hours.

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".
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 »

Windows (Cygwin) build tools were uploaded yesterday and tested by Jean. You need to be sure your Cygwin is up to date though or they silently fail to work.

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".
racingmini_mtl
Super MS/Extra'er
Posts: 9128
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: Compiler build tools (2012)

Post by racingmini_mtl »

Just to elaborate on what James mentioned, you can find out which version of Cygwin you have with this:

Code: Select all

uname -r
The latest version is 1.7.17 and is known to work. The older version 1.7.7 is known NOT to work and compiling will simply fail to work without giving any indication of what is wrong. The versions between these two have not been tested.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
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 thought i have a go at installing under ubuntu
but i did not get very far
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 »

You probably want to check the Ubuntu support forums. This might do the job though:

Code: Select all

$ sudo bash
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 »

i think it worked or atleast an s19 file came out :yeah!:
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 »

If you want to compare, use 'cmp' or 'diff'

e.g.

Code: Select all

cmp  the_original_ms3.s19  ms3.s19
diff -u -w the_original_ms3.s19  ms3.s19
The source posted should build the same s19 as the posted 1.1.3 beta s19 on 32bit systems.
On 64bit systems there are two lines of code that build differently, I know why and I've altered the source. The resulting code works just the same though.

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 »

this is on a 64 bit pc
with ms3 1.1.3 and ms3 pre1.2
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 »

You aren't comparing the same code version - so of course it is different!!

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 »

i guess this is wat it looks like when there is no difference ?
http://www.msextra.com/forums/viewtopic ... .3#p339267
Mouse!
MS/Extra Newbie
Posts: 18
Joined: Thu Aug 17, 2006 1:40 am

Re: Compiler build tools (2012)

Post by Mouse! »

Hi! I just just compiled ms2extra_3.2.4 for the first time on my fresh linux install.

I downloaded the 2012 binutils because they were the 'newest'. Then I found that the makefile was still trying to use the old tools. I changed the makefile and got it to build, but it got me wondering if I am supposed to be using the old tools for some reason... I will probably try it in a couple hours, but I thought I should ask here, too...

Also, a mention of this issue at http://www.msextra.com/tools/ could save people a little confusion in the future.

Thanks!
-mouse
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 »

due to a recent bug in the latest ubuntu kernel
i did a reinstall of the tools after ubuntu reinstall
but for some reason is does not work now ?
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 »

I'm guessing you don't have a directory called c:/ on a unix system?

What firmware release was this? The Makefile might need adjusting.

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".
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 »

It might not be directly relevant to the case but it's easier to get help with all *nix problems when using the C language (english) to get untranslated error messages.

If you run make with the variable LANG=C prior you get the output in untranslated english.

Code: Select all

ronald@ronald-System-Product-Name:~/msii$ LANG=C make
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 »

the files seem to be there
tools version 2012 -10 -24
ubuntu 12.04 LTS 3.2.39 had a kernel bug that complety freezed up my system
i went on with the latest 12.04.2 LTS wich has the 3.5.23 kernel but an update to 3.5.26 gave the same system freeze
currently i have the 12.04.2 LTS with the 3.5.23 kernel on a 1 terrabyte drive on wich i made an ntfs partion to hopefully get a drive letter assigment
but no suchs luck
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 »

Could you run the following commands?

file /usr/bin/m68hc11-elf-gcc
ls -l /usr/bin/m68hc11-elf-gcc

If the binary is there but you still can't execute it usally means it's a 32/64-bit issue, however the previously mentioned commands should show if that's the case.
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 »

it had worked before on my 64 bit machine
i assumed the ls-I was capital letter " i "
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 »

I'm not running Ubuntu myself but you'll need to install the correct ia32 libraries to be able to run the compiler.

Have you installed for example ia32-libs-multiarch?

PS. The ls -l is a small L but it doesn't matter now since this issue seems to be architecture related.
Volvo 740 GLT -89, B234F MS3+MS3X Full-Sequential / Wasted Spark
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 »

MS2tester wrote:it had worked before on my 64 bit machine
i assumed the ls-I was capital letter " i "
Nope, lowercase L

I don't have a 64bit Linux install or I'd re-build the binaries in 64bit mode and test here.

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".
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 »

You might also want to try:

Code: Select all

ldd /usr/bin/m68hc11-elf-gcc
to see what libraries the programme is trying to use.
Mine reports:

Code: Select all

[jsm@jsm2 ~]$ ldd /usr/bin/m68hc11-elf-gcc
	linux-gate.so.1 =>  (0x00647000)
	libc.so.6 => /lib/libc.so.6 (0x0090e000)
	/lib/ld-linux.so.2 (0x008ed000)
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