Page 1 of 3

Compiler build tools (2012)

Posted: Tue Oct 23, 2012 5:33 pm
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

Re: Compiler build tools (2012)

Posted: Thu Oct 25, 2012 12:00 pm
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

Re: Compiler build tools (2012)

Posted: Thu Oct 25, 2012 12:07 pm
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

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 1:38 am
by MS2tester
i thought i have a go at installing under ubuntu
but i did not get very far

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 2:26 am
by jsmcortina
You probably want to check the Ubuntu support forums. This might do the job though:

Code: Select all

$ sudo bash
James

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 3:27 am
by MS2tester
i think it worked or atleast an s19 file came out :yeah!:

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 4:39 am
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

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 5:09 am
by MS2tester
this is on a 64 bit pc
with ms3 1.1.3 and ms3 pre1.2

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 6:25 am
by jsmcortina
You aren't comparing the same code version - so of course it is different!!

James

Re: Compiler build tools (2012)

Posted: Fri Nov 02, 2012 7:49 am
by MS2tester
i guess this is wat it looks like when there is no difference ?
http://www.msextra.com/forums/viewtopic ... .3#p339267

Re: Compiler build tools (2012)

Posted: Thu Feb 21, 2013 12:31 pm
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

Re: Compiler build tools (2012)

Posted: Mon Mar 25, 2013 1:21 pm
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 ?

Re: Compiler build tools (2012)

Posted: Mon Mar 25, 2013 4:25 pm
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

Re: Compiler build tools (2012)

Posted: Mon Mar 25, 2013 11:23 pm
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

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 2:35 am
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

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 3:03 am
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.

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 4:06 am
by MS2tester
it had worked before on my 64 bit machine
i assumed the ls-I was capital letter " i "

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 4:21 am
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.

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 4:23 am
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

Re: Compiler build tools (2012)

Posted: Tue Mar 26, 2013 4:30 am
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