[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#82737: building mysql-3.23.30 packages from source fails



Hack, hack, hack :)

Found the solution to the "Internal compiler error" in the
documentation (last lines of chapter 4.12.7 Alpha-DEC-OSF1 Notes:

http://www.mysql.com/documentation/mysql/bychapter/manual_toc.html#Alpha-DEC-OSF1

"With gcc 2.95.2, you will probably run into the following compile
error:

sql_acl.cc:1456: Internal compiler error in `scan_region',
                 at except.c:2566
Please submit a full bug report.

To fix this you should change to the sql directory and do a ``cut and
paste'' of the last gcc line, but change -O3 to -O0 (or add -O0
immediately after gcc if you don't have any -O option on your compile
line.) After this is done you can just change back to the top-level
directly and run make again."

So, I did just that. Clean compile. Optimization screwup?

The question is how does one do this optimal optimization change in the
middle of a package build?

Cheers,
Cristian

On Tue, 23 Jan 2001, Cristian Ionescu-Idbohrn wrote:

>
> There seams to be a patch for this problem:
>
> http://www.nexial.com/cgi-bin/mysqlbody?h=3&dn=47852&q=alpha%20port&fh
>
> Didn't test it yet. Second thoughts ... I'll do it right away.
>
> ... Later ...
>
> The patch seams to have worked, but, unfortunately:
>
> Using:
>
> Reading specs from /usr/lib/gcc-lib/alpha-linux/2.95.2/specs
> gcc version 2.95.2 20000220 (Debian GNU/Linux)
>
> bailed out with "Internal compiler error":
>
> g++ -DMYSQL_SERVER
>     -DDEFAULT_MYSQL_HOME="\"/usr\""
>     -DDATADIR="\"/var/lib/mysql\""
>     -DSHAREDIR="\"/usr/share/mysql\""
>     -DHAVE_CONFIG_H
>     -I/var/tmp/mysql-3.23.31-1/mysql-3.23.31/debian/db-3.2.3h/build_unix
>     -I./../include
>     -I./../regex
>     -I.
>     -I../include
>     -I..
>     -I.
>     -O3
>     -DDBUG_OFF
>     -O2
>     -fomit-frame-pointer
>     -g
>     -felide-constructors
>     -fno-exceptions
>     -fno-rtti
>     -fno-implicit-templates
>     -c sql_table.cc
> sql_table.cc: In function `int mysql_admin_table(THD *, TABLE_LIST *,
> HA_CHECK_OPT *, thr_lock_type, bool, const char *, int (handler::*)(THD
> *, HA_CHECK_OPT *))':
> sql_table.cc:1016: Internal compiler error in `gen_reload_inhi',
>   at insn-emit.c:5550
>
> I suppose you can't alway win :(
>
> On Sun, 21 Jan 2001, Christian Hammers wrote:
>
> > On Sun, Jan 21, 2001 at 02:14:20AM +0100, Cristian Ionescu-Idbohrn wrote:
> > > downloaded 3.23.31. Builds just fine on i386, but sadly, fails on alpha
> > > (potato, Linux 2.2.13, gcc version 2.95.2 20000220).
> > grrrr. No idea :-(
> >
> > I'll forward this to mysql@lists.mysql.com and we wait for a patch.
> >
> > > /Cristian
> > bye,
> >
> >     -christian-
>
> Cheers,
> Cristian
>
>

-- 
Just because I'm paranoid doesn't mean they are not after me.




Reply to: