This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc bug


I was trying to compile agents2.0 and got the message below which told me
to send this in, so here it is. I am digging through the source code to
see if I can resolve this, the error advised to submit this so I did.

make[1]: Entering directory `/data/c/agent2.0/build/obj/platform'
gcc -D_GNU_SOURCE -DSERVER_TCP_PORT=8196 -Wall   -fPIC
-I/data/c/agent2.0/platform/include
-I/data/c/agent2.0/platform/include-threads   -DHAVE_SYS_UIO_H=1
-DHAVE_CRYPT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_CTYPE_H=1 -DHAVE_MALLOC_H=1
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DSTDC_HEADERS=1 -DUSE_MKSTEMP=1 -DNO_BOOLEAN_T=1
-c /data/c/agent2.0/platform/common/truefalse.cc -o common/truefalse.o
/data/c/agent2.0/platform/common/truefalse.cc: In function `char
*BooleanToString (BOOLEAN, 
BOOL_FORMAT)':
/data/c/agent2.0/platform/common/truefalse.cc:28: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:32: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:36: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:40: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:45: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:47: Unable to find a
register to spill in class `AREG'.
/data/c/agent2.0/platform/common/truefalse.cc:47: This is the insn:
(insn 47 66 48 (set (reg:SI 42)
        (mem/f:SI (plus:SI (reg:SI 16 argp)
                (const_int 4 [0x4])) 0)) 32 {*movsi_1} (nil)
    (expr_list:REG_DEAD (reg:SI 16 argp)
        (nil)))
/data/c/agent2.0/platform/common/truefalse.cc:47: Internal compiler error
in spill_failure, at 
reload1.c:1826
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [common/truefalse.o] Error 1
make[1]: Leaving directory `/data/c/agent2.0/build/obj/platform'
make: *** [unix_platform] Error 2

Below is after adding the -O2 -Wall flag to the compiler flags. I am
pretty sure this is all code related.

echo "cd /data/c/agent2.0/build/obj/platform; \
      make unix_platform \"CFLAGS=-D_GNU_SOURCE -DSERVER_TCP_PORT=8196
-Wall -O2 -Wall \"" \
| sh
make[1]: Entering directory `/data/c/agent2.0/build/obj/platform'
gcc -D_GNU_SOURCE -DSERVER_TCP_PORT=8196 -Wall -O2 -Wall   -fPIC
-I/data/c/agent2.0/platform/include
-I/data/c/agent2.0/platform/include-threads   -DHAVE_SYS_UIO_H=1
-DHAVE_CRYPT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_CTYPE_H=1 -DHAVE_MALLOC_H=1
-DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DSTDC_HEADERS=1 -DUSE_MKSTEMP=1 -DNO_BOOLEAN_T=1
-c /data/c/agent2.0/platform/common/truefalse.cc -o common/truefalse.o
/data/c/agent2.0/platform/common/truefalse.cc: In function `char
*BooleanToString (BOOLEAN, 
BOOL_FORMAT)':
/data/c/agent2.0/platform/common/truefalse.cc:28: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:32: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:36: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:40: cannot convert `const
char *' to `char *' in return
/data/c/agent2.0/platform/common/truefalse.cc:45: cannot convert `const
char *' to `char *' in return
make[1]: *** [common/truefalse.o] Error 1
make[1]: Leaving directory `/data/c/agent2.0/build/obj/platform'
make: *** [unix_platform] Error 2





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]