List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:July 2 1999 1:33pm
Subject:FW: Won't compile
View as plain text  
Hi!

-O6 doesn't work with gcc on HP!

Fix:

Use the following configure line:

CC=gcc CFLAGS="-O2 -Dhp9000s800 -D__hpux__ -fpic" CXX=gcc CXXFLAGS="-O2
-felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/mysql
--with-debug --with-low-memory  --with-mysqld-ldflags=-all-static --disable-shared  

Regards,
Monty

>> -----Original Message-----
>> From:	Brown, David (D.) 
>> Sent:	Thursday, July 01, 1999 5:14 PM
>> To:	'mysql@stripped'
>> Subject:	Won't compile
>> 
>> I'm trying to compile mysql v 3.22.23b from the source.  I have a
>> Hewlett-Parckard C110 workstation with HPUX 10.20.  It has 256 megs of RAM
>> and at least 300k of disk space available.  I just updated my GNU compiler
>> to v2.8.1.
>> 
>> First I did this
>> $ ./configure --with-low_memory --prefix=/home/mysql
>> which seemed to go OK.
>> 
>> Then I did this:
>> $ make
>> 
>> which ended with the last 10 lines like as shown below.  
>> 
>> Any ideas about the cc1 fatal error?  I originally tried it with
>> --prefix=/usr/local/mysql, but got similar results.  Any input would be
>> greatly appreciated.  Thank you.
>> 
>> 
>> gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..    -O6
>> -DD BUG_OFF -c xmalloc.c
>> 
>> gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..    -O6
>> -DD BUG_OFF -c history.c
>> 
>> gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..    -O6
>> -DD BUG_OFF -c histsearch.c
>> 
>> gcc -DUNDEF_THREADS_HACK -DHAVE_CONFIG_H -I./../include -I./.. -I..    -O6
>> -DD BUG_OFF -c histexpand.c
>> 
>> gcc: Internal compiler error: program cc1 got fatal signal 6
>> 
>> make[2]: *** [histexpand.o] Error 1
>> 
>> make[2]: Leaving directory `/home/mysql/mysql-3.22.23b/readline'
>> 
>> make[1]: *** [all-recursive] Error 1
>> 
>> make[1]: Leaving directory `/home/mysql/mysql-3.22.23b'
>> 
>> make: *** [all-recursive-am] Error 2       
>> 
>> Dave Brown
>> dbrown14@stripped
>> 313-323-6644 (desk)    313-390-4156 (fax)  313-813-2157 (pager)
>> 

D> ---------------------------------------------------------------------
D> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
D> posting. To request this thread, e-mail mysql-thread6445@stripped

D> To unsubscribe, send a message to the address shown in the
D> List-Unsubscribe header of this message. If you cannot see it,
D> e-mail mysql-unsubscribe@stripped instead.
Thread
FW: Won't compileD.)2 Jul
  • FW: Won't compileMichael Widenius2 Jul