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 2.95.2 fails on OSF 4.0f with internal error when compiling MySQL (C++ code)



Hi!

I am the MySQL maintainer and I am trying to do a binary distribution
of MySQL 3.23.6 on OSF1 4.0f

When compiling MySQL gcc 2.95.2 fails with:

shell> gcc -v --save-temps -DMYSQL_SERVER                      -DD
EFAULT_MYSQL_HOME="\"/usr/local/mysql\""                     -DDATADIR="\"/usr/l
ocal/mysql/var\""                   -DSHAREDIR="\"/usr/local/mysql/share/mysql\"
"                    -DHAVE_CONFIG_H -I./../include                  -I./../rege
x                    -I. -I../include -I.. -I.    -D_LARGEFILE_SOURCE -D_LARGEFI
LE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -DDBUG_OFF -O3  -fno-implicit-templates
sql_acl.cc
Reading specs from /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/cpp -lang-c++ -v -I./../include -I./../regex -I. -I../include -I.. -I. -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Dunix -D__osf__ -D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix -D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -D__EXCEPTIONS -D__OPTIMIZE__ -D__LANGUAGE_C_PLUS_PLUS__ -D__LANGUAGE_C_PLUS_PLUS -D__cplusplus -Acpu(alpha) -Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev6__ -Acpu(ev6) -D__alpha_bwx__ -Acpu(bwx) -D__alpha_max__ -Acpu(max) -D__alpha_fix__ -Acpu(fix) -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="/usr/local/mysql" -DDATADIR="/usr/local/mysql/var" -DSHAREDIR="/usr/local/mysql/share/mysql" -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DDBUG_OFF sql_acl.cc sql_acl.ii
GNU CPP version 2.95.2 19991024 (release)
#include "..." search starts here:
#include <...> search starts here:
 ../include
 ../regex
 .
 ../include
 ..
 .
 /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/../../../../alphaev6-dec-osf4.0f/include
 /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/alphaev6-dec-osf4.0f/2.95.2/cc1plus sql_acl.ii -quiet -dumpbase sql_acl.cc -O3 -O3 -version -fno-implicit-templates -o sql_acl.s
GNU C++ version 2.95.2 19991024 (release) (alphaev6-dec-osf4.0f) compiled by GNU C version 2.95.2 19991024 (release).
In file included from ../include/global.h:127,
                 from mysql_priv.h:15,
                 from sql_acl.cc:25:                   

/usr/include/alloca.h:71: warning: declaration of `void * alloca(int)'
/usr/include/alloca.h:71: warning: conflicts with built-in declaration `void * alloca(long unsigned int)'
sql_acl.cc: In function `int replace_column_table(GRANT_TABLE *, TABLE *, const LEX_USER &, List<LEX_COLUMN> &, const char *, const char *, unsigned int, bool)':
sql_acl.cc:1456: Internal compiler error in `scan_region', at except.c:2566
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.


Note that this works on other OS/architectures)

After compiling the above file, without -O3 everything else in MySQL
compiles and the resulting executable passes a couple of simple test
suites.

I have included the ..ii file in the mail.  Mail me if you need
any further information.

Regards,
Monty

sql_acl.ii.gz


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