-fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao


Can somebody tell me why these 3 flags must be added when I 
compile mysql from source code? I am trying to use another compiler 
instead gcc to compile mysql. But it doesnot accept these three flags.
From the readme, it seems to me that these flags (especially 
-fno-exceptions must be used). I want to find a workaround for this issue, 
but first I need to know why these flags are needed.

 Can you explain me this? Can I eliminate these options and make mysql still
 runs well?

thanks.
 Peng


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: -fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao


Thanks for your reply. But You can find something from 
 http://www.mysql.com/doc/I/B/IBM-AIX.html :
 
If you are using gcc or egcs to compile MySQL, you must use the
-fno-exceptions flag, as the exception handling in gcc/egcs is not thread
safe! (This is tested with egcs 1.1.) And it also says the mysqld will 
crash radmonly without -fno-exceptions flag. I wonder recent gcc maybe can 
go on without the flags?

I am using orcc to compile mysql. Can you tell me how gcc improve speed 
via avoiding exceptions? I mean if the source code contains throw-catch 
stuff, how gcc avoid that? And why throw-catch stuff is not performance 
friendly (just because the exception handling mechanism? but usually
exceptions are very rare, there is no need to avoid exception, from this 
point of view)?

thanks.
Peng


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: -fno-implicit-templates, -fno-exceptions,-fno-rtti problems

2002-02-19 Thread Peng Zhao

 somewhat that exceptions aren't thread-safe in egcs.  Still, it would be 
 worth trying out with gcc 2.95.x or gcc 3.x.

I used 2.95.3 to compile mysql, it is fine, just because it accepts those 
flags. I didnot try to switch those flags off and compile. 

 
  I am using orcc to compile mysql. Can you tell me how gcc improve speed
  via avoiding exceptions? I mean if the source code contains throw-catch
  stuff, how gcc avoid that? And why throw-catch stuff is not performance
 
 If the source code contains throw-catch, you are stuck.  You _must_ turn on 
 exception handling in order to use them.
 
 However, many people write code without any exceptions at all and in this 
 case, the compiler can save some effort by not supporting them.

Will this improve the performance? I mean just by not supporting them, no 
optimization to the code?

 
 
 You may want to try out Intel's C++ compiler for Linux if you are using an 
 ix86 CPU.  We used it here at work and it resulted in code that ran more than 
 twice as fast, though we have never tried it with MySQL.

I wonder whether Intel's C++ compiler accept those flags. Are those flags 
included in some standards? My problem is that I don't want the mysqld 
crashed randomly when I do benchmarking on it.


 
 And greetings to a fellow UofA student (though I've now graduated).

thank you. I am honored.


-- 
Regards

  Peng
--
  Peng Zhao   [EMAIL PROTECTED]   
  http://www.cs.ualberta.ca/~pengzhao   
  TEL (Lab): (780)492-3725  Lab:  CSC251



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Msql-Mysql-modules-1.2219 bug?

2002-02-15 Thread Peng Zhao

SEND-PR: -*- send-pr -*-
SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
SEND-PR: will all comments (text enclosed in `' and `').
SEND-PR:
From: pengzhao
To: [EMAIL PROTECTED]
Subject: Msql-Mysql-modules-1.2219 fails in the test, on Itanium machine

Description:
precise description of the problem (multiple lines)
I downloaded Msql-Mysql-modules-1.2219 and try to install the DBD for mysql
on my Itanium box. When I run make test, there are two tests fail. I don't
know whether this is acceptable (or more specifically, if I run the
sql-bench stuff, whether the test will crash or not).
You can check the error at  http://www.cs.ualberta.ca/~pengzhao/1
It is generated by 
/usr/bin/perl -I../blib/arch -I../blib/lib
-I/usr/lib/perl5/5.6.0/ia64-linux -I/usr/lib/perl5/5.6.0 -e 'use
Test::Harness qw(runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t  
1

Can anybody tell me can I go on with make install and forget about the
errors during the test phase?

Thanks.

How-To-Repeat:
code/input/activities to reproduce the problem (multiple lines)
Fix:
how to correct or work around the problem, if known (multiple lines)

Submitter-Id:  submitter ID
Originator:
Organization:
Regards
  
  Peng
  --
Peng Zhao   [EMAIL PROTECTED]   
http://www.cs.ualberta.ca/~pengzhao   
TEL (Lab): (780)492-3725  Lab:  CSC251
  

MySQL support: [none | licence | email support | extended email support ]
Synopsis:  make test fails in Msql-Mysql-modules-1.2219
Severity:  [ non-critical | serious | critical ] (one line)
Priority:  [ low | medium | high ] (one line)
Category:  mysql
Class: [ sw-bug | doc-bug | change-request | support ] (one line)
Release:   mysql-3.23.47 (Source distribution)

Environment:
machine, os, target, libraries (multiple lines)
System: Linux innisfail 2.4.17 #14 SMP Sat Jan 19 06:11:14 MST 2002 ia64 unknown
Architecture: ia64

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/ia64-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-96)
Compilation info: CC='gcc'  CFLAGS=''  CXX='g++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Nov 10 20:20 /lib/libc.so.6.1 - 
libc-2.2.4.so
-rwxr-xr-x1 root root 15500240 Aug 10  2001 /lib/libc-2.2.4.so
-rw-r--r--1 root root 19629612 Aug 10  2001 /usr/lib/libc.a
-rw-r--r--1 root root  180 Aug 10  2001 /usr/lib/libc.so
Configure command: configure  --prefix=/usr/scratch/pengzhao/mysql.gcc


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php