From joe at perches.com  Tue Jul 22 16:00:52 2008
From: joe at perches.com (Joe Perches)
Date: Tue, 22 Jul 2008 13:00:52 -0700
Subject: gcc 4.3.1?
Message-ID: <1216756852.18986.23.camel@localhost>

Has anyone successfully built gcc 4.3.1 for the netwinder?




From janrinze at home.nl  Tue Jul 22 16:47:28 2008
From: janrinze at home.nl (janrinze)
Date: Tue, 22 Jul 2008 22:47:28 +0200
Subject: gcc 4.3.1?
In-Reply-To: <1216756852.18986.23.camel@localhost>
References: <1216756852.18986.23.camel@localhost>
Message-ID: <1216759648.6515.6.camel@core2-64-desktop>

Hi Joe,

I have not tried it. It probably would take a lot of time to build.
any particular reason for trying to build 4.3.1 ?

Jan Rinze.
On Tue, 2008-07-22 at 13:00 -0700, Joe Perches wrote:
> Has anyone successfully built gcc 4.3.1 for the netwinder?
> 
> 
> 
> _______________________________________________
> Netwinder mailing list
> Netwinder at netwinder.org
> http://lists.infradead.org/mailman/listinfo/netwinder



From ralphs at netwinder.org  Tue Jul 22 16:55:30 2008
From: ralphs at netwinder.org (Ralph Siemsen)
Date: Tue, 22 Jul 2008 16:55:30 -0400
Subject: gcc 4.3.1?
In-Reply-To: <1216756852.18986.23.camel@localhost>
References: <1216756852.18986.23.camel@localhost>
Message-ID: <20080722205530.GF16588@harvey.netwinder.org>

On Tue, Jul 22, 2008 at 01:00:52PM -0700, Joe Perches wrote:

> Has anyone successfully built gcc 4.3.1 for the netwinder?

I haven't tried 4.3, but 4.2.2 is working reasonably well for me.
Are you running into specific problems?

-R


From ralphs at netwinder.org  Tue Jul 22 22:47:46 2008
From: ralphs at netwinder.org (Ralph Siemsen)
Date: Tue, 22 Jul 2008 22:47:46 -0400
Subject: gcc 4.3.1?
In-Reply-To: <1216768445.18986.49.camel@localhost>
References: <1216756852.18986.23.camel@localhost>
	<1216759648.6515.6.camel@core2-64-desktop>
	<1216768445.18986.49.camel@localhost>
Message-ID: <20080723024746.GA7541@harvey.netwinder.org>

On Tue, Jul 22, 2008 at 04:14:05PM -0700, Joe Perches wrote:

> sendmail 8.14.2 doesn't compile using gcc 3.4.6.
> 
> I get errors like:
> 
> cc -O2 -I. -I../../include  -DNEWDB       -c -o domain.o domain.c
> domain.c: In function `getmxrr':
> domain.c:591: internal error--unrecognizable insn:
> (insn 1922 1918 369 (set (reg:SI 4 r4)
>         (umin:SI (reg/v:SI 4 r4)
>             (const_int 8192 [0x2000]))) -1 (nil)
>     (nil))

This has the look of an optimiser bug - quite frequent occurrence,
especially with older versions of gcc on ARM.  Suggest you try 
reducing the optimisation, eg. instead of -O2 try -Os, -O1 or -O0.
In the Makefile you can usually do something like so:

domain.o: CFLAGS += -O0

> http://www.netwinder.org/howto/Disk-Update-HOWTO.html
> (thank you Ralph)

Most welcome!

> Are many people using debian etch?
> Any known issues installing it over 3.1.15?

I know of a small number of folks running debian, haven't heard any
horror stories.  The installer bootstraps via TFTP, so if you have
been through re-imaging that way, its fairly straightfoward to get
going.  Once the installer is running, its pretty much like installing
debian on a PC.

-R


From joe at perches.com  Tue Jul 22 19:14:05 2008
From: joe at perches.com (Joe Perches)
Date: Tue, 22 Jul 2008 16:14:05 -0700
Subject: gcc 4.3.1?
In-Reply-To: <1216759648.6515.6.camel@core2-64-desktop>
References: <1216756852.18986.23.camel@localhost>
	<1216759648.6515.6.camel@core2-64-desktop>
Message-ID: <1216768445.18986.49.camel@localhost>

On Tue, 2008-07-22 at 22:47 +0200, janrinze wrote:
> I have not tried it. It probably would take a lot of time to build.
> any particular reason for trying to build 4.3.1 ?

On Tue, 2008-07-22 at 16:55 -0400, Ralph Siemsen wrote:
> I haven't tried 4.3, but 4.2.2 is working reasonably well for me.
> Are you running into specific problems?

I am still using kernel 2.2.17.

I want to upgrade sendmail from 8.9.3 to a later version
to be able to use a graylist milter.

sendmail 8.14.2 doesn't compile using gcc 3.4.6.

I get errors like:

cc -O2 -I. -I../../include  -DNEWDB       -c -o domain.o domain.c
domain.c: In function `getmxrr':
domain.c:591: internal error--unrecognizable insn:
(insn 1922 1918 369 (set (reg:SI 4 r4)
        (umin:SI (reg/v:SI 4 r4)
            (const_int 8192 [0x2000]))) -1 (nil)
    (nil))

I thought I'd try the latest gcc.

I hesitate to give up on the little machine because it's
quiet and ideal for my use as a mail & music file server.
10 watts and nearly silent with the newer hd.

I should probably just update the netwinder to debian etch,
but after the hd crash I had a few months ago, getting the
lil 'Winder to boot again with a new hd was a chore.
The howto did get it going again.
http://www.netwinder.org/howto/Disk-Update-HOWTO.html
(thank you Ralph)

Are many people using debian etch?
Any known issues installing it over 3.1.15?
http://www.debian.org/releases/stable/arm/ch05s01.html.en




