public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc crashes on squid
@ 2008-04-18  6:39 Florian
  2008-04-18  9:24 ` David Daney
  0 siblings, 1 reply; 5+ messages in thread
From: Florian @ 2008-04-18  6:39 UTC (permalink / raw)
  To: gcc-help

Hello List,

I'm using gcc on Trustix-Linux-Platform. I have two versions of gcc (3.4
and 4.1) and both crash in the same way, when compiling sources of
squid-cache (http://www.squid-cache.org).
Both versions of gcc worked well with every software, but they crash
both with this particular squid-sources.

What can i do? Please give me a hint.

Regards, Florian

---- gcc 3.4 ------
/usr/bin/gcc -v
Reading specs from /usr/lib/gcc/i586-trustix-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/share/info --enable-shared
--enable-threads=posix --disable-checking --disable-libunwind-exceptions
--with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++
--disable-libgcj --host=i586-trustix-linux
Thread model: posix
gcc version 3.4.4 (Trustix)


rsync -avz rsync://squid-cache.org/source/squid-3 .
cd squid-3
./configure --prefix="/usr/local/squid31"
make
...
...
g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include -I../lib/libTrie/include
-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT
AuthScheme.lo -MD -MP -MF .deps/AuthScheme.Tpo -c AuthScheme.cc -o
AuthScheme.o
depbase=`echo AuthUser.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include -I../lib/libTrie/include
   -Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments  -g -O2 -MT
AuthUser.lo -MD -MP -MF "$depbase.Tpo" -c -o AuthUser.lo AuthUser.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I. -I. -I../include -I../include -I../lib/libTrie/include
-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments -g -O2 -MT
AuthUser.lo -MD -MP -MF .deps/AuthUser.Tpo -c AuthUser.cc -o AuthUser.o
AuthUser.cc: In member function `void AuthUser::removeIp(IPAddress)':
AuthUser.cc:264: internal compiler error: in sweep_string_variable, at
protector.c:1142
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.trustix.org/> for instructions.
make[1]: *** [AuthUser.lo] Error 1
make[1]: Leaving directory `/home/users/bai/squid-3/src'
make: *** [all-recursive] Error 1


----- gcc 4.1 --------
/usr/bin/gcc4 -v
Using built-in specs.
Target: i586-trustix-linux
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--mandir=/usr/share/man --infodir=/usr/share/info --enable-shared
--enable-threads=posix --disable-checking --disable-libunwind-exceptions
--with-system-zlib --enable-__cxa_atexit
--enable-languages=c,c++,java,objc --program-suffix=4
--host=i586-trustix-linux
Thread model: posix
gcc version 4.1.1 (Trustix)

rsync -avz rsync://squid-cache.org/source/squid-3 .
cd squid-3
CC=/usr/bin/gcc4; export CC
./configure --prefix="/usr/local/squid31"
make
...
...
/usr/bin/ar cru libsnmp.a asn1.o parse.o snmp_vars.o coexistance.o
snmp_api.o sn           mp_error.o mib.o snmp_api_error.o snmp_msg.o
snmp_pdu.o snmplib_debug.o
ranlib libsnmp.a
make[1]: Leaving directory `/home/users/bai/squid-3/snmplib'
Making all in scripts
make[1]: Entering directory `/home/users/bai/squid-3/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/users/bai/squid-3/scripts'
Making all in src
make[1]: Entering directory `/home/users/bai/squid-3/src'
sed "\
        s%@DEFAULT_HTTP_PORT@%3128%g;\
        s%@DEFAULT_ICP_PORT@%3130%g;\
        s%@DEFAULT_CACHE_EFFECTIVE_USER@%nobody%g;\
        s%@DEFAULT_MIME_TABLE@%/usr/local/squid31/etc/mime.conf%g;\
        s%@DEFAULT_DNSSERVER@%/usr/local/squid31/libexec/`echo dnsserver
| sed '           s,x,x,;s/$//'`%g;\
        s%@DEFAULT_UNLINKD@%/usr/local/squid31/libexec/`echo unlinkd |
sed 's,x,           x,;s/$//'`%g;\
        s%@DEFAULT_PINGER@%/usr/local/squid31/libexec/`echo pinger | sed
's,x,x,           ;s/$//'`%g;\
        s%@DEFAULT_DISKD@%/usr/local/squid31/libexec/`echo diskd | sed
