From uqs@spoerlein.net  Sun Nov 29 13:02:13 2009
Return-Path: <uqs@spoerlein.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 45E7F1065672
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Nov 2009 13:02:13 +0000 (UTC)
	(envelope-from uqs@spoerlein.net)
Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2])
	by mx1.freebsd.org (Postfix) with ESMTP id E83BC8FC14
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 29 Nov 2009 13:02:12 +0000 (UTC)
Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1])
	by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id nATD2BRV098535
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sun, 29 Nov 2009 14:02:11 +0100 (CET)
	(envelope-from uqs@acme.spoerlein.net)
Received: (from uqs@localhost)
	by acme.spoerlein.net (8.14.3/8.14.3/Submit) id nATD2BoN098534;
	Sun, 29 Nov 2009 14:02:11 +0100 (CET)
	(envelope-from uqs)
Message-Id: <200911291302.nATD2BoN098534@acme.spoerlein.net>
Date: Sun, 29 Nov 2009 14:02:11 +0100 (CET)
From: Ulrich Spörlein <uqs@spoerlein.net>
To: FreeBSD-gnats-submit@freebsd.org
Subject: lang/gcc45 (and lang/gcc44) break on amd64 with CPUTYPE=native
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         140995
>Category:       ports
>Synopsis:       lang/gcc45 (and lang/gcc44) break on amd64 with CPUTYPE=native
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 29 13:10:01 UTC 2009
>Closed-Date:    Tue Dec 01 12:12:08 UTC 2009
>Last-Modified:  Fri Nov 12 20:55:13 UTC 2010
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
>Description:
When building both lang/gcc44 or lang/gcc45 on amd64 with CPUTYPE=native in /etc/make.conf
or -march=native in CFLAGS, the build will break due to the old assembler in base.

This does not happen to gcc43 (simply because it is old enough)
>How-To-Repeat:
cd /usr/ports/lang/gcc45 && make CPUTYPE=native DISABLE_MAKE_JOBS=1

...

/bin/sh ./libtool  --tag=CC   --mode=compile /usr/obj/usr/ports/lang/gcc45/work/build/./gcc/xgcc -B/usr/obj/usr/ports/lang/gcc45/work/build/./gcc/ -B/usr/local/x86_64-portbld-freebsd8.0/bin/ -B/usr/local/x86_64-portbld-freebsd8.0/lib/ -isystem /usr/local/x86_64-portbld-freebsd8.0/include -isystem /usr/local/x86_64-portbld-freebsd8.0/sys-include    -DHAVE_CONFIG_H -I. -I../.././../gcc-4.5-20091119/libgfortran  -iquote../.././../gcc-4.5-20091119/libgfortran/io -I../.././../gcc-4.5-20091119/libgfortran/../gcc -I../.././../gcc-4.5-20091119/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections  -ftree-vectorize -funroll-loops -g -O2 -pipe -march=native -I/usr/local/include -fno-strict-aliasing -MT matmul_i4.lo -MD -MP -MF .deps/matmul_i4.Tpo -c -o matmul_i4.lo `test -f '../.././../gcc-4.5-20091119/libgfortran/generated/ma!
 tmul_i4.c' || echo '../.././../gcc-4.5-20091119/libgfortran/'`../.././../gcc-4.5-20091119/libgfortran/generated/matmul_i4.c
