From nobody@FreeBSD.org  Sun Sep 20 09:27:42 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id DAD231065695
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Sep 2009 09:27:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C91EC8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Sep 2009 09:27:42 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n8K9Rg3j091600
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 20 Sep 2009 09:27:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n8K9RgsO091599;
	Sun, 20 Sep 2009 09:27:42 GMT
	(envelope-from nobody)
Message-Id: <200909200927.n8K9RgsO091599@www.freebsd.org>
Date: Sun, 20 Sep 2009 09:27:42 GMT
From: Andrei Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
To: freebsd-gnats-submit@FreeBSD.org
Cc: gerald@FreeBSD.org
Subject: Cannot compile ports/lang/gcc44
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138983
>Category:       gnu
>Synopsis:       [binutils] System binutils too old for modern CPUs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 20 09:30:01 UTC 2009
>Closed-Date:    Wed Jul 13 12:34:53 UTC 2011
>Last-Modified:  Wed Jul 13 12:34:53 UTC 2011
>Originator:     Andrei Lavreniyuk
>Release:        FreeBSD 8.0-RC1
>Organization:
Technica-03, Inc.
>Environment:
FreeBSD hp.technica-03.local 8.0-RC1 FreeBSD 8.0-RC1 #0: Sat Sep 19 12:32:54 EEST 2009     root@hp.technica-03.local:/usr/obj/usr/src/sys/HP  amd64
>Description:
_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fstack-protector -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -s -I/usr/local/include -MT in_unpack_i1.lo -MD -MP -MF .deps/in_unpack_i1.Tpo -c ../.././../gcc-4.4-20090915/libgfortran/generated/in_unpack_i1.c -o in_unpack_i1.o >/dev/null 2>&1
libtool: compile:  /usr/ports/lang/gcc44/work/build/./gcc/xgcc -B/usr/ports/lang/gcc44/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.4-20090915/libgfortran -I. -iquote../.././../gcc-4.4-20090915/libgfortran/io -I../.././../gcc-4.4-20090915/libgfortran/../gcc -I../.././../gcc-4.4-20090915/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fstack-protector -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -s -I/usr/local/include -MT in_unpack_i2.lo -MD -MP -MF .deps/in_unpack_i2.Tpo -c ../.././../gcc-4.4-20090915/libgfortran/generated/in_unpack_i
 2.c -o in_unpack_i2.o >/dev/null 2>&1
