[Bug 257122] math/atlas fails with lapack 3.10.0 lapacklib not valid make target during LAPACK build phase

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 11 Jul 2021 23:30:39 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257122

            Bug ID: 257122
           Summary: math/atlas fails with lapack 3.10.0 lapacklib not
                    valid make target during LAPACK build phase
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs_at_FreeBSD.org
          Reporter: alt2600_at_icloud.com

Original PR 247485 marked closed, fixed by updating to LAPACK 3.9.1 but atlas
still doesn't build. This is a new error to the original issue on atlas of
having mismatched parameters in function calls (strict type checking in gcc
fortran 10+). This says it doesn't know how to make lapacklib, I didn't see
anything in lapack that seems to define this target in history of its main
Makefile. I see this lapacklib target is within the Atlas do-build: .for opt
loop. Not sure this implies lapack Makefile needs to have an ATLAS_SLAVEPORT
defined, if so I can look into. Might be beyond my skills though.

I did look over updating Atlas itself, but the issue is it has so many
architecture patches for things like Sparc and PowerPC that was more then a
little overwhelmingly daunting. Not to mention the custom build system defined
inside atlas's Makefile seemingly to get lapack staged for optimizations,
unless the above mentioned ATLAS_SLAVEPORT could make this become not
necessary. It may just be checking our patches against what is in upstream now,
but I'd have no way to check anything but amd64. Not sure anyone is working on
the task, or if help is needed there.

===>  Building for atlas-math-3.8.4_18,1
Building the LAPACK archives with shared ATLAS flags:
F77FLAGS="`make -f /usr/ports/math/atlas/work/ATLAS/saved_flags -V F77FLAGS` "
;  LW=`make -C /usr/ports/math/lapack -V WRKSRC_SHARED` ;  make -C
/usr/ports/math/lapack WITH=SHARED clean patch ;  cd ${LW} ; /usr/bin/env
F77="gfortran10" FC="gfortran10" FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc10"
XDG_DATA_HOME=/usr/ports/math/atlas/work
XDG_CONFIG_HOME=/usr/ports/math/atlas/work HOME=/usr/ports/math/atlas/work
PATH=/usr/ports/math/atlas/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/backyard/bin:/usr/local/tigcc/bin:/usr/local/tigcc/bin
NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES
ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar"
AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt"
GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm"
OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump"
RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf"
SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" PREFIX=/usr/local
LOCALBASE=/usr/local CC="gcc10" CFLAGS="-O2 -pipe -march=westmere 
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing "
CPP="cpp10" CPPFLAGS="" LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc10 
-L/usr/local/lib/gcc10 -B/usr/local/bin -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10 " LIBS="" CXX="g++10"
CXXFLAGS="-O2 -pipe -march=westmere  -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc10  -Wl,-rpath=/usr/local/lib/gcc10 "
MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"
BSD_INSTALL_LIB="install  -s -m 0644" BSD_INSTALL_SCRIPT="install  -m 555"
BSD_INSTALL_DATA="install  -m 0644" BSD_INSTALL_MAN="install  -m 444"
EXTRAFLAGS="-fpic -DPIC"  FFLAGS="-pipe ${F77FLAGS}" make -j10
DESTDIR=/usr/ports/math/atlas/work/stage  ARCH="/usr/local/bin/ar" lapacklib ; 
TIMEFLAG=`make -f /usr/ports/math/atlas/work/ATLAS/saved_flags -V TIMEFLAG` ; 
/bin/mkdir -p /usr/ports/math/atlas/work/ATLAS/shared ; cd
/usr/ports/math/atlas/work/ATLAS/shared ;  /bin/mv ${LW}/liblapack.a
liblapack_shared.a ;  make -C /usr/ports/math/lapack clean ;  echo "Configuring
shared ATLAS:" ;  ../configure --cc="gcc10" --cflags="-O2 -pipe -march=westmere
 -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing
" 
--with-netlib-lapack="/usr/ports/math/atlas/work/ATLAS/shared/liblapack_shared.a"
 --prefix="/usr/local" -v 2 ${TIMEFLAG}   -Ss f77lib " " -Ss pmake "make -j10" 
-Fa alg "-fpic -DPIC " -b 64 ;  if [ "x" != "x" ] ; then  if [ "x" != "xNONE" ]
; then  if [ -f  ] ; then  cp -f -f 
/usr/ports/math/atlas/work/ATLAS/CONFIG/ARCHS/ ;  elif [ ! -f
/usr/ports/math/atlas/work/ATLAS/CONFIG/ARCHS/ ] ; then  echo  "==>
atlas-math-3.8.4_18,1 : ARCHDEF \"\" does not exist" ;  exit 1 ;  fi ; 
/usr/bin/sed -i.bak -E -e  "\|[[:blank:]]*ARCH =|s|=.*|= |" 
/usr/ports/math/atlas/work/ATLAS/shared/Make.inc ;  fi ;  fi ;  echo "Building
shared ATLAS:" ; cd /usr/ports/math/atlas/work/ATLAS/shared ;  /usr/bin/env
F77="gfortran10" FC="gfortran10" FFLAGS="-O -Wl,-rpath=/usr/local/lib/gcc10"
FCFLAGS="-Wl,-rpath=/usr/local/lib/gcc10"
XDG_DATA_HOME=/usr/ports/math/atlas/work 
XDG_CONFIG_HOME=/usr/ports/math/atlas/work  HOME=/usr/ports/math/atlas/work
PATH=/usr/ports/math/atlas/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/backyard/bin:/usr/local/tigcc/bin:/usr/local/tigcc/bin
NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES
ADDR2LINE="/usr/local/bin/addr2line" AR="/usr/local/bin/ar"
AS="/usr/local/bin/as" CPPFILT="/usr/local/bin/c++filt"
GPROF="/usr/local/bin/gprof" LD="/usr/local/bin/ld" NM="/usr/local/bin/nm"
OBJCOPY="/usr/local/bin/objcopy" OBJDUMP="/usr/local/bin/objdump"
RANLIB="/usr/local/bin/ranlib" READELF="/usr/local/bin/readelf"
SIZE="/usr/local/bin/size" STRINGS="/usr/local/bin/strings" PREFIX=/usr/local 
LOCALBASE=/usr/local  CC="gcc10" CFLAGS="-O2 -pipe -march=westmere 
-fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc10 -fno-strict-aliasing "
 CPP="cpp10" CPPFLAGS=""  LDFLAGS=" -Wl,-rpath=/usr/local/lib/gcc10 
-L/usr/local/lib/gcc10 -B/usr/local/bin -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc10 -L/usr/local/lib/gcc10 " LIBS=""  CXX="g++10"
CXXFLAGS="-O2 -pipe -march=westmere  -fstack-protector-strong
-Wl,-rpath=/usr/local/lib/gcc10  -Wl,-rpath=/usr/local/lib/gcc10 " 
MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555" 
BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555" 
BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
/usr/bin/make DESTDIR=/usr/ports/math/atlas/work/stage all
===>  Cleaning for lapack-3.10.0
===>  License BSD3CLAUSE accepted by the user
===>   lapack-3.10.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by lapack-3.10.0 for building
===>  Extracting for lapack-3.10.0
=> SHA256 Checksum OK for lapack-3.10.0/v3.10.0.tar.gz.
=> SHA256 Checksum OK for lapack-3.10.0/manpages.tgz.
===>  Patching for lapack-3.10.0
make[1]: make[1]: don't know how to make lapacklib. Stop

make[1]: stopped in /root
*** Error code 2

Stop.
make: stopped in /usr/ports/math/atlas

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sun Jul 11 2021 - 23:30:39 UTC

Original text of this message