-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Fri, 6 Dec 2002, Mariella Di Giacomo wrote:

> I have been running MySQL 4.0.5 64 bits on a Sun sun4u sparc
> SUNW,Sun-Fire-880, Solaris 2.8.
> I have been using the binary version that MySQL provides.
>
> Yesterday I have downloaded the Solaris tar ball to compile the MySQL
> source code and change the myisam block size. I have the Solaris
> compiler cc: Sun WorkShop (Fort) 6 update 2 C 5.3 2001/05/15 and I
> wanted to use that because it is suppose to create a faster executable
> than gcc.
>
> I have followed the instructions that are provided for the Solaris
> compilation and cc Forte
> which are
>
> CC=cc CFLAGS="-Xa -fast -native -xstrconst -mt -xarch=v9" \
> CXX=CC CXXFLAGS="-noex -mt -xarch=v9" \
> ./configure --prefix=/usr/local/mysql --enable-assembler
>
> At the certain point I get the following error:
>
>
> Making all in strings
> /usr/ccs/bin/as -O -DDBUG_OFF -Xa -fast -native -xstrconst -mt -xarch=v9
> -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H
> -I/root/mysql/mysql-4.0.5a-beta/include -DHAVE_RWLOCK_T -o
> bmove_upp-sparc.o bmove_upp-sparc.s
> /usr/ccs/bin/as: error: unknown option 'O'
> /usr/ccs/bin/as: error: unknown option 'X'
> /usr/ccs/bin/as: error: unknown option 'a'
> /usr/ccs/bin/as: error: unknown option 'f'
> /usr/ccs/bin/as: error: unknown option 'ast'
> /usr/ccs/bin/as: error: unknown option 'ative'
> /usr/ccs/bin/as: error: unknown option 'xstrconst'
> /usr/ccs/bin/as: error: unknown option 't'
> usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
> [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
> [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
> [-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a]
> [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb] [-xarch=v9] [-xarch=v9a]
> [-xarch=v9b] [-xcode={pic13,pic32}] file.s...
> *** Error code 1
> make: Fatal error: Command failed for target `bmove_upp-sparc.o'
> Current working directory /root/mysql/mysql-4.0.5a-beta/strings
> *** Error code 1
> make: Fatal error: Command failed for target `all-recursive'
> Current working directory /root/mysql/mysql-4.0.5a-beta
> *** Error code 1
> make: Fatal error: Command failed for target `all'
>
>
> /usr/ccs/bin/as does not have those options and I could not find a patch
> for as.
>
>
> I can get things compiled only If I  do not specify --enable-assembler
>
>
> CC=cc CFLAGS="-Xa -fast -native -xstrconst -mt -xarch=v9" \
> CXX=CC CXXFLAGS="-noex -mt -xarch=v9" \
> ./configure --prefix=/usr/local/mysql
>
>
> So my questions:
> Do you know why?

The documentation seems to miss an option - please try do add
ASFLAGS="-xarch=v9" to the configure line.

> Is there an error in the configure script? or I cannot compile with
> --enable-assembler because in the system "Use assembler versions of some
> string functions" is not available ?

No, it seems like the configure script simply passes all compile flags to
the assembler, if you use "--enable-assembler" and do not define ASFLAGS.
That actually might be a bug in the configure script, but I am not sure.

> If that is the case, is there any work around that I could use to
> compile with --enable-assembler ?

Yes, please use ASFLAGS as noted above.

> If I cannot use --enable-assembler, which is the percentage of
> Performance I may lose ?

Sorry, I can't tell you. We do use assembler functions for some string
operations (see the "strings" subdirectory), but I don't know how
intensively these are being used.

Bye,
        LenZ
- -- 
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /      Mr. Lenz Grimmer <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__     MySQL AB, Production Engineer
/_/  /_/\_, /___/\___\_\___/     Hamburg, Germany
       <___/   www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE98m7aSVDhKrJykfIRAmWsAJ92RJ0XXRmYqvWrmyGKQJfWFC/2DwCdHtNR
qK2a6k8OFASEIEkXUOK+I9Q=
=e2SM
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
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

Reply via email to