libtool: compile:  /usr/ports/lang/gcc44/work/build/./gcc/xgcc -B/usr/ports/lang/gcc44/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.4-20090915/libgfortran -I. -iquote../.././../gcc-4.4-20090915/libgfortran/io -I../.././../gcc-4.4-20090915/libgfortran/../gcc -I../.././../gcc-4.4-20090915/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fstack-protector -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -s -I/usr/local/include -MT in_unpack_i8.lo -MD -MP -MF .deps/in_unpack_i8.Tpo -c ../.././../gcc-4.4-20090915/libgfortran/generated/in_unpack_i
 8.c -o in_unpack_i8.o >/dev/null 2>&1
{standard input}: Assembler messages:
{standard input}:1980: Error: no such instruction: `pmulld %xmm0,%xmm5'
{standard input}:2008: Error: no such instruction: `pmulld %xmm0,%xmm12'
{standard input}:2016: Error: no such instruction: `pmulld %xmm0,%xmm14'
{standard input}:2024: Error: no such instruction: `pmulld %xmm0,%xmm1'
{standard input}:2032: Error: no such instruction: `pmulld %xmm0,%xmm4'
{standard input}:2040: Error: no such instruction: `pmulld %xmm0,%xmm5'
{standard input}:2048: Error: no such instruction: `pmulld %xmm0,%xmm7'
{standard input}:2056: Error: no such instruction: `pmulld %xmm0,%xmm9'
{standard input}:2072: Error: no such instruction: `pmulld %xmm0,%xmm7'
{standard input}:2078: Error: no such instruction: `pmulld %xmm0,%xmm5'
{standard input}:2084: Error: no such instruction: `pmulld %xmm0,%xmm3'
{standard input}:2090: Error: no such instruction: `pmulld %xmm0,%xmm1'
{standard input}:2095: Error: no such instruction: `pmulld %xmm0,%xmm14'
{standard input}:2100: Error: no such instruction: `pmulld %xmm0,%xmm12'
{standard input}:2105: Error: no such instruction: `pmulld %xmm0,%xmm10'
{standard input}:2110: Error: no such instruction: `pmulld %xmm0,%xmm8'
{standard input}:2312: Error: no such instruction: `pmulld %xmm9,%xmm0'
{standard input}:2338: Error: no such instruction: `pmulld %xmm14,%xmm13'
{standard input}:2345: Error: no such instruction: `pmulld %xmm1,%xmm15'
{standard input}:2352: Error: no such instruction: `pmulld %xmm2,%xmm3'
{standard input}:2359: Error: no such instruction: `pmulld %xmm5,%xmm4'
{standard input}:2366: Error: no such instruction: `pmulld %xmm7,%xmm6'
{standard input}:2373: Error: no such instruction: `pmulld %xmm9,%xmm8'
{standard input}:2380: Error: no such instruction: `pmulld %xmm11,%xmm10'
{standard input}:2397: Error: no such instruction: `pmulld %xmm10,%xmm9'
{standard input}:2401: Error: no such instruction: `pmulld %xmm8,%xmm7'
{standard input}:2406: Error: no such instruction: `pmulld %xmm6,%xmm5'
{standard input}:2409: Error: no such instruction: `pmulld %xmm4,%xmm3'
{standard input}:2414: Error: no such instruction: `pmulld %xmm2,%xmm1'
{standard input}:2417: Error: no such instruction: `pmulld %xmm15,%xmm14'
{standard input}:2422: Error: no such instruction: `pmulld %xmm13,%xmm12'
{standard input}:2425: Error: no such instruction: `pmulld %xmm11,%xmm10'
libtool: compile:  /usr/ports/lang/gcc44/work/build/./gcc/xgcc -B/usr/ports/lang/gcc44/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.4-20090915/libgfortran -I. -iquote../.././../gcc-4.4-20090915/libgfortran/io -I../.././../gcc-4.4-20090915/libgfortran/../gcc -I../.././../gcc-4.4-20090915/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fstack-protector -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -s -I/usr/local/include -MT in_unpack_i4.lo -MD -MP -MF .deps/in_unpack_i4.Tpo -c ../.././../gcc-4.4-20090915/libgfortran/generated/in_unpack_i
 4.c -o in_unpack_i4.o >/dev/null 2>&1
libtool: compile:  /usr/ports/lang/gcc44/work/build/./gcc/xgcc -B/usr/ports/lang/gcc44/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.4-20090915/libgfortran -I. -iquote../.././../gcc-4.4-20090915/libgfortran/io -I../.././../gcc-4.4-20090915/libgfortran/../gcc -I../.././../gcc-4.4-20090915/libgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -g -O2 -pipe -O2 -D_FORTIFY_SOURCE=2 -pipe -march=native -mtune=native -fstack-protector -fno-delete-null-pointer-checks -fno-strict-aliasing -Wformat -Wformat-security -s -I/usr/local/include -MT in_pack_c16.lo -MD -MP -MF .deps/in_pack_c16.Tpo -c ../.././../gcc-4.4-20090915/libgfortran/generated/in_pack_c16.c
  -o in_pack_c16.o >/dev/null 2>&1
gmake[3]: *** [matmul_i4.lo] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
gmake[3]: *** &#1054;&#1078;&#1080;&#1076;&#1072;&#1085;&#1080;&#1077; &#1079;&#1072;&#1074;&#1077;&#1088;&#1096;&#1077;&#1085;&#1080;&#1103; &#1079;&#1072;&#1076;&#1072;&#1085;&#1080;&#1081;...
gmake[3]: Leaving directory `/usr/ports/lang/gcc44/work/build/x86_64-portbld-freebsd8.0/libgfortran'
gmake[2]: *** [all] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
gmake[2]: Leaving directory `/usr/ports/lang/gcc44/work/build/x86_64-portbld-freebsd8.0/libgfortran'
gmake[1]: *** [all-target-libgfortran] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc44/work/build'
gmake: *** [bootstrap-lean] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
*** Error code 1

Stop in /usr/ports/lang/gcc44.

>How-To-Repeat:
# cd /usr/ports/lang/gcc44
# make
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Sep 20 09:30:12 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138983 
State-Changed-From-To: open->feedback 
State-Changed-By: gerald 
State-Changed-When: Sun Sep 20 12:11:53 UTC 2009 
State-Changed-Why:  
Thanks for the report.  I believe what is happening here is that you 
have enabled support for more recent processor features that are not 
yet supported by the rotten version of binutils that FreeBSD provides. 

Specifically, the -march=native setting that I am seeing in the log 
is not coming from the lang/gcc45 port nor upstream GCC itself. 

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

From: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/138983: Cannot compile ports/lang/gcc44
Date: Sun, 20 Sep 2009 16:15:45 +0300

 Hi!
 
 
  >Thanks for the report. I believe what is happening here is that you
   >have enabled support for more recent processor features that are not
   >yet supported by the rotten version of binutils that FreeBSD provides.
   >Specifically, the -march=native setting that I am seeing in the log
   >is not coming from the lang/gcc45 port nor upstream GCC itself.
 
 
 
 My system-1:
 
 ---------------
 FreeBSD 8.0-RC1 #0: Sat Sep 19 12:33:44 EEST 2009
      root@datacenter.technica-03.local:/usr/obj/usr/src/sys/SMP64
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Core(TM)2 CPU          4400  @ 2.00GHz (2006.26-MHz 
 K8-class CPU)
    Origin = "GenuineIntel"  Id = 0x6f2  Stepping = 2 
 
  
 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
    Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM> 
 
    AMD Features=0x20100800<SYSCALL,NX,LM> 
 
    AMD Features2=0x1<LAHF> 
 
    TSC: P-state invariant 
 
 real memory  = 6442450944 (6144 MB) 
 
 avail memory = 6188277760 (5901 MB) 
 
 ACPI APIC Table: <MSTEST OEMAPIC > 
 
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs 
 
 FreeBSD/SMP: 1 package(s) x 2 core(s) 
 
   cpu0 (BSP): APIC ID:  0 
 
   cpu1 (AP): APIC ID:  1
 ---------------
 
 lang/gcc44 +  -march=native  compile fine
 
 
 
 My system-2:
 
 
 
 ---------------
 
 FreeBSD 8.0-RC1 #0: Sat Sep 19 12:32:54 EEST 2009
      root@hp.technica-03.local:/usr/obj/usr/src/sys/HP
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: Intel(R) Xeon(R) CPU           E5405  @ 2.00GHz (2000.08-MHz 
 K8-class CPU)
    Origin = "GenuineIntel"  Id = 0x10676  Stepping = 6 
 
  
 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  
 Features2=0xce33d<SSE3,DTES64,MON,DS_CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1> 
 
    AMD Features=0x20000800<SYSCALL,LM> 
 
    AMD Features2=0x1<LAHF> 
 
    TSC: P-state invariant 
 
 real memory  = 6442450944 (6144 MB) 
 
 avail memory = 6203793408 (5916 MB) 
 
 ACPI APIC Table: <HP     ProLiant> 
 
 FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs 
 
 FreeBSD/SMP: 2 package(s) x 4 core(s) 
 
   cpu0 (BSP): APIC ID:  0 
 
   cpu1 (AP): APIC ID:  1 
 
   cpu2 (AP): APIC ID:  2 
 
   cpu3 (AP): APIC ID:  3 
 
   cpu4 (AP): APIC ID:  4 
 
   cpu5 (AP): APIC ID:  5 
 
   cpu6 (AP): APIC ID:  6 
 
   cpu7 (AP): APIC ID:  7
 
 -----------------
 
 
 lang/gcc44 +  -march=native  cannot compile
 
 
 
 
 
 
 
 
 
 
 -- 
   Best regards, Andrei V. Lavreniyuk.
 
State-Changed-From-To: feedback->open 
State-Changed-By: gerald 
State-Changed-When: Sat Sep 26 15:04:11 UTC 2009 
State-Changed-Why:  
Thanks for the detailed feedback, Andrei.  Let's proceed on two fronts: 

1. I am moving this bug to the base system since, really, binutils 
there is overdue for an update.  A system assembler that does not 
support current CPUs in the market just doesn't cut it (and there 
are more recent versions that are not GPLv3 yet, even). 

2. For a workaround in ports that involves using the devel/binutils 
port, we are now tracking this in PR/136607.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=138983 
Responsible-Changed-From-To: gerald->freebsd-bugs@FreeBSD.org 
Responsible-Changed-By: gerald 
Responsible-Changed-When: Sat Sep 26 15:54:09 UTC 2009 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=138983 
Responsible-Changed-From-To: freebsd-bugs@FreeBSD.org->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Sep 26 16:10:16 UTC 2009 
Responsible-Changed-Why:  
Canonicalize assignment. 

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

From: Alexander Best <alexbestms@uni-muenster.de>
To: bug-followup@FreeBSD.org
Cc: Andrei Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
Subject: Re: gnu/138983: [binutils] System binutils too old for modern CPUs 
	(lang/gcc44 and otherwise)
Date: Sun, 27 Jun 2010 13:20:31 +0200

 i think this PR can be closed. lang/gcc4{4-6} now all depend on
 devel/binutils for building and running. the dependencies are
 non-optional which means running /usr/local/bin/gcc4{4-6} should never
 invoke the 'rotten' base binutils.
 
 cheers.
 alex
 
 -- 
 Alexander Best
State-Changed-From-To: open->analyzed 
State-Changed-By: arundel 
State-Changed-When: Sat Jul 24 11:57:10 UTC 2010 
State-Changed-Why:  
Base binutils (2.15) need to be updated. 
Any issues with ports have been fixed since lang/gcc4{4-6} depend on 
devel/binutils (build and run dependency). All other lang/gcc versions don't 
depend on devel/binutils since they work just fine with the base binutils. 


Class-Changed-From-To: sw-bug->update 
Class-Changed-By: arundel 
Class-Changed-When: Sat Jul 24 11:57:10 UTC 2010 
Class-Changed-Why:  
This PR is now a request to update the base binutils to a newer version. Last 
GPLv2 release was 2.17. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138983 
Responsible-Changed-From-To: freebsd-bugs->dim 
Responsible-Changed-By: arundel 
Responsible-Changed-When: Tue Feb 15 01:08:09 UTC 2011 
Responsible-Changed-Why:  
Assign to Dimitry, since he is working on importing binutils 2.17. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138983 
State-Changed-From-To: analyzed->patched 
State-Changed-By: arundel 
State-Changed-When: Fri Feb 18 21:23:03 UTC 2011 
State-Changed-Why:  
In r218822 binutils-2.17 got commited to HEAD. 

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

From: Andrei Lavreniyuk <andy.lavr@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: gnu/138983: [binutils] System binutils too old for modern CPUs
Date: Wed, 13 Jul 2011 09:54:50 +0300

 Hi!
 
 
 Please close PR. Thanks.
 
 
 ---
 Best regards, Andrei Lavreniyuk.
State-Changed-From-To: patched->closed 
State-Changed-By: dim 
State-Changed-When: Wed Jul 13 12:33:56 UTC 2011 
State-Changed-Why:  
We now have binutils 2.17.50 in -current. 

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