Toolchain script finds "openblas-0.3.5.tar.gz" yet tries to unpack "OpenBLAS-0.3.5.tar.gz", causing an error

97 views
Skip to first unread message

David Gunter

unread,
May 16, 2019, 5:45:55 PM5/16/19
to cp2k
From the latest git repo, I run the toolchain script to install the third party tools and libraries. I'm on a cluster that is blocked from using wget, curl, etc. so I have to download all the packages manually and place them in the ./build/ directory. This is fine until script/get_openblas_arch.sh is called. It successfully finds openblas-0.3.5.tar.gz but errors when it tries to unpack it.  Here is the offending code. 


echo "==================== Getting proc arch info using OpenBLAS tools ===================="
# find existing openblas source dir
openblas_dir="$(find_openblas_dir)"
# if cannot find openblas source dir, try download one
if ! [ "$openblas_dir" ] ; then
    if [ -f openblas-${openblas_ver}.tar.gz ] ; then
        echo "openblas-${openblas_ver}.tar.gz is found"
    else
        download_pkg ${DOWNLOADER_FLAGS} ${openblas_sha256} \
                     -o OpenBLAS-${openblas_ver}.tar.gz
    fi
    tar -xzf OpenBLAS-${openblas_ver}.tar.gz
    openblas_dir="$(find_openblas_dir)"
fi

The fix is easy enough, just replace "OpenBLAS" with "openblas" everywhere.


Tiziano Müller

unread,
May 17, 2019, 7:43:55 AM5/17/19
to David Gunter, cp...@googlegroups.com
Hi David,

when we started we pulled the OpenBLAS Tarball from Sourceforge where it
is actually named OpenBLAS-0.3.5... this is why we decided to still use
the name OpenBLAS-0.3.5.tar.gz when referring to the OpenBLAS Tarball.

When downloading the things manually as you do, the solution is to
simply rename the downloaded archive to OpenBLAS-0.3.5.tar.gz instead.

Best,
Tiziano
> --
> You received this message because you are subscribed to the Google
> Groups "cp2k" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cp2k+uns...@googlegroups.com
> <mailto:cp2k+uns...@googlegroups.com>.
> To post to this group, send email to cp...@googlegroups.com
> <mailto:cp...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/cp2k.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/cp2k/9a4c282f-db74-43fa-ad0b-62bb3612f5e6%40googlegroups.com
> <https://groups.google.com/d/msgid/cp2k/9a4c282f-db74-43fa-ad0b-62bb3612f5e6%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

--
Tiziano Müller
University of Zurich
Department of Chemistry
Winterthurerstrasse 190
CH-8057 Zürich

Tel: +41 44 63 54234
www.chem.uzh.ch
tiziano...@chem.uzh.ch
Reply all
Reply to author
Forward
0 new messages