From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 7 09:50:08 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 329E01065673 for ; Fri, 7 Oct 2011 09:50:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0F21C8FC15 for ; Fri, 7 Oct 2011 09:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p979o729081156 for ; Fri, 7 Oct 2011 09:50:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p979o7Ob081154; Fri, 7 Oct 2011 09:50:07 GMT (envelope-from gnats) Resent-Date: Fri, 7 Oct 2011 09:50:07 GMT Resent-Message-Id: <201110070950.p979o7Ob081154@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eijiro Shibusawa Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1ECF4106564A for ; Fri, 7 Oct 2011 09:40:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E94C58FC0A for ; Fri, 7 Oct 2011 09:40:17 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p979eHFg058958 for ; Fri, 7 Oct 2011 09:40:17 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p979eHtH058957; Fri, 7 Oct 2011 09:40:17 GMT (envelope-from nobody) Message-Id: <201110070940.p979eHtH058957@red.freebsd.org> Date: Fri, 7 Oct 2011 09:40:17 GMT From: Eijiro Shibusawa To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/161359: math/gotoblas build fails on "Sandy Bridge" CPU X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2011 09:50:08 -0000 >Number: 161359 >Category: ports >Synopsis: math/gotoblas build fails on "Sandy Bridge" CPU >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 07 09:50:07 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eijiro Shibusawa >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: FreeBSD myhost.jp 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: math/gotoblas port fails to build the library with following error: : gcc46 -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DMAX_CPU_NUMBER=1 -DASMNAME=sgemm_oncopy -DASMFNAME=sgemm_oncopy_ -DNAME=sgemm_oncopy_ -DCNAME=sgemm_oncopy -DCHAR_NAME=\"sgemm_oncopy_\" -DCHAR_CNAME=\"sgemm_oncopy\" -DNO_AFFINITY -I.. -UDOUBLE -UCOMPLEX -c -UDOUBLE -UCOMPLEX ../kernel/x86_64/gemm_ncopy_4.S -o sgemm_oncopy.o ./kernel/x86_64/gemm_ncopy_4.S: Assembler messages: ./kernel/x86_64/gemm_ncopy_4.S:192: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:193: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:194: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:195: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:197: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:345: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:346: Error: invalid operands (*UND* and *ABS* sections) for `*' ./kernel/x86_64/gemm_ncopy_4.S:348: Error: invalid operands (*UND* and *ABS* sections) for `*' gmake[1]: *** [sgemm_oncopy.o] Error 1 gmake[1]: *** Waiting for unfinished jobs.... gmake[1]: Leaving directory `/work/a/ports/math/gotoblas/work/GotoBLAS2/kernel' gmake: *** [libs] Error 1 *** Error code 2 Please notice that this problem seems to be caused on a PC with "Sandy Bridge" CPU, and it may be machine dependent. For example, my other PC (with "Penryn" CPU) does NOT reproduce the problem. The infomation about the CPU in dmesg as follows: > CPU: Intel(R) Core(TM) i5-2310 CPU @ 2.90GHz (2909.81-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x206a7 Family = 6 Model = 2a Stepping = 7 > Features=0xbfebfbff > Features2=0x179ae3bf,AESNI,XSAVE,> > AMD Features=0x28100800 > AMD Features2=0x1 It is detected as "PRESCOTT" in Makefile.conf and config.h, bacause GOTOBLAS2 does not support "Sandy Bridge" CPU. >How-To-Repeat: Please build the port with default setting. # cd /usr/ports/math/gotoblas # make rmconfig # make >Fix: [Workaround] Building the port with WITH_DYNAMIC_ARCH knob as the default setting of the port revision 2.1.13_2. # cd /usr/ports/math/gotoblas # make WITH_DYNAMIC_ARCH=true install >Release-Note: >Audit-Trail: >Unformatted: