Bug#180486: gcc-3.2: miscompilation on powerpc with -O2 or higher
Greetings!
Daniel Jacobowitz <dan@debian.org> writes:
> On Mon, Feb 24, 2003 at 10:14:03AM -0500, Camm Maguire wrote:
> > Greetings!
> >
> > Matthias Klose <doko@cs.tu-berlin.de> writes:
> >
> > > Camm Maguire writes:
> > > > Package: gcc-3.2
> > > > Version: 1:3.2.2-1
> > > > Severity: normal
> > > >
> > > > When compiling GCL, the produced lisp image segfaults early on
> > > > iwhen using -O2 or higher. All is fine with -O, or with full
> > > > optimization using earlier gcc versions on this platform.
> > >
> > > - did GCL compile correctly with gcc-3.0 and/or gcc-2.95 using -O2?
> >
> > 2.95 yes, actually even with -O3 -fomit-frame-pointer
> > 3.0 don't know.
> >
> > > - does GCL compile correctly with gcc-snapshot using -O2?
> > >
> >
> > Don't know, but will try it if I get a chance. I used to be able to
> > try different compilers on Debian project machines relatively easily
> > by:
>
> Just ask debian-admin@lists.d.o to install them.
>
Thanks. I just managed to try with the gcc-snapshot currently on
voltaire, and the problem persists. I can try with 3.0 if that will help.
> > dpkg --fsys-tarfile <needed debs> | tar xf -
> > export GCC_EXEC_PREFIX=$HOME/usr/lib/gcc-lib/
> > export LD_LIBRARY_PATH=$HOME/lib:$HOME/usr/lib
> > export LIBRARY_PATH=$HOME/lib:$HOME/usr/lib
> > export C_INCLUDE_PATH=$HOME/usr/include
> > ln -s gcc-??? usr/bin/gcc
> > export PATH=$HOME/usr/bin:$PATH
> >
> > but this isn't working of late anymore, due to
> >
> > 1) dependencies on latest libc, which in turn depends on latest ld.so,
> > which I can't install as a user
>
> Sure you can, it's just a bit awkward to use. A couple of wrapper
> scripts a la
> #!/bin/sh
> exec $HOME/lib/ld.so --library-path $HOME/lib:$HOME/usr/lib \
> $HOME/usr/bin/gcc $*
>
Thanks very much for this.
Take care,
> > 2) oddities with stdlib.h installed with the above procedure. Some
> > defines are missing.
>
> It should work, but you'll have to be more specific about the problems.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
>
>
--
Camm Maguire camm@enhanced.com
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
Reply to: