Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Mon, 16 Feb 2009 11:32:46 -0900, Mel
fbsd.questi...@rachie.is-a-geek.net wrote:
If you have none in /etc/make.conf that's a good start.
If it still fails, then make sure BUILD_OPTIMIZED is unset.
Also comment any CPUTYPE variables in /etc/make.conf.

Thanks again. I'm not really a developper, and don't know quite how to
solve this.

Here's what's in /etc/make.conf:

PERL_VER=5.8.8
PERL_VERSION=5.8.8

How should I tell gcc to compile for either a PIII processor, or just
plain i386?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Tue, 17 Feb 2009 09:45:40 +0100, Gilles gilles.gana...@free.fr
wrote:
How should I tell gcc to compile for either a PIII processor, or just
plain i386?

BTW, here are the CFLAGS-related lines MySQL Server's Makefile:

.if defined(WITH_LINUXTHREADS)
CFLAGS+=-D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
CFLAGS+=-I${LOCALBASE}/include/pthread/linuxthreads
.else
CFLAGS+=${PTHREAD_CFLAGS}
.endif

.if defined(BUILD_OPTIMIZED)
CFLAGS+=-O3 -fno-omit-frame-pointer
CFLAGS+=-fno-gcse
.endif

.if defined(WITHOUT_THR_ALARM)
CFLAGS+=-DDONT_USE_THR_ALARM
.endif

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Gilles
On Tue, 17 Feb 2009 09:53:09 +0100, Gilles gilles.gana...@free.fr
wrote:
BTW, here are the CFLAGS-related lines MySQL Server's Makefile:

Using make BUILD_OPTIMIZED=no doesn't solve the issue :-/

In file included from item.h:2199,
 from mysql_priv.h:589,
 from ha_berkeley.cc:53:
item_geofunc.h:78: internal compiler error: Illegal instruction: 4

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Ivan Voras
Gilles wrote:
 On Tue, 17 Feb 2009 09:53:09 +0100, Gilles gilles.gana...@free.fr
 wrote:
 BTW, here are the CFLAGS-related lines MySQL Server's Makefile:
 
 Using make BUILD_OPTIMIZED=no doesn't solve the issue :-/
 
 In file included from item.h:2199,
  from mysql_priv.h:589,
  from ha_berkeley.cc:53:
 item_geofunc.h:78: internal compiler error: Illegal instruction: 4

Ok, there are two more possibilities:
a) Your hardware has problems (try http://www.memtest86.com/)
b) Your compiler was itself compiled with invalid optimizations. This
is only possible if you or someone else compiled the system for you, not
if you simply installed it from released ISO images.



signature.asc
Description: OpenPGP digital signature


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-17 Thread Mel
On Tuesday 17 February 2009 01:09:34 Ivan Voras wrote:
 Gilles wrote:
  On Tue, 17 Feb 2009 09:53:09 +0100, Gilles gilles.gana...@free.fr
 
  wrote:
  BTW, here are the CFLAGS-related lines MySQL Server's Makefile:
 
  Using make BUILD_OPTIMIZED=no doesn't solve the issue :-/
 
  In file included from item.h:2199,
   from mysql_priv.h:589,
   from ha_berkeley.cc:53:
  item_geofunc.h:78: internal compiler error: Illegal instruction: 4

 Ok, there are two more possibilities:
   a) Your hardware has problems (try http://www.memtest86.com/)
   b) Your compiler was itself compiled with invalid optimizations. This
 is only possible if you or someone else compiled the system for you, not
 if you simply installed it from released ISO images.

c) UNAME_m environment variable is set to not i386

Would be nice to see the final compilation line this fails on, so the very 
long line above the In file included one. If there are no cpu specific 
selections there, then the compiler itself is at fault. Yes, hardware is a 
possibility, but I'd expect to see SIGSEGV much much sooner then SIGILL.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


[6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Gilles
Hello

I updated the Ports collection on this 6.3 host, but it fails
compiling MySQL Server 5.1:

===
In file included from item.h:2428,
 from mysql_priv.h:749,
 from sql_profile.cc:32:
item_cmpfunc.h:1301: internal compiler error: Illegal instruction: 4
Please submit a full bug report,
with preprocessed source if appropriate.
===

Has someone seen this, and knows a work-around?

Thank you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Ivan Voras
Gilles wrote:
 Hello
 
 I updated the Ports collection on this 6.3 host, but it fails
 compiling MySQL Server 5.1:
 
 ===
 In file included from item.h:2428,
  from mysql_priv.h:749,
  from sql_profile.cc:32:
 item_cmpfunc.h:1301: internal compiler error: Illegal instruction: 4
 Please submit a full bug report,
 with preprocessed source if appropriate.
 ===
 
 Has someone seen this, and knows a work-around?

If you have any CFLAGS set (the most common are those for CPU
optimizations), disable them and try again.



signature.asc
Description: OpenPGP digital signature


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Gilles
On Mon, 16 Feb 2009 15:12:59 +0100, Ivan Voras ivo...@freebsd.org
wrote:
If you have any CFLAGS set (the most common are those for CPU
optimizations), disable them and try again.

Thanks for the tip. Do you know which value I should set for this
switch, if at all?

# dmesg | grep -i CPU
CPU: Intel Pentium III (994.63-MHz 686-class CPU)
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: [6.3/MySQL Server 5.1] item_cmpfunc.h:1301: internal compiler error

2009-02-16 Thread Mel
On Monday 16 February 2009 05:46:01 Gilles wrote:
 On Mon, 16 Feb 2009 15:12:59 +0100, Ivan Voras ivo...@freebsd.org

 wrote:
 If you have any CFLAGS set (the most common are those for CPU
 optimizations), disable them and try again.

 Thanks for the tip. Do you know which value I should set for this
 switch, if at all?

 # dmesg | grep -i CPU
 CPU: Intel Pentium III (994.63-MHz 686-class CPU)
 cpu0: ACPI CPU on acpi0
 acpi_throttle0: ACPI CPU Throttling on cpu0

If you have none in /etc/make.conf that's a good start.
If it still fails, then make sure BUILD_OPTIMIZED is unset.
Also comment any CPUTYPE variables in /etc/make.conf.

This particular error stems from having a faulty CPUTYPE detected/set 
somewhere.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org