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

Re: Gcc 3.2 64-bit mode on Sparc?



On Mon, Sep 09, 2002 at 03:12:09PM -0500, Roy Bixler wrote:
> On Mon, Sep 09, 2002 at 09:46:56PM +0200, Matthias Klose wrote:
> > Roy Bixler writes:
> > > I am running Sid and have recently been compiling many kernels in an
> > > effort to get the 'ncpfs' filesystem to work on the Ultrasparc.  Using
> > > the egcs64 package works for kernel 2.4.19 but it chokes on
> > > 2.4.20-pre5 with an internal compilation error.  I then tried to
> > > compile the kernel with gcc-3.2, but was very surprised to find that
> > > it doesn't support 64-bit compilations.  I found even gcc-3.1 doesn't
> > > support 64 bit mode.  I did succeed in compiling 2.4.20-pre5 with
> > > gcc-3.0 but I shortly got a panic with the resulting kernel and am not
> > > confident that gcc-3.0 is good for compiling kernels.  Does anyone
> > > know when I'll be able to compile kernels with a non-ancient
> > > (i.e. newer than egcs-2.92) GCC?
> > 
> > There is a patch in debian/patches/sparc64-build.dpatch to build the
> > 64bit binaries, which is broken since 3.1. The Debian packages are
> > built with the alias sparc-linux, but somewhere
> > unknown-sparc-linux-gnu gets in the way... To apply the currently
> > disabled patch, edit debian/rules.patch.
> > 
> > It would be nice, if someone interested in sparc64 could reenable the
> > sparc64 build. Maybe building for sparc64-linux with code defaulting
> > to sparc-linux could be done.
> 
> So I need to build my own GCC then?  I remember doing that in the old
> days on SunOS machines, so I could do it again.  The reason I'm
> surprised about the disabled 64-bit mode is that I heard that David
> 'sparc' Miller says that GCC v. 3.1/3.2 appear to (once again) be
> suitable for kernel builds on the Ultrasparc.  Can anyone confirm

64bit itself is not broken on Debian. The part that we have trouble with
is very fine grained. Dpkg selects architecture based on gcc's target.
For us, even on sparc64, that is "sparc-linux".

However, if we want to enable 64bit support, we have to use (by default)
"sparc64-linux". We can't have that. So I have a patch (from 2.95.x)
that enabled this.

Matthias, I'll get this tonight. I now have an extra ultrasparc to do
glibc/gcc testing on.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo       - http://www.deqo.com/



Reply to: