Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Oct 2011 09:40:17 GMT
From:      Eijiro Shibusawa <phd_kimberlite@yahoo.co.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/161359: math/gotoblas build fails on "Sandy Bridge" CPU
Message-ID:  <201110070940.p979eHtH058957@red.freebsd.org>
Resent-Message-ID: <201110070950.p979o7Ob081154@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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<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=0x179ae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,POPCNT,<b24>,AESNI,XSAVE,<b28>>
> AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
> AMD Features2=0x1<LAHF>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110070940.p979eHtH058957>