From mint-bounce@lists.fishpool.fi  Tue Jan 22 17:34:54 2008
X-Original-To: fnaumann@mail.boerde.de
Delivered-To: fnaumann@mail.boerde.de
Date: Fri, 18 Jan 2008 10:30:18 -0500 (EST)
From: Keith Scroggins <kws@radix.net>
To: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= <vincent.riviere@freesbee.fr>
Cc: mint@fishpool.com
Subject: Re: [MiNT] GCC 4.2.2 - My Status....
In-Reply-To: <4790A31F.9070307@freesbee.fr>
Message-ID: <Pine.GSO.4.63.0801180946560.9410@saltmine.radix.net>
References: <c6533ef60801011247x7114e5f8xfce6ccd1ad10272@mail.gmail.com> 
 <c6533ef60801091422n41bf1188uaf1a3e5787478e2c@mail.gmail.com> 
 <478695AD.5080504@freesbee.fr>  <c6533ef60801101443i1c2b2618kbaee706805b26552@mail.gmail.com>
  <c6533ef60801120054p6d2cfe86pff4f99f2c04fa84f@mail.gmail.com> 
 <4788CFD0.7040806@freesbee.fr>  <c6533ef60801120940q38524e5bjdab5d917ae9ca7e8@mail.gmail.com>
  <47892AE3.5030108@freesbee.fr>  <c6533ef60801121557u48908797qaba3df7c39c3f43b@mail.gmail.com>
  <Pine.GSO.4.63.0801172221140.15049@saltmine.radix.net>
 <c6533ef60801180112n3559fe39j5bab3e6d895488f5@mail.gmail.com>
 <4790A31F.9070307@freesbee.fr>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1804928587-1200668184=:9410"
Content-ID: <Pine.GSO.4.63.0801181001440.9410@saltmine.radix.net>
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-To: mint-bounce@lists.fishpool.fi
X-original-sender: kws@radix.net
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
X-Virus-Scanned: by amavisd-new at relay.boerde.de
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on relay.boerde.de
X-Spam-Status: No, hits=-1.0 tagged_above=-50.5 required=7.0 tests=BAYES_00
X-Spam-Level: 
Status: 
X-Status: 
X-Keywords:                   

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1804928587-1200668184=:9410
Content-Type: TEXT/PLAIN; CHARSET=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID: <Pine.GSO.4.63.0801181001441.9410@saltmine.radix.net>

OK,

Built GCC 4.2.2 with GCC 2.95.3 and Binutils 2.18 (Vincent's build from=20
December).

Successfully bootstrapped.

So, to test, I rebuilt the ScummVM tools packages (all tools build and=20
work with GCC 2.95.3 and my GCC 4.1.2 and they are a mixture of C and C++=
=20
for 20+ binaries).  They all failed.  Miro said he rebuilt Quake first,=20
and it failed so he rebuilt MintLib.

So, I rebuilt MintLib with the new compiler and the patches Miro posted on=
=20
the list in a single archive.  Installed and rebuilt the ScummVM tools=20
package.  This time around, the C based utils seem to work (I did not get=
=20
a chance to extensively test them, but they don't SIGBUS immediately like=
=20
they did previously).  The C++ based utils still SIGBUS.  Here is a quick=
=20
GDB output....

bash-2.05a# gdb descumm
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you ar=
e
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "m68k-atari-mint"...
(gdb) run
Starting program: /d/usr/local/src/scummvm-tools-0.11.0/descumm


HDDRIVER V8.02
  1989-2001 Uwe Seimet

Program received signal SIGBUS, Bus error.
0x36364 in ?? ()
(gdb) bt
#0  0x36364 in ?? ()
#1  0x213eb80 in .L89 ()
#2  0x213c72c in .L118 ()
Cannot access memory at address 0x3d069
(gdb) quit
The program is running.  Exit anyway? (y or n) y
bash-2.05a# g++ -v
Using built-in specs.
Target: m68k-atari-mint1.16.3a
Configured with: ../gcc-4.2.2/configure --program-suffix=3D-4.2.2 --enable-=
languag
es=3Dc,c++ --disable-nls --disable-libstdcxx-pch
Thread model: single
gcc version 4.2.2

---

With no command line params, this util just displays a list of available=20
commands.  And, this is what I saw (the mention of HDDRIVER) before I=20
rebuilt MintLib.

I tried with your libs from the cygwin archive, and got the same result.=20
So, I must have done something wrong with the build.

I am going to rebuild binutils, and then decide what to do next, most=20
likely I'll do another gcc build, but not bootstrap it since the C=20
compiler seems to work so far.

Keith


On Fri, 18 Jan 2008, Vincent Rivi=E8re wrote:

> MiKRO wrote :
>> my only problem (but very visible :) is i can't get binutils 2.18
>> running -- linking the mintlib kills whole system.
>
> If I understood well, Keith managed to recompile the MiNTLib with the nat=
ive=20
> binutils 2.18 and GCC 4.2.2. Then GCC was able to link C programs.
>
>> vincent, did you
>> try to install binutils (with old gcc2) to aranym and test it? maybe
>> you will be able to spot problem faster than me..
>
> In the last episode, I managed to compile the native binutils 2.18 with G=
CC=20
> 2.95. When I have some time, I'll try to build the MiNTLib to see if I ha=
ve=20
> the same problem as you when building libc.a.
>
> --=20
> Vincent Rivi=E8re
>
>
---559023410-1804928587-1200668184=:9410--