's,x,x,;s           /$//'`%g;\
        s%@DEFAULT_CACHE_LOG@%/usr/local/squid31/var/logs/cache.log%g;\
        s%@DEFAULT_ACCESS_LOG@%/usr/local/squid31/var/logs/access.log%g;\
        s%@DEFAULT_STORE_LOG@%/usr/local/squid31/var/logs/store.log%g;\
        s%@DEFAULT_PID_FILE@%/usr/local/squid31/var/logs/squid.pid%g;\
        s%@DEFAULT_NETDB_FILE@%/usr/local/squid31/var/logs/netdb.state%g;\
        s%@DEFAULT_SWAP_DIR@%/usr/local/squid31/var/cache%g;\
        s%@DEFAULT_ICON_DIR@%/usr/local/squid31/share/icons%g;\
        s%@DEFAULT_MIB_PATH@%/usr/local/squid31/share/mib.txt%g;\
        s%@DEFAULT_ERROR_DIR@%/usr/local/squid31/share/errors/English%g;\
        s%@DEFAULT_PREFIX@%/usr/local/squid31%g;\
        s%@DEFAULT_HOSTS@%/etc/hosts%g;\
        s%@[V]ERSION@%3.HEAD-BZR%g;"\
        < ./cf.data.pre >cf.data
depbase=`echo cf_gen.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
        if g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/sq           uid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTr           ie/include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2 -           MT cf_gen.o -MD -MP -MF
"$depbase.Tpo" -c -o cf_gen.o cf_gen.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
"$depbase.Tpo"; exit            1; fi
depbase=`echo debug.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
        if g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/sq           uid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTr           ie/include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2 -           MT debug.o -MD -MP -MF
"$depbase.Tpo" -c -o debug.o debug.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
"$depbase.Tpo"; exit            1; fi
depbase=`echo time.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
        if g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/sq           uid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTr           ie/include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2 -           MT time.o -MD -MP -MF
"$depbase.Tpo" -c -o time.o time.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
"$depbase.Tpo"; exit            1; fi
depbase=`echo globals.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; \
        if g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/sq           uid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTr           ie/include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2 -           MT globals.o -MD -MP -MF
"$depbase.Tpo" -c -o globals.o globals.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
"$depbase.Tpo"; exit            1; fi
depbase=`echo comm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT comm.lo -MD -MP -MF
"$depbase.Tpo           " -c -o comm.lo comm.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT comm.lo -MD            -MP -MF
.deps/comm.Tpo -c comm.cc -o comm.o
depbase=`echo CommCalls.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT CommCalls.lo -MD -MP -MF
"$depbas           e.Tpo" -c -o CommCalls.lo CommCalls.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT CommCalls.l           o -MD -MP
-MF .deps/CommCalls.Tpo -c CommCalls.cc -o CommCalls.o
depbase=`echo IPInterception.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT IPInterception.lo -MD -MP -MF
"$d           epbase.Tpo" -c -o IPInterception.lo IPInterception.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT IPIntercept           ion.lo -MD
-MP -MF .deps/IPInterception.Tpo -c IPInterception.cc -o
IPIntercepti           on.o
depbase=`echo ICAP/AsyncJob.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT ICAP/AsyncJob.lo -MD -MP -MF
"$de           pbase.Tpo" -c -o ICAP/AsyncJob.lo ICAP/AsyncJob.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT ICAP/AsyncJ           ob.lo -MD
-MP -MF ICAP/.deps/AsyncJob.Tpo -c ICAP/AsyncJob.cc -o ICAP/AsyncJob.o
depbase=`echo SquidConfig.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT SquidConfig.lo -MD -MP -MF
"$depb           ase.Tpo" -c -o SquidConfig.lo SquidConfig.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT SquidConfig           .lo -MD -MP
-MF .deps/SquidConfig.Tpo -c SquidConfig.cc -o SquidConfig.o
depbase=`echo TextException.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT TextException.lo -MD -MP -MF
"$de           pbase.Tpo" -c -o TextException.lo TextException.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT TextExcepti           on.lo -MD
-MP -MF .deps/TextException.Tpo -c TextException.cc -o TextException.o
/bin/sh ../libtool --tag=CXX --mode=link g++ -Werror -Wall
-Wpointer-arith -Wwri           te-strings -Wcomments  -g -O2  -g -o
libsquid.la   comm.lo CommCalls.lo IPInterc           eption.lo
ICAP/AsyncJob.lo SquidConfig.lo TextException.lo
mkdir .libs
ar cru .libs/libsquid.a  comm.o CommCalls.o IPInterception.o
ICAP/AsyncJob.o Squ           idConfig.o TextException.o
ranlib .libs/libsquid.a
creating libsquid.la
(cd .libs && rm -f libsquid.la && ln -s ../libsquid.la libsquid.la)
depbase=`echo AuthConfig.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT AuthConfig.lo -MD -MP -MF
"$depba           se.Tpo" -c -o AuthConfig.lo AuthConfig.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT AuthConfig.           lo -MD -MP
-MF .deps/AuthConfig.Tpo -c AuthConfig.cc -o AuthConfig.o
depbase=`echo AuthScheme.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT AuthScheme.lo -MD -MP -MF
"$depba           se.Tpo" -c -o AuthScheme.lo AuthScheme.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT AuthScheme.           lo -MD -MP
-MF .deps/AuthScheme.Tpo -c AuthScheme.cc -o AuthScheme.o
depbase=`echo AuthUser.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -DDEF
AULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\" -I. -I.
-I../include -I.            -I. -I../include -I../include
-I../lib/libTrie/include    -Werror -Wall -Wpointe           r-arith
-Wwrite-strings -Wcomments  -g -O2 -MT AuthUser.lo -MD -MP -MF
"$depbase           .Tpo" -c -o AuthUser.lo AuthUser.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f
"$depbase.Tpo"; exi           t 1; fi
 g++ -DHAVE_CONFIG_H
