databases/p5-DBI fails on compile

2013-01-15 Thread Mike Jakubik
Hello,

The p5-DBI port does not seem to compile with clang or native gcc.

FreeBSD 9.1-STABLE #1 r245428: Mon Jan 14 19:11:14 EST 2013


clang:


clang -c-O2 -pipe -mtune=core2 -march=core2 -fno-strict-aliasing -O2
-pipe -mtune=native -march=native -fno-strict-aliasing-DVERSION=
\"1.623\"  -DXS_VERSION=\"1.623\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.14.2/mach/CORE"  -W -Wall -Wpointer-arith
-Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual
-Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c
Stack dump:
0.  Program arguments: /usr/bin/clang -cc1 -triple
x86_64-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name Perl.c
-pic-level 2 -mdisable-fp-elim -relaxed-aliasing -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu penryn
-momit-leaf-frame-pointer -coverage-file Perl.o
-resource-dir /usr/bin/../lib/clang/3.1 -D VERSION="1.623" -D
XS_VERSION="1.623" -D PIC -D DBI_NO_THREADS
-I /usr/local/lib/perl5/5.14.2/mach/CORE
-fmodule-cache-path /var/tmp/clang-module-cache -O2 -W -Wall
-Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare
-Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter
-fdebug-compilation-dir /usr/ports/databases/p5-DBI/work/DBI-1.623
-ferror-limit 19 -fmessage-length 136 -mstackrealign -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-dispatch-method=non-legacy -fdiagnostics-show-option
-fcolor-diagnostics -o Perl.o -x c Perl.c 
1.  /usr/include/sys/stat.h:148:61: current parser token ';'
2.  /usr/include/sys/stat.h:122:1: parsing struct/union body 'stat'
clang: error: unable to execute command: Illegal instruction: 4 (core
dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all
diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/Perl-w6rQLx.i
clang: note: diagnostic msg: /tmp/Perl-w6rQLx.sh
*** [Perl.o] Error code 254

Stop in /usr/ports/databases/p5-DBI/work/DBI-1.623.
*** [do-build] Error code 1



native gcc:
===

cc -c-O2 -pipe -mtune=core2 -march=core2 -fno-strict-aliasing -O2
-pipe -mtune=native -march=native -fno-strict-aliasing-DVERSION=
\"1.623\"  -DXS_VERSION=\"1.623\" -DPIC -fPIC
"-I/usr/local/lib/perl5/5.14.2/mach/CORE"  -W -Wall -Wpointer-arith
-Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual
-Wmissing-noreturn -Wno-unused-parameter -DDBI_NO_THREADS Perl.c
Perl.c: In function 'boot_DBD__Perl':
Perl.c:1357: internal compiler error: Illegal instruction: 4
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.
*** [Perl.o] Error code 1

Stop in /usr/ports/databases/p5-DBI/work/DBI-1.623.


However gcc47 works fine.

Thanks.

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


Re: databases/p5-DBI fails on compile

2013-01-15 Thread Anton Berezin
On Tue, Jan 15, 2013 at 11:33:20AM -0500, Mike Jakubik wrote:

> The p5-DBI port does not seem to compile with clang or native gcc.
> 
> FreeBSD 9.1-STABLE #1 r245428: Mon Jan 14 19:11:14 EST 2013

Have you tried doing this on multiple machines?  This sounds very much like
a hardware (RAM or cache) problem to me.

> clang: error: unable to execute command: Illegal instruction: 4 (core
> dumped)

> Perl.c:1357: internal compiler error: Illegal instruction: 4
> Please submit a full bug report,

\Anton.
-- 
Our society can survive even a large amount of irrational regulation.
  -- John McCarthy
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: databases/p5-DBI fails on compile

2013-01-15 Thread Mike Jakubik
On Tue, 2013-01-15 at 17:47 +0100, Anton Berezin wrote:
> On Tue, Jan 15, 2013 at 11:33:20AM -0500, Mike Jakubik wrote:
> 
> > The p5-DBI port does not seem to compile with clang or native gcc.
> > 
> > FreeBSD 9.1-STABLE #1 r245428: Mon Jan 14 19:11:14 EST 2013
> 
> Have you tried doing this on multiple machines?  This sounds very much like
> a hardware (RAM or cache) problem to me.
> 

This is very odd, my compiler has stopped working for some reason.
Worked fine yesterday, all i did was a fresh installworld/kernel
yesterday. Any ideas what the issue may be? It is worth nothing that
this is an Amazon EC2 instance, running a XEN kernel.

Thanks.
 

# cat /etc/make.conf

KERNCONF=TINYXEN
NO_INET6=true
NO_PROFILE=true
WITHOUT_X11=true
NO_LIB32=true

CPUTYPE?=native
CFLAGS+=-mtune=native

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
# Don't die on warnings
NO_WERROR=
WERROR=

# added by use.perl 2013-01-14 18:06:10
ERL_VERSION=5.14.2


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


Re: databases/p5-DBI fails on compile

2013-01-15 Thread Mike Jakubik
On Tue, 2013-01-15 at 12:00 -0500, Mike Jakubik wrote:
> This is very odd, my compiler has stopped working for some reason.
> Worked fine yesterday, all i did was a fresh installworld/kernel
> yesterday. Any ideas what the issue may be? It is worth nothing that
> this is an Amazon EC2 instance, running a XEN kernel.
> 
> Thanks.


Doh, problem solved. The last time i did a makeworld/kernel i used a
m1.large instance, since then i switched to a t1.micro, which appears to
use a different CPU. Going back to m1.large fixes the compiler error.
Sorry for the noise.

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