[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GCC 4.2.2 - My Status....



> Compile binutils 2.18.  Fails...
> Compile new mintlib with patches, install
> Compile binutils 2.18 .. fails again
> realize I am missing some patches
> patch up and compile again.. succeeds.. install
> Compile mintlib again with new binutils.. WORKS for me :)
>
since you say gcc is still compiling I assume you compiled and tested
it against gcc2, right? So definitely there's some error on my side,
I've done a lot of experiments and copying/moving/deleting ;-)

> Need to free up disk space for gcc, but you guys have made some amazing
> progress.  All of this is working pretty well perfectly for me :)
>
99% credit is for vincent, he did incredible work with patching and
hunting bugs for both gcc and binutils. btw, if someone else is
interested, I find this as the most essential way to build the fastest
gcc4:

- stack --fix=256k for /usr/bin/install, /bin/bash, /bin/sh
- build & install 68000 mintlib (with all patches and stksize=1M!) against gcc2
- build & install gcc4 with --disable-bootstrap --disable-multilib against gcc2
- make clean in mintlib, enable debug, 020-60 and add 060 target
- build & install these four targets against gcc4 (made sure by
checking gcc --version ;-)
- in t-mint in gcc4 sources enable m68060, change m68020-60=m68060 to
m68060=m68060 (optionally you can add m68020-60=m68030),
having/deleting m68000 has no effect, 68000 versions are built
everytime
- build & install full gcc4 (no --disable-multilib)
...
...
after compilation, you should see 060-versions of libstdc++, libssp,
libsupc++, libgcov and libgcc. Unfortunately, all the others lib which
is used by gcc when building (libiberty, libcpp, libdecnumber, ...) is
just 68000. no idea if this is default by gnu people or vincent
disabled it for some troubles.

optional step: take also libm (either from vincent's pml package or
directly sparemint rpm) and recompile against gcc4 + -m68060 (this
step would fit after "make clean" step above)

as you see I don't use binutils 2.18 yet, I'm not sure if it has any
sense to build them two times (gcc2+old mintlib and then gcc4+new
mintlib)

-- 
MiKRO / Mystic Bytes
http://mikro.atari.org