-DDEFAULT_CONFIG_FILE=\"/usr/local/squid31/etc/squid.conf\"
-I. -I. -I../include -I. -I. -I../include -I../include
-I../lib/libTrie/include            -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments -g -O2 -MT AuthUser.lo            -MD -MP -MF
.deps/AuthUser.Tpo -c AuthUser.cc -o AuthUser.o
AuthUser.cc: In member function `void AuthUser::removeIp(IPAddress)':
AuthUser.cc:264: internal compiler error: in sweep_string_variable, at
protector           .c:1142
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.trustix.org/> for instructions.
make[1]: *** [AuthUser.lo] Error 1
make[1]: Leaving directory `/home/users/bai/squid-3/src'
make: *** [all-recursive] Error 1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc crashes on squid
  2008-04-18  6:39 gcc crashes on squid Florian
@ 2008-04-18  9:24 ` David Daney
  2008-04-18 18:24   ` Tim Prince
  0 siblings, 1 reply; 5+ messages in thread
From: David Daney @ 2008-04-18  9:24 UTC (permalink / raw)
  To: Florian; +Cc: gcc-help

Florian wrote:
> Hello List,
>
> I'm using gcc on Trustix-Linux-Platform. I have two versions of gcc (3.4
> and 4.1) and both crash in the same way, when compiling sources of
> squid-cache (http://www.squid-cache.org).
> Both versions of gcc worked well with every software, but they crash
> both with this particular squid-sources.
>
> What can i do? Please give me a hint.
>   
Try following the instructions in the error message.
.
.
.
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://bugs.trustix.org/> for instructions
>   
It would seem that trustix.org has made some modifications to your GCC,
so they may be able to help you.

Alternately, you could build gcc-4.2 or gcc-4.3 from the official FSF
release and try to reproduce the bug.  If you can reproduce it from FSF
sources, you would then follow the instructions in the error message
which would say to file a bug report according to the instructions that
can be found here: http://gcc.gnu.org/bugs.html

David Daney

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc crashes on squid
  2008-04-18  9:24 ` David Daney
@ 2008-04-18 18:24   ` Tim Prince
  2008-04-20  6:33     ` Florian
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Prince @ 2008-04-18 18:24 UTC (permalink / raw)
  Cc: Florian, gcc-help

David Daney wrote:
> Florian wrote:
>> Hello List,
>>
>> I'm using gcc on Trustix-Linux-Platform. I have two versions of gcc (3.4
>> and 4.1) and both crash in the same way, when compiling sources of
>> squid-cache (http://www.squid-cache.org).
>> Both versions of gcc worked well with every software, but they crash
>> both with this particular squid-sources.
>>
>> What can i do? Please give me a hint.
>>   
> Try following the instructions in the error message.
> .
> .
> .
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <URL:http://bugs.trustix.org/> for instructions
>>   
> It would seem that trustix.org has made some modifications to your GCC,
> so they may be able to help you.
> 
> Alternately, you could build gcc-4.2 or gcc-4.3 from the official FSF
> release and try to reproduce the bug.  If you can reproduce it from FSF
> sources, you would then follow the instructions in the error message
> which would say to file a bug report according to the instructions that
> can be found here: http://gcc.gnu.org/bugs.html
> 

You might try to build that particular source file without optimization, 
while waiting for action on a bug report.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc crashes on squid
  2008-04-18 18:24   ` Tim Prince
@ 2008-04-20  6:33     ` Florian
  2008-04-20  9:50       ` Tim Prince
  0 siblings, 1 reply; 5+ messages in thread
From: Florian @ 2008-04-20  6:33 UTC (permalink / raw)
  To: gcc-help

Tim Prince schrieb:
> David Daney wrote:
>> Florian wrote:
>>> Hello List,
>>>
>>> I'm using gcc on Trustix-Linux-Platform. I have two versions of gcc
>>> (3.4
>>> and 4.1) and both crash in the same way, when compiling sources of
>>> squid-cache (http://www.squid-cache.org).
>>> Both versions of gcc worked well with every software, but they crash
>>> both with this particular squid-sources.
>>>
>>> What can i do? Please give me a hint.
>>>   
>> Try following the instructions in the error message.
>>> Please submit a full bug report,
>>> with preprocessed source if appropriate.
>>> See <URL:http://bugs.trustix.org/> for instructions
>>>  
Comodo has discontinued trustix.

> You might try to build that particular source file without
> optimization, while waiting for action on a bug report.
How can i buid it "without optimization"?

I built a new gcc (4.3.0) from the gnu-sources and have nearly the same
problem:
/usr/local/gcc430/bin/gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure --prefix=/usr/local/gcc430
--with-gmp=/usr/local/gmp422 --with-mpfr=/usr/local/mpfr231
--enable-languages=c,c++,java,objc
Thread model: posix
gcc version 4.3.0 (GCC)

cd /home/users/bai/squid-3
CC=/usr/local/gcc430/bin/gcc; export CC
CXX=/usr/local/gcc430/bin/c++; export CXX
CPP=/usr/local/gcc430/bin/cpp; export CPP
./configure --prefix=/usr/local/squid310
make

Making all in lib
make[1]: Entering directory `/home/users/bai/squid-3/lib'
Making all in libTrie
make[2]: Entering directory `/home/users/bai/squid-3/lib/libTrie'
make  all-recursive
make[3]: Entering directory `/home/users/bai/squid-3/lib/libTrie'
Making all in src
make[4]: Entering directory `/home/users/bai/squid-3/lib/libTrie/src'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/users/bai/squid-3/lib/libTrie/src'
Making all in test
make[4]: Entering directory `/home/users/bai/squid-3/lib/libTrie/test'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/users/bai/squid-3/lib/libTrie/test'
make[4]: Entering directory `/home/users/bai/squid-3/lib/libTrie'
make[4]: Leaving directory `/home/users/bai/squid-3/lib/libTrie'
make[3]: Leaving directory `/home/users/bai/squid-3/lib/libTrie'
make[2]: Leaving directory `/home/users/bai/squid-3/lib/libTrie'
make[2]: Entering directory `/home/users/bai/squid-3/lib'
if /usr/local/gcc430/bin/c++ -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2              -MT MemPool.o -MD -MP
-MF ".deps/MemPool.Tpo" -c -o MemPool.o MemPool.cc; \
        then mv -f ".deps/MemPool.Tpo" ".deps/MemPool.Po"; else rm -f
".deps/Mem             Pool.Tpo"; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wmissing-prototype             s -Wmissing-declarations
-Wcomments -Wall -g -O2 -MT base64.o -MD -MP -MF ".deps            
/base64.Tpo" -c -o base64.o base64.c; \
        then mv -f ".deps/base64.Tpo" ".deps/base64.Po"; else rm -f
".deps/base6             4.Tpo"; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wmissing-prototype             s -Wmissing-declarations
-Wcomments -Wall -g -O2 -MT getfullhostname.o -MD -MP -             MF
".deps/getfullhostname.Tpo" -c -o getfullhostname.o getfullhostname.c; \
        then mv -f ".deps/getfullhostname.Tpo"
".deps/getfullhostname.Po"; else              rm -f
".deps/getfullhostname.Tpo"; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wmissing-prototype             s -Wmissing-declarations
-Wcomments -Wall -g -O2 -MT hash.o -MD -MP -MF ".deps/h            
ash.Tpo" -c -o hash.o hash.c; \
        then mv -f ".deps/hash.Tpo" ".deps/hash.Po"; else rm -f
".deps/hash.Tpo"             ; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wmissing-prototype             s -Wmissing-declarations
-Wcomments -Wall -g -O2 -MT heap.o -MD -MP -MF ".deps/h            
eap.Tpo" -c -o heap.o heap.c; \
        then mv -f ".deps/heap.Tpo" ".deps/heap.Po"; else rm -f
".deps/heap.Tpo"             ; exit 1; fi
if /usr/local/gcc430/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wmissing-prototype             s -Wmissing-declarations
-Wcomments -Wall -g -O2 -MT html_quote.o -MD -MP -MF ".            
deps/html_quote.Tpo" -c -o html_quote.o html_quote.c; \
        then mv -f ".deps/html_quote.Tpo" ".deps/html_quote.Po"; else rm
-f ".de             ps/html_quote.Tpo"; exit 1; fi
if /usr/local/gcc430/bin/c++ -DHAVE_CONFIG_H -I. -I. -I../include
-I../include -             I../include    -Werror -Wall -Wpointer-arith
-Wwrite-strings -Wcomments  -g -O2              -MT IPAddress.o -MD -MP
-MF ".deps/IPAddress.Tpo" -c -o IPAddress.o IPAddress.cc             ; \
        then mv -f ".deps/IPAddress.Tpo" ".deps/IPAddress.Po"; else rm
-f ".deps             /IPAddress.Tpo"; exit 1; fi
cc1plus: warnings being treated as errors
IPAddress.cc: In member function 'void
IPAddress::GetAddrInfo(addrinfo*&, int) c             onst':
IPAddress.cc:837: error: suggest parentheses around && within ||
make[2]: *** [IPAddress.o] Error 1
make[2]: Leaving directory `/home/users/bai/squid-3/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/bai/squid-3/lib'
make: *** [all-recursive] Error 1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: gcc crashes on squid
  2008-04-20  6:33     ` Florian
@ 2008-04-20  9:50       ` Tim Prince
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Prince @ 2008-04-20  9:50 UTC (permalink / raw)
  To: Florian; +Cc: gcc-help

Florian wrote:

> Comodo has discontinued trustix.
So you can't expect the gcc project to support a branch they had no 
control over.
> 
>> You might try to build that particular source file without
>> optimization, while waiting for action on a bug report.
> How can i buid it "without optimization"?
I recall you showing the error occured at -O2.  How about -O0 ?
> 
> I built a new gcc (4.3.0) from the gnu-sources and have nearly the same
> problem:

> if /usr/local/gcc430/bin/c++ -DHAVE_CONFIG_H -I. -I. -I../include
> -I../include -             I../include    -Werror -Wall -Wpointer-arith
> -Wwrite-strings -Wcomments  -g -O2              -MT IPAddress.o -MD -MP
> -MF ".deps/IPAddress.Tpo" -c -o IPAddress.o IPAddress.cc             ; \
>         then mv -f ".deps/IPAddress.Tpo" ".deps/IPAddress.Po"; else rm
> -f ".deps             /IPAddress.Tpo"; exit 1; fi
> cc1plus: warnings being treated as errors
> IPAddress.cc: In member function 'void
> IPAddress::GetAddrInfo(addrinfo*&, int) c             onst':
> IPAddress.cc:837: error: suggest parentheses around && within ||

You have -Werror set.  If you don't want to heed the advice, you can turn 
off -Werror to allow things to proceed.  This hardly qualifies as "nearly 
the same problem," although it is a recurring annoyance.  In fact, you can 
easily find PRs about the excessive issuance of this new warning. 
However, you're asking for it when you set -Wall -Werror ... together.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-20  4:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-18  6:39 gcc crashes on squid Florian
2008-04-18  9:24 ` David Daney
2008-04-18 18:24   ` Tim Prince
2008-04-20  6:33     ` Florian
2008-04-20  9:50       ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).