Skip to content

Commit

Permalink
Trac #22100: Openblas testsuite fails on OSX
Browse files Browse the repository at this point in the history
Fails with
{{{
gfortran -m128bit-long-double -Wall -m64  -L/Users/buildslave-
sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
sage/slave/sage_git/build/local/lib  -o dblat2 dblat2.o
../libopenblas_sandybridgep-r0.2.19.a -lpthread -lgfortran -lpthread
-lgfortran
ld: file too small (length=0) file
'../libopenblas_sandybridgep-r0.2.19.a' for architecture x86_64
collect2: error: ld returned 1 exit status
gfortran -m128bit-long-double -Wall -m64  -L/Users/buildslave-
sage/slave/sage_git/build/local/lib -Wl,-rpath,/Users/buildslave-
sage/slave/sage_git/build/local/lib  -o cblat2 cblat2.o
../libopenblas_sandybridgep-r0.2.19.a -lpthread -lgfortran -lpthread
-lgfortran
make[4]: *** [sblat1] Error 1
}}}

URL: https://trac.sagemath.org/22100
Reported by: vbraun
Ticket author(s): François Bissey
Reviewer(s): Volker Braun
  • Loading branch information
Release Manager authored and vbraun committed Dec 25, 2016
2 parents 357a435 + ea0c0f7 commit 118f39d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build/pkgs/openblas/spkg-check
Expand Up @@ -15,6 +15,9 @@ cd src
# We could also patch the Makefile to use a generic symlink pointing
# to the archive with a specific name

# See #22021 for issues with multithreading
OPENBLAS_CONFIGURE="$OPENBLAS_CONFIGURE USE_THREAD=0"

if [ `python -c "from __future__ import print_function; import platform; print(platform.architecture()[0])"` = "32bit" ]; then
OPENBLAS_CONFIGURE="$OPENBLAS_CONFIGURE BINARY=32"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/pkgs/openblas/spkg-install
Expand Up @@ -30,7 +30,7 @@ fi

echo "Building OpenBLAS: $MAKE $OPENBLAS_CONFIGURE"

$MAKE $OPENBLAS_CONFIGURE
$MAKE libs netlib shared $OPENBLAS_CONFIGURE
if [ $? -ne 0 ]; then
echo >&2 "Error building OpenBLAS"
exit 1
Expand Down

0 comments on commit 118f39d

Please sign in to comment.