[squid-users] Squid 3.2 build question with gcc version 4.2.2

From: Holmes, Michael A \(Mike\) <Mike.Holmes_at_lsi.com>
Date: Tue, 7 Aug 2012 13:41:27 -0400

Hi all,

I had no problem with 3.1 but in moving to 3.2 to get some hoped for SMP improvements I ran into the gcc internal error below. Since it will not be easy for me to get a newer compiler for this embedded system. I wondered if this code in a module I can leave out when only using the simplest forward proxy capabilities of squid?

Finally if all else fails does anyone know what alternative to squid that would be able to use multiple threads when running as the simplest of caches for external web sites? Cherokee or varnish maybe?

StoreMap.cc: In member function 'const Ipc::StoreMapSlot* Ipc::StoreMap::openForReadingAt(sfileno)':
StoreMap.cc:196: error: unrecognizable insn:
(insn 434 433 435 21 ../../src/ipc/AtomicWord.h:47 (parallel [
            (set (reg:SI 262)
                (ior:SI (and:SI (plus:SI (mem/v:QI (plus:SI (reg/f:SI 256)
                                    (const_int 8 [0x8])) [-1 S1 A64])
                            (reg:SI 258))
                        (reg:SI 260))
                    (and:SI (not:SI (reg:SI 260))
                        (mem/v:QI (plus:SI (reg/f:SI 256)
                                (const_int 8 [0x8])) [-1 S1 A64]))))
            (set (reg:SI 261)
                (mem/v:QI (plus:SI (reg/f:SI 256)
                        (const_int 8 [0x8])) [-1 S1 A64]))
            (set (mem/v:QI (plus:SI (reg/f:SI 256)
                        (const_int 8 [0x8])) [-1 S1 A64])
                (unspec:SI [
                        (ior:SI (and:SI (plus:SI (mem/v:QI (plus:SI (reg/f:SI 256)
                                            (const_int 8 [0x8])) [-1 S1 A64])
                                    (reg:SI 258))
                                (reg:SI 260))
                            (and:SI (not:SI (reg:SI 260))
                                (mem/v:QI (plus:SI (reg/f:SI 256)
                                        (const_int 8 [0x8])) [-1 S1 A64])))
                    ] 40))
            (clobber (scratch:CC))
            (clobber (scratch:SI))
        ]) -1 (nil)
    (nil))
StoreMap.cc:196: internal compiler error: in extract_insn, at recog.c:2077
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [StoreMap.lo] Error 1
make[3]: Leaving directory `/root/squid-3.2.0.19/src/ipc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/squid-3.2.0.19/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/squid-3.2.0.19/src'
make: *** [all-recursive] Error 1
root_at_lcp-elpaso2:~/squid-3.2.0.19#

root_at_lcp-elpaso2:~/squid-3.2.0.19# gcc -v
Reading specs from /usr/lib/gcc/ppc-linux/4.2.2/specs
Target: ppc-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libgcj --build=i386-redhat-linux-gnu --host=ppc-linux --target=ppc-linux --with-newlib --with-gnu-ld --with-gnu-as --enable-languages=c,c++,java --enable-multilib=no --enable-nls=yes --disable-multilib --with-as=/opt/eldk/build/ppc-2008-04-01/work/usr/bin/ppc-linux-as --with-ld=/opt/eldk/build/ppc-2008-04-01/work/usr/bin/ppc-linux-ld
Thread model: posix
gcc version 4.2.2
Received on Tue Aug 07 2012 - 17:41:32 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 08 2012 - 12:00:03 MDT