On Mon, Aug 02, 2004, Steffen Weinreich wrote: > I get a internal compiler error buidling lzo under rhl9. The Openpg > Instance is the Binary CORE build from ftp.openpkg.org I have checked the > <http://cvs.openpkg.org/getfile/openpkg-re/osprereq.txt?v=1.21> and found > no major missing pakets. Any hints what i have missed? > [...] > > LANG=C openpkg build lzo |sh -v 2>&1 | tee /tmp/lzo.log > > source='lzo_init.c' object='lzo_init.lo' libtool=yes \ > depfile='.deps/lzo_init.Plo' tmpdepfile='.deps/lzo_init.TPlo' \ > depmode=gcc3 /bin/sh ../acconfig/depcomp \ > /bin/sh ../libtool --mode=compile /openpkg/bin/cc -DHAVE_CONFIG_H -I. -I. > -I.. -I../include -DLZO_HAVE_CONFIG_H -O2 -pipe -O2 -Wall -Wcast-align > -Wcast-qual -Wwrite-strings -fno-strength-reduce -fstrict-aliasing > -DLZO_BUILD -fomit-frame-pointer -Wpointer-arith -Wstrict-prototypes > -Wmissing-prototypes -Wno-uninitialized -c -o lzo_init.lo `test -f > 'lzo_init.c' || echo './'`lzo_init.c > lzo_crc.c: In function `lzo_crc32': > lzo_crc.c:129: internal compiler error: Illegal instruction > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://www.openpkg.org/> for instructions. > [...]
Well, you get an ICE here and this means you cannot do very much except hack the lzo.spec and replace perhaps the %{l_cflags -O} with just %{l_cflags} (in order to reduce the optimization levels). But be careful, above are two -O2. The first seems to come from OpenPKG's %{l_cflags -O} but the second seems to be hard-coded somewhere in lzo's configure. You have to substitute away this, too. I personally would try something like this: Index: lzo.spec =================================================================== RCS file: /e/openpkg/cvs/openpkg-src/lzo/lzo.spec,v retrieving revision 1.19 diff -u -d -u -d -u -d -r1.19 lzo.spec --- lzo.spec 7 Feb 2004 17:56:29 -0000 1.19 +++ lzo.spec 2 Aug 2004 17:14:59 -0000 @@ -62,8 +62,9 @@ %setup -q %build + %{l_shtool} subst -e 's;-O2;;' configure CC="%{l_cc}" \ - CFLAGS="%{l_cflags -O}" \ + CFLAGS="%{l_cflags}" \ ./configure \ --prefix=%{l_prefix} \ --includedir=%{l_prefix}/include/lzo \ Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]