libtool: compile:  /usr/obj/usr/ports/lang/gcc45/work/build/./gcc/xgcc -B/usr/obj/usr/ports/lang/gcc45/work/build/./gcc/ -B/usr/local/x86_64-portbld-freebsd8.0/bin/ -B/usr/local/x86_64-portbld-freebsd8.0/lib/ -isystem /usr/local/x86_64-portbld-freebsd8.0/include -isystem /usr/local/x86_64-portbld-freebsd8.0/sys-include -DHAVE_CONFIG_H -I. -I../.././../gcc-4.5-20091119/libgfortran -iquote../.././../gcc-4.5-20091119/libgfortran/io -I../.././../gcc-4.5-20091119/libgfortran/../gcc -I../.././../gcc-4.5-20091119/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections -fdata-sections -ftree-vectorize -funroll-loops -g -O2 -pipe -march=native -I/usr/local/include -fno-strict-aliasing -MT matmul_i4.lo -MD -MP -MF .deps/matmul_i4.Tpo -c ../.././../gcc-4.5-20091119/libgfortran/generated/matmul_i4.c  -fPIC -DPIC -o .libs/matmul_i4.o
{standard input}: Assembler messages:
{standard input}:1861: Error: no such instruction: `pmulld %xmm0,%xmm5'
{standard input}:1885: Error: no such instruction: `pmulld %xmm0,%xmm4'
{standard input}:1893: Error: no such instruction: `pmulld %xmm0,%xmm5'
{standard input}:1902: Error: no such instruction: `pmulld %xmm0,%xmm6'
{standard input}:1911: Error: no such instruction: `pmulld %xmm0,%xmm7'
{standard input}:1920: Error: no such instruction: `pmulld %xmm0,%xmm8'
{standard input}:1929: Error: no such instruction: `pmulld %xmm0,%xmm9'
{standard input}:1938: Error: no such instruction: `pmulld %xmm0,%xmm10'
{standard input}:1949: Error: no such instruction: `pmulld %xmm0,%xmm14'
{standard input}:1954: Error: no such instruction: `pmulld %xmm0,%xmm13'
{standard input}:1959: Error: no such instruction: `pmulld %xmm0,%xmm12'
{standard input}:1964: Error: no such instruction: `pmulld %xmm0,%xmm11'
{standard input}:1969: Error: no such instruction: `pmulld %xmm0,%xmm10'
{standard input}:1974: Error: no such instruction: `pmulld %xmm0,%xmm9'
{standard input}:1979: Error: no such instruction: `pmulld %xmm0,%xmm8'
{standard input}:1984: Error: no such instruction: `pmulld %xmm0,%xmm7'
{standard input}:2219: Error: no such instruction: `pmulld %xmm15,%xmm0'
{standard input}:2241: Error: no such instruction: `pmulld %xmm12,%xmm11'
{standard input}:2249: Error: no such instruction: `pmulld %xmm14,%xmm13'
{standard input}:2257: Error: no such instruction: `pmulld %xmm1,%xmm15'
{standard input}:2265: Error: no such instruction: `pmulld %xmm2,%xmm3'
{standard input}:2273: Error: no such instruction: `pmulld %xmm5,%xmm4'
{standard input}:2281: Error: no such instruction: `pmulld %xmm7,%xmm6'
{standard input}:2289: Error: no such instruction: `pmulld %xmm9,%xmm8'
{standard input}:2302: Error: no such instruction: `pmulld %xmm1,%xmm15'
{standard input}:2319: Error: no such instruction: `pmulld %xmm14,%xmm13'
{standard input}:2320: Error: no such instruction: `pmulld %xmm12,%xmm11'
{standard input}:2323: Error: no such instruction: `pmulld %xmm10,%xmm9'
{standard input}:2326: Error: no such instruction: `pmulld %xmm8,%xmm7'
{standard input}:2329: Error: no such instruction: `pmulld %xmm6,%xmm5'
{standard input}:2337: Error: no such instruction: `pmulld %xmm4,%xmm3'
{standard input}:2341: Error: no such instruction: `pmulld %xmm2,%xmm1'
gmake[3]: *** [matmul_i4.lo] Error 1
gmake[3]: Leaving directory `/usr/obj/usr/ports/lang/gcc45/work/build/x86_64-portbld-freebsd8.0/libgfortran'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/obj/usr/ports/lang/gcc45/work/build/x86_64-portbld-freebsd8.0/libgfortran'
gmake[1]: *** [all-target-libgfortran] Error 2
gmake[1]: Leaving directory `/usr/obj/usr/ports/lang/gcc45/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 1

Stop in /usr/ports/lang/gcc45.

>Fix:

Update binutils?


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Nov 29 13:10:11 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140995 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/140995: commit references a PR
Date: Tue,  1 Dec 2009 11:37:08 +0000 (UTC)

 gerald      2009-12-01 11:36:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang/gcc45           Makefile 
   Log:
   Use current GNU binutils from ports (devel/binutils) instead of the
   system tools.  The latter are half a decade old and fail to properly
   support modern CPUs and their standard features such as SSE or AVX in
   the case of AMD64/Intel64 which means that they even break when using
   a simple -march=native.
   
   On the way, sort CONFIGURE_ARGS.
   
   PR:             140995, 136607
   
   Revision  Changes    Path
   1.416     +9 -5      ports/lang/gcc45/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: gerald 
State-Changed-When: Tue Dec 1 12:11:30 UTC 2009 
State-Changed-Why:  
Fixed.  Thanks for the report and helping in tracking this down and 
testing my fix! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140995 
>Unformatted:
