POV-Ray : Newsgroups : povray.unix : Re: Povray on Debian AMD64 : Re: Povray on Debian AMD64 Server Time
5 Jul 2024 12:57:12 EDT (-0400)
  Re: Povray on Debian AMD64  
From: NichG
Date: 22 Jul 2005 18:25:00
Message: <web.42e1717ddec77a7a133d4b420@news.povray.org>
"" <nomail@nomail> wrote:
> >  This is a problem with GCC, not POV-Ray.  I have faced it myself
> > (though when compiling the Zlib included in the POV-Ray distro) trying
> > to compile with gcc-3.3.4.  According to GCC bugzilla*, this internal
> > compiler error (aka ICE) seems to occur in the 3.3 series on the AMD64,
> > at least this 3.3.4 release.
> >
> >  OTOH, POV-Ray compiles fine with the GCC 3.4.x series.  Moreover
> > the later supports the k8/opteron compiler flags, which should result in
> > a faster POV-Ray binary (also the 3.3.x series usually produce slightly
> > slower code on other platforms).  I recommand you install GCC 3.4.1 (or
> > the newest 3.4.2) and try again compiling POV-Ray with it -- works for me.
> >
> >  - NC
> >
> > (*) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16874
>
> Hello and thank you for your reply,
>
> but I still have the same error with gcc 3.4x series,
> unpacked form fresh source code did not use the "old" one:
>
> povms.cpp: In function `int POVMSUtil_TempAlloc(void**, int)':
> povms.cpp:3830: error: unerkennbares insn:
> (insn:HI 82 81 64 2 0x2a9682e780 (set (reg:SI 58)
>         (plus:SI (mult:SI (reg:SI 58)
>                 (const_int 2 [0x2]))
>             (const_int -2 [0xfffffffffffffffe]))) -1 (insn_list 81 (nil))
>     (nil))
> povms.cpp:3830: internal compiler error: in extract_insn, at recog.c:2175
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
> make[3]: *** [povms.o] Fehler 1

> make[2]: *** [all-recursive] Fehler 1

> make[1]: *** [all-recursive] Fehler 1

> make: *** [all] Fehler 2
>
> /usr/src/povray-3.6.1$> gcc -v
> Lese Spezifikationen von /usr/lib/gcc/x86_64-linux/3.4.2/specs
> Konfiguriert mit: ../src/configure -v
> --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
> --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4
> --enable-shared --with-system-zlib --enable-nls --without-included-gettext
> --program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
> --enable-java-awt=gtk --disable-werror x86_64-linux
> Thread-Modell: posix
> gcc-Version 3.4.2 (Debian 3.4.2-2)
>
> Is it possible to send me your .deb package?

I think I may have found why that happens. I had the same bug trying to
compile povray-3.6.1 under Ubuntu with gcc-3.3. When I switched to gcc-3.4
I also got an error about the chosen architecture not supporting 64 bit
code. It looks like the configure script identifies the architecture as
686. I went through all the Makefiles and changed the -march=686 to
-march=k8, after which it compiled.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.