Compiler build tools (2012)

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Compiler build tools (2012)

Postby jsmcortina » Tue Oct 23, 2012 5:33 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby jsmcortina » Thu Oct 25, 2012 12:00 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby racingmini_mtl » Thu Oct 25, 2012 12:07 pm

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

Re: Compiler build tools (2012)

Postby MS2tester » Fri Nov 02, 2012 1:38 am

i thought i have a go at installing under ubuntu
but i did not get very far
MS2tester
Master MS/Extra'er
 
Posts: 437
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands

Re: Compiler build tools (2012)

Postby jsmcortina » Fri Nov 02, 2012 2:26 am

You probably want to check the Ubuntu support forums. This might do the job though:
Code: Select all
$ sudo bash

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

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby MS2tester » Fri Nov 02, 2012 3:27 am

i think it worked or atleast an s19 file came out :yeah!:
MS2tester
Master MS/Extra'er
 
Posts: 437
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands

Re: Compiler build tools (2012)

Postby jsmcortina » Fri Nov 02, 2012 4:39 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby MS2tester » Fri Nov 02, 2012 5:09 am

this is on a 64 bit pc
with ms3 1.1.3 and ms3 pre1.2
MS2tester
Master MS/Extra'er
 
Posts: 437
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands

Re: Compiler build tools (2012)

Postby jsmcortina » Fri Nov 02, 2012 6:25 am

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

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

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby MS2tester » Fri Nov 02, 2012 7:49 am

i guess this is wat it looks like when there is no difference ?
viewtopic.php?f=125&t=47133&p=339267&hilit=ms3+1.1.3#p339267
MS2tester
Master MS/Extra'er
 
Posts: 437
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands

Re: Compiler build tools (2012)

Postby Mouse! » Thu Feb 21, 2013 12:31 pm

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
Mouse!
MS/Extra Newbie
 
Posts: 18
Joined: Thu Aug 17, 2006 1:40 am

Re: Compiler build tools (2012)

Postby MS2tester » Mon Mar 25, 2013 1:21 pm

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

Re: Compiler build tools (2012)

Postby jsmcortina » Mon Mar 25, 2013 4:25 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby kristian » Mon Mar 25, 2013 11:23 pm

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
User avatar
kristian
Helpful MS/Extra'er
 
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Postby MS2tester » Tue Mar 26, 2013 2:35 am

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

Re: Compiler build tools (2012)

Postby kristian » Tue Mar 26, 2013 3:03 am

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
User avatar
kristian
Helpful MS/Extra'er
 
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Postby MS2tester » Tue Mar 26, 2013 4:06 am

it had worked before on my 64 bit machine
i assumed the ls-I was capital letter " i "
MS2tester
Master MS/Extra'er
 
Posts: 437
Joined: Sat Apr 11, 2009 12:54 pm
Location: Aalsmeer the netherlands

Re: Compiler build tools (2012)

Postby kristian » Tue Mar 26, 2013 4:21 am

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
User avatar
kristian
Helpful MS/Extra'er
 
Posts: 96
Joined: Fri Sep 02, 2011 9:25 pm
Location: Visby, Sweden

Re: Compiler build tools (2012)

Postby jsmcortina » Tue Mar 26, 2013 4:23 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Compiler build tools (2012)

Postby jsmcortina » Tue Mar 26, 2013 4:30 am

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33912
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Next

Return to MS3 Development

Who is online

Users browsing this forum: No registered users and 2 guests