Re: m68k amigaos toolchain

2014-12-24 Thread Vincent Sanders
On Sat, Dec 20, 2014 at 09:47:14PM +, Chris Young wrote:
 On 20 Dec 2014 20:52:25 +, Chris Young wrote:
 
  Furthermore, there's something broken in the compiler as
  everything it builds causes a system freeze on exit.
 
 I suspect this is down to the version of gcc being used.  Everybody
 seems to be stuck on 2.95 still, and the only other version I've seen
 in use for m68k-amigaos is 3.4 (along with notes saying it doesn't
 generate as good 68k code compared to 2.95)

as we discovered with beos, gcc 2.95 support is a bit hit and
miss. Though I beleive the main issue there was g++, even so I fear
2.95 is too primative and is almost 14 years old at this point.

 
 There are loads of patches here:
 https://github.com/cahirwpz/m68k-amigaos-toolchain
 
 There are an excessive number and I have no idea which are relevant.

That is terrifying, I really do think that if they want continuing
compiler support they need to look at a modern gcc version or a clang
port. 

Alas wishing does not make it so, being pragmatic, if there is a
cannonical cross toolchain for the target I might be persuaded to
put it on the CI as long as we can package it under /opt/netsurf
correctly so builds are repeatbale. I dislike this a lot but if it is
the only way...

 
 I've pushed the patches to make libcurl build as a pure clib2 library,
 so the SDK at least completes.

Excellent, thanks for that. I pushed the rebuild on the CI so we
should be able to get a build through in an hour or so. I also enabled
the target for most of the libraries, as expected the netsurf build
itself does not yet work but when you are ready let me know whats
needed and I will turn it on.


 
 Chris
 
 

-- 
Regards Vincent
http://www.kyllikki.org/



m68k amigaos toolchain

2014-12-20 Thread Vincent Sanders
I have attempted to get the m68k-unknown-amigaos toolchain up so i can
get the CI system building for the target[1]. I managed to get the
main toolchain building once I fixed the already known issues with gmp
and autoconf versioning (applied the same fixes we already had for the
ppc-amigaos toolchain)

I have unfortunately failed to make the SDK build. libcurl is failing
because of a missing include. This can be seen in the CI systems build
log [2] If someone knows the answer to this please can they apply it
to the toolchains repo and let me know. Once this is working I will
sort out adding this target to the libs and netsurf.

[1] http://ci.netsurf-browser.org/jenkins/computer/cislave9/

[2] 
http://ci.netsurf-browser.org/jenkins/job/toolchain-m68k-unknown-amigaos/6/console

-- 
Regards Vincent
http://www.kyllikki.org/



Re: m68k amigaos toolchain

2014-12-20 Thread Chris Young
On Sat, 20 Dec 2014 19:51:25 +, Vincent Sanders wrote:

 I have unfortunately failed to make the SDK build. libcurl is failing
 because of a missing include. This can be seen in the CI systems build
 log [2]

The cause is because we are missing the AmiTCP includes.  However, I'm
not sure adding them is the correct solution.  I think what we should
be doing is removing the Amiga-specific stuff from curl (as we do on
ppc-amigaos) and using the clib2 functions, as it should be able to
handle this itself.

Unfortunately I can't get a working curl binary out of it using either
method.  Furthermore, there's something broken in the compiler as
everything it builds causes a system freeze on exit.

 If someone knows the answer to this please can they apply it
 to the toolchains repo and let me know. Once this is working I will
 sort out adding this target to the libs

The libs appear to build ok, which is nice.

 and netsurf.

Not much chance of that for the moment.  I was prodding the m68k
toolchain in the hope that if I got it working it would encourage
somebody to back-port the OS4 frontend to OS3 (or at least make it
easier for me to, very slowly, do the required work).

Chris



Re: m68k amigaos toolchain

2014-12-20 Thread Chris Young
On 20 Dec 2014 20:52:25 +, Chris Young wrote:

 Furthermore, there's something broken in the compiler as
 everything it builds causes a system freeze on exit.

I suspect this is down to the version of gcc being used.  Everybody
seems to be stuck on 2.95 still, and the only other version I've seen
in use for m68k-amigaos is 3.4 (along with notes saying it doesn't
generate as good 68k code compared to 2.95)

There are loads of patches here:
https://github.com/cahirwpz/m68k-amigaos-toolchain

There are an excessive number and I have no idea which are relevant.

I've pushed the patches to make libcurl build as a pure clib2 library,
so the SDK at least completes.

Chris