Hello everyone,
I am working on the same task as Amitvikram, on the same cluster and currently having the exact same problem: undefined reference to lapack libs even though they are compiled successfully.I've read through this thread as well as some others, so here is a brief summary about what I've done so far before asking some questions.
-- System info: Using cmake-2.8.12, cross-compiled gcc-4.8 and mpich-2 on a Blue Gene Q cluster.
-- Nektar version: Decided to use the git repo.
-- Added "-dynamic" flag to the "CMakeLists.txt" as it was suggested here:
https://www.nektar.info/nektar-on-mira-cluster/
-- Boost: I initially used system installed boost but then decided to stick to the third-party version shipped with nektar. It is because, some of the required libs (for instance boost_iostreams) weren't part of the central installation. To deal with that, I firstly set up a partial build by referencing each individual library file explicitly in cmake command. In fact, it seems to build the required libs successfully but later fails during the nektar compilation. I think it messes up the environment and basically links to the wrong files. So anyway, I am using "ThirdParty/boost_1_57_0".-- Lapack: The reason that I am not using system lapack is simply because cmake says "dgemm_" is not found in the system blas version. Therefore, I am compiling the "ThirdParty/Lapack-3.7.0" which I downloaded from "http://www.netlib.org/lapack/lapack-3.7.0.tgz".Note that compilation fails with the same error even when I use ThirdParty/lapack.
-- FFTW: Using system installed version.
-- Download process: I cancelled MD5 checks and downloading with "wget" due to the similar ssl error mentioned before. This is an easy workaround though, and probably has nothing to do with the error. I download all packages to the "nektar/ThirdParty" and copy them to "nektar/build/ThirdParty" as well. The reason of this copy operation is that when nektar extracts the downloaded packages, I see that uncompressed folders are somehow empty. I don't know if that's a cmake bug, or a problem from my side. So that's why I download, extract and copy third party sources to "nektar/build/ThirdParty" manually.
-- CMake command:
> cmake $src \
> -DCMAKE_INSTALL_PREFIX=$prf \
> -DNEKTAR_USE_MPI=ON \
> -DNEKTAR_USE_SYSTEM_BLAS_LAPACK=ON \
> -DNEKTAR_USE_FFTW=ON \
> -DFFTW_INCLUDE_DIR=${SCINET_FFTW_INC} \
> -DFFTW_LIBRARY=${SCINET_FFTW_LIB}/libfftw3.a \
> -DTHIRDPARTY_BUILD_BLAS_LAPACK=ONAs you can see, I enabled both "DNEKTAR_USE_SYSTEM_BLAS_LAPACK" and "DTHIRDPARTY_BUILD_BLAS_LAPACK" due to the suggestions; however this didn't seem to make a difference for me. Compilation fails at the same step with both are enabled or not.
-- Build process for Third-Party: In general they are compiled without any errors. In particular, I checked cmake files for each package and Lapack is configured with "-DBUILD_SHARED_LIBS:STRING=ON". I can see that objects are compiled with "-fPIC" option, it is in the cmake. However, "lapack/CMakeLists.txt" contains this line:
"option(BUILD_SHARED_LIBS "Build shared libraries" OFF)" which I set to "ON" in my build script.This is how libraries look in the "nektar/build/ThirdParty/dist/lib" directory after compiling ThirdParty libraries:bgqdev-fen1-$ ls nektar/build/ThirdParty/dist/lib/
cmake libboost_program_options.solibgsmpi.a libtinyxml.a
libblas.so libboost_program_options.so.1.57.0liblapack.so libxxt.a
libblas.so.3 libboost_regex.soliblapack.so.3 libz.a
libblas.so.3.7.0 libboost_regex.so.1.57.0liblapack.so.3.7.0 libz.so
libboost_filesystem.solibboost_system.so libscotch.alibz.so.1 libboost_filesystem.so.1.57.0libboost_system.so.1.57.0libscotcherr.a libz.so.1.2.7
libboost_iostreams.solibboost_thread.so libscotcherrexit.apkgconfig libboost_iostreams.so.1.57.0libboost_thread.so.1.57.0libscotchmetis.aThis folder is about 1.5GB by the way.
However, "nektar/build/ThirdParty/dist/include" folder doesn't have lapack related headers:bgqdev-fen1-$ ls
boost scotchf.h scotch.h tinystr.h tinyxml.h zconf.h zlib.h
bgqdev-fen1-$ pwd
/scinet/bgq/Applications/nektar/nektar/build/ThirdParty/dist/include
Also, I can share the initial parts of the lapack build - in this version I tried to reference to the system blas for lapack installation:[ 6%] Performing configure step for 'lapack-3.7.0'
cd /scinet/bgq/Applications/nektar/nektar/build-gcc/ThirdParty/lapack-3.7.0 && /gpfs/home/scinet/bgq/tools/cmake/2.8.12.1/bin/cmake -G "Unix Makefiles" -DCMAKE_Fortran_COMPILER:FIL
EPATH=/scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 -DCMAKE_INSTALL_PREFIX:PATH=/scinet/bgq/Applications/nektar/nektar/build-gcc/ThirdParty/dist -DCMAKE_INSTALL_LIBDIR:PATH=/scine
t/bgq/Applications/nektar/nektar/build-gcc/ThirdParty/dist/lib -DBUILD_SHARED_LIBS:STRING=ON -DBUILD_TESTING:STRING=OFF /scinet/bgq/Applications/nektar/nektar/ThirdParty/lapack-3.7
.0
Re-run cmake no build system arguments
-- Setting build type to 'Release' as none was specified.
-- The Fortran compiler identification is GNU
-- Check for working Fortran compiler: /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90
-- Check for working Fortran compiler: /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 -- works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 supports Fortran 90
-- Checking whether /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 supports Fortran 90 -- yes
-- Looking for Python greater than 2.6 -
-- Could NOT find PythonInterp: Found unsuitable version "2.6.6", but required is at least "2.7" (found /usr/bin/python2)
-- No suitable Python version found, so skipping summary tests.
-- Reducing RELEASE optimization level to O2
-- Looking for Fortran NONE - found
-- Looking for Fortran INT_CPU_TIME - found
-- Looking for Fortran EXT_ETIME - not found
-- Looking for Fortran EXT_ETIME_ - not found
-- Looking for Fortran INT_ETIME - found
-- --> Will use second_INT_ETIME.f and dsecnd_INT_ETIME.f as timing function.
-- Using supplied NETLIB BLAS implementation
-- Using supplied NETLIB LAPACK implementation
-- Building Single Precision
-- Building Double Precision
-- Building Complex Precision
-- Building Double Complex Precision
-- BUILD TESTING : OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /scinet/bgq/Applications/nektar/nektar/build-gcc/ThirdParty/lapack-3.7.0
Additionally, I can see "dgemm" in the log.make:bgqdev-fen1-$ grep -rn "dgemm" nektar/build-gcc/log.make.2
13756:[ 3%] Building Fortran object BLAS/SRC/CMakeFiles/blas.dir/dgemm.f.o
13757:cd /scinet/bgq/Applications/nektar/nektar/build-gcc/ThirdParty/lapack-3.7.0/BLAS/SRC && /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 -Dblas_EXPORTS -O2 -fPIC -c /scinet/bgq/Applications/nektar/nektar/ThirdParty/lapack-3.7.0/BLAS/SRC/dgemm.f -o CMakeFiles/blas.dir/dgemm.f.o14018:/scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpif90 -fPIC -O2 -Wl,-rpath=/bgsys/drivers/ppcfloor/comm/lib/libmpichf90-gcc.so.8 -shared -Wl,-soname,libblas.so.3 -o ../../lib/libblas.so.3.7.0 CMakeFiles/blas.dir/isamax.f.o CMakeFiles/blas.dir/sasum.f.o CMakeFiles/blas.dir/saxpy.f.o CMakeFiles/blas.dir/scopy.f.o...............CMakeFiles/blas.dir/dgemm.f.oThis is the part that compilation fails:
[ 34%] Building CXX object utilities/NekMesh/CMakeFiles/NekMesh.dir/ProcessModules/ProcessVarOpti/ElUtil.cpp.o..................
/........./bgq/compilers/gcc/4.8.1/bin/../lib/gcc/powerpc64-bgq-linux/4.8.1/../../../../powerpc64-bgq-linux/bin/ld: warning: libmpichf90-gcc.so.8, needed by /scinet/bgq/Applications/nektar/nektar/build/ThirdParty/dist/lib/libblas.so, not found (try using -rpath or -rpath-link).........NodeOpti.cpp:(.text+0x1784): undefined reference to `dgeev_'.........NodeOpti.cpp:(.text+0x25b4): undefined reference to `dgemm_'.........../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `dgetri_'
../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `dpptrs_'
../../library/LibUtilities/libLibUtilities.so.4.5.0: undefined reference to `dgbtrs_'
collect2: error: ld returned 1 exit status
make[2]: *** [utilities/NekMesh/NekMesh] Error 1I've tried many things;xx enabled configure option "build_shared_libs" in CMakeLists.txt in "ThirdParty/lapack"xx made a copy of "make.inc.example" in ThirdParty/lapack and reduced optimization levelsxx since this is a Blue Gene environment made reference to ESSL instead of BLASBut none of it seems to makes a difference. It always fails in the exact same step.This "libmpichf90-gcc.so.8" warning seems a bit odd to me and I am not sure if that has anything to do with the undefined ref err. I created a symlink to this library and added it to "LD_LIBRARY_PATH" as well, but then it failed with the following message "undefined symbol: _cnkspi_MemoryRegionCacheLastAccessedElementNumber" by "libpami-gcc.so" where PAMI is a lower level messaging api by IBM. Also, "cnkspi" sound far too low level because "CNK" is the kernel on the compute nodes and "SPI" is the implementation that allows communication with that kernel. I added a linker flag "-Wl,-rpath" but I guess it only makes things go uglier.bgqdev-fen1-$ readelf -d nektar/build-gcc/ThirdParty/dist/lib/libblas.so | grep NEEDED
0x0000000000000001 (NEEDED) Shared library: [libmpichf90-gcc.so.8]
0x0000000000000001 (NEEDED) Shared library: [libmpich-gcc.so.8]
0x0000000000000001 (NEEDED) Shared library: [libopa-gcc.so.0]
0x0000000000000001 (NEEDED) Shared library: [libmpl-gcc.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpami-gcc.so]
0x0000000000000001 (NEEDED) Shared library: [librt.so.1]
0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0]
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x0000000000000001 (NEEDED) Shared library: [libnss_files.so.2]
0x0000000000000001 (NEEDED) Shared library: [libnss_dns.so.2]
0x0000000000000001 (NEEDED) Shared library: [libresolv.so.2]
0x0000000000000001 (NEEDED) Shared library: [libgfortran.so.3]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]xx As an alternative, I switched to static linking. I initially changed "NEKTAR_LIBRARY_TYPE" to "STATIC" in the "CMakeLists.txt".
xx It seems that some of the ThirdParty libraries are configured with the assumption of shared objects so I changed them as well. For instance, boost is configured with options "link=shared" and "runtime-link=shared" which I set to static. I can see all required boost libs are successfully compiled and written to "build/ThirdParty/dist/lib".Now this is the cmake command:cmake $src \
-DCMAKE_INSTALL_PREFIX=$prf \
-DNEKTAR_USE_MPI=ON \
-DNEKTAR_USE_SYSTEM_BLAS_LAPACK=ON \
-DNATIVE_BLAS:FILEPATH=${SCINET_LAPACK_LIB}/libblas.a \
-DNATIVE_BLAS_LIB_DIR:FILEPATH=${SCINET_LAPACK_LIB} \
-DNATIVE_LAPACK:FILEPATH=${SCINET_LAPACK_LIB}/liblapack.a \
-DNATIVE_LAPACK_LIB_DIR:FILEPATH=${SCINET_LAPACK_LIB} \
-DNEKTAR_USE_FFTW=ON \
-DFFTW_INCLUDE_DIR=${SCINET_FFTW_INC} \
-DFFTW_LIBRARY=${SCINET_FFTW_LIB}/libfftw3.a \
-DBoost_NO_SYSTEM_PATHS:BOOL=TRUE \
-DZLIB_INCLUDE_DIR:PATH=${SCINET_ZLIB_INC} \
-DZLIB_LIBRARY:FILEPATH=${SCINET_ZLIB_LIB}/libz.aThe issue now is installer seems to ignore "-DBoost_NO_SYSTEM_PATHS:BOOL=TRUE" and seeks locations other than "BOOST_ROOT" which I set to "nektar/build-gcc/dist".See for instance:[ 5%] Building CXX object library/LibUtilities/CMakeFiles/LibUtilities.dir/BasicUtils/ArrayEqualityCompa
rison.cpp.o
cd /scinet/bgq/Applications/nektar/nektar++-4.4.1/build-gcc-static/library/LibUtilities && /scinet/bgq/compilers/gcc/4.8.1/mpi/bin/mpicxx -DLIB_UTILITIES_EXPORTS -DNEKTAR_MEMORY_POOL_ENABLED -DNEKTAR_USE_MPI -DNEKTAR_USING_BLAS -DNEKTAR_USING_LAPACK -DNEKTAR_VERSION=\"4.4.1\" -DTIXML_USE_STL -O3 -DNDEBUG -Wall -Wno-deprecated -Wno-sign-compare -DNEKTAR_RELEASE -isystem /scinet/bgq/Applications/nektar/nektar++-4.4.1/build-gcc-static/ThirdParty/dist/include -isystem /scinet/bgq/Libraries/zlib-1.2.7-gcc4.8.1/include -isystem /scinet/bgq/Applications/nektar/nektar++-4.4.1/ThirdParty/dist/include -isystem /scinet/bgq/Libraries/fftw-3.3.5-gcc/include -I/scinet/bgq/Applications/nektar/nektar++-4.4.1 -I/scinet/bgq/Applications/nektar/nektar++-4.4.1/library -o CMakeFiles/LibUtilities.dir/BasicUtils/ArrayEqualityComparison.cpp.o -c /scinet/bgq/Applications/nektar/nektar++-4.4.1/library/LibUtilities/BasicUtils/ArrayEqualityComparison.cpp
In file included from /bgsys/linux/ionfloor/usr/include/boost/config.hpp:57:0,
from /bgsys/linux/ionfloor/usr/include/boost/cstdint.hpp:26,
from /scinet/bgq/Applications/nektar/nektar++-4.4.1/library/LibUtilities/BasicConst/NektarUnivTypeDefs.hpp:40,So the main quiestion is:Why does it check "/usr/include/boost" when "cstdint.hpp" already exists in the "build/dist/include/boost/"?bgqdev-fen1-$ ls build-gcc/dist/include/boost/cstdint.hpp -l
-rw-r--r-- 1 fertinaz scinet 18017 Nov 14 19:00 build-gcc/dist/include/boost/cstdint.hppThis is how it finally fails:/bgsys/linux/ionfloor/usr/include/boost/archive/iterators/binary_from_base64.hpp:52:9: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Wnarrowing]
make[2]: *** [library/LibUtilities/CMakeFiles/LibUtilities.dir/BasicUtils/CompressData.cpp.o] Error 1It doesn't help to change the boost code from "const char lookup_table" to "signed char lookup_table" because then "switch-case" statement that returns the endianness information fails in the following file: "nektar/library/LibUtilities/BasicUtils/CompressData.cpp"As you can guess, I disabled the switch-case block, and returned the value, but it fails anyway...Sorry for the long message, hope you could follow. I've run out of ideas and any suggestion is highly appreciated....// Fatih
On Sun, Oct 14, 2018 at 7:42 AM Jeremy Cohen <jeremy.cohen@imperial.ac.uk> wrote:
>
> Hi Amitvikram,
>
> I would certainly try Chris's suggestion. However, something else to check is where you're getting the third party downloads from.
>
> If you take a clean Nektar++ source tree and place the standard netlib lapack-3.7.0.tgz source file that build system downloads into $NEKTAR_HOME/ThirdParty (i.e. the download from http://www.netlib.org/lapack/lapack-3.7.0.tgz), the build should proceed successfully.
>
> It looks like the lapack tar file that you're using may already have some build artefacts in it - did you tar the content from $NEKTAR_HOME/build/ThirdParty/lapack-3.7.0 into a lapack-3.7.0.tgz file or you're working with the standard .tgz file from the netlib.org site?
>
> Cheers,
> Jeremy
>
> On 13 Oct 2018, at 21:19, Chris Cantwell <c.cantwell@imperial.ac.uk> wrote:
>
> > Hi Amitvikram,
> >
> > Some sites block non-SSL enabled HTTP traffic, returning a webpage reporting the error rather than the actual file (hence the hash mismatch).
> >
> > You could try turning on the THIRDPARTY_USE_SSL option to see if that is allowed.
> >
> > Cheers,
> > Chris
> >
> >
> > On Fri, 12 Oct 2018 15:15:10 -0400, Amitvikram Dutta <amitvdutta23@gmail.com> wrote:
> >> Hi all,
> >>
> >> I had to use a slight workaround because the platform I was compiling on
> >> could not download the thirdparty files correctly and would always give a
> >> hash mismatched error. I downloaded the third party files on my home
> >> machine and re-uploaded them into the $NEKTAR_HOME folder. As a result when
> >> I begin the build process the ThirdParty folder is populated with the
> >> zipped versions of the third party software. Is this what what might be
> >> causing the problem? Is there any way to edit the cmake file and to get the
> >> compilation process working correctly?
> >>
> >> On Fri, Oct 12, 2018 at 2:57 PM Amitvikram Dutta <
> >> amitvikram.dutta@uwaterloo.ca> wrote:
> >>
> >>> *From:* nektar-users-bounces@imperial.ac.ukOn Behalf OfJeremy Cohen
> >>> *Sent:* October 12, 2018 2:56:43 PM (UTC-05:00) Eastern Time (US & Canada)
> >>>
> >>> *To:* Amitvikram Dutta
> >>> *Cc:* nektar-users
> >>> *Subject:* Re: [Nektar-users] Problem while installing nektar++ with
> >>> lapack
> >>>
> >>> Hi Amitvikram,
> >>>
> >>> Have you attempted to build lapack separately at any point? It's probably
> >>> worth clearing out your build directory and also all the contents of the
> >>> ThirdParty directory in the base nektar++ source directory, which I'll call
> >>> $NEKTAR_HOME, so $NEKTAR_HOME/ThirdParty and then re-running cmake in an
> >>> empty $NEKTAR_HOME/build directory and trying the build again.
> >>>
> >>> It looks like the build step is encountering a previous source tree in the
> >>> location where it's trying to build which seems strange.
> >>>
> >>> I've just had a look at the log from my clean build and I see exactly the
> >>> same messages as you in relation to lapack-3.7.0 in the same order as far
> >>> as "Checking whether /usr/bin/f95 supports Fortran 90 -- yes", however, I
> >>> then see "-- Looking for Python greater than 2.6 - " and the build of
> >>> lapack completes successfully.
> >>>
> >>> Just to confirm, I am running cmake and make in a separate build directory
> >>> under the main nektar++ source tree directory, so I'm building in
> >>> $NEKTAR_HOME/build - I assume you're doing something similar? You should
> >>> see a ThirdParty directory in $NEKTAR_HOME and another ThirdParty directory
> >>> in $NEKTAR_HOME/build/
> >>>
> >>> I believe that the initial download of the lapack-3.7.0.tar.gz should be
> >>> placed in $NEKTAR_HOME/ThirdParty and unpacked there. Then, when the build
> >>> succeeds or stops, in $NEKTAR_HOME/build/ThirdParty, you should see
> >>> lapack-3.7.0/ where I think the build actually takes place, and then a
> >>> separate $NEKTAR_HOME/build/ThirdParty/lapack-3.7.0-tmp which should
> >>> contain a couple of lapack-3.7.0-cfgcmd.txt files that I think contain the
> >>> build command that is used - you could perhaps paste the contents of the
> >>> lapack-3.7.0-cfgcmd.txt into an email if you're still having issues and we
> >>> can see if that looks correct.
> >>>
> >>> It is, of course, possible that this is something related to the specific
> >>> configuration of the platform that you're building on, but I think the
> >>> third party lapack build should be straightforward and it sounds like for
> >>> some reason, it's attempting to build in the wrong location, or a location
> >>> where an existing source tree has ended up for some reason.
> >>>
> >>> I'm afraid I don't have a very detailed knowledge of the build system
> >>> beyond this so if none of the suggestions so far help you to resolve the
> >>> problem, maybe someone with more knowledge of the build system can provide
> >>> some advice.
> >>>
> >>> Cheers,
> >>> Jeremy
> >>>
> >>> On 12 Oct 2018, at 19:34, Amitvikram Dutta <amitvdutta23@gmail.com> wrote:
> >>>
> >>> Hi all,
> >>>
> >>> I tried to compile nektar using Jeremy's latest suggestions having both
> >>> THIRDPARTY_BUILD_BLAS_LAPACK and NEKTAR_USE_SYSTEM_BLAS_LAPACK turned on.
> >>> The following error occured. It seems that I might have to compile lapack
> >>> separately. Is this unusual?
> >>>
> >>> <image.png>
> >>>
> >>> On Fri, Oct 12, 2018 at 1:16 PM Amitvikram Dutta <
> >>> amitvikram.dutta@uwaterloo.ca> wrote:
> >>>
> >>>> *From:* nektar-users-bounces@imperial.ac.ukOn Behalf OfJeremy Cohen
> >>>> *Sent:* October 12, 2018 1:16:14 PM (UTC-05:00) Eastern Time (US &
> >>>> Canada)
> >>>>
> >>>> *To:* Amitvikram Dutta
> >>>> *Cc:* nektar-users
> >>>> *Subject:* Re: [Nektar-users] Problem while installing nektar++ with
> >>>> lapack
> >>>>
> >>>> Hi Amitvikram,
> >>>>
> >>>> As Chris suggests, it's probably better to use vendor supplied libraries
> >>>> if you can get those working.
> >>>>
> >>>> In addition to the further information Chris has asked to take a look at,
> >>>> one thing you could check is to whether there are any files in your
> >>>> nektar++/build/ThirdParty/lapack-3.7.0 directory (if that directory exists
> >>>> at all).
> >>>>
> >>>> I've been trying to see if I can recreate the problem and I was able to
> >>>> see something similar when setting THIRDPARTY_BUILD_BLAS_LAPACK=ON and
> >>>> NEKTAR_USE_SYSTEM_BLAS_LAPACK=OFF. In this case, I can configure
> >>>> successfully and start the build but it fails with a large number of
> >>>> undefined references that are similar to, and include, the dtpmv_ symbol
> >>>> that you mentioned. When I look in nektar++/build/ThirdParty/lapack-3.7.0,
> >>>> the directory is empty so it looks like the build system has configured on
> >>>> the basis of building its own blas/lapack but the build hasn't been carried
> >>>> out and therefore LibUtilities can't be linked against it.
> >>>>
> >>>> As a test, you could try running the build with both
> >>>> THIRDPARTY_BUILD_BLAS_LAPACK=ON and NEKTAR_USE_SYSTEM_BLAS_LAPACK=ON, if
> >>>> this isn't the setting you've been using already. When I tried this, the
> >>>> build of blas/lapack is carried out successfully and the linking is fine
> >>>> with the full build of Nektar++ completing successfully. I removed the
> >>>> system blas/lapack on my test system to be sure it was linking against the
> >>>> correct instance.
> >>>>
> >>>> Cheers,
> >>>> Jeremy
> >>>>
> >>>> On 12 Oct 2018, at 17:50, Chris Cantwell <c.cantwell@imperial.ac.uk>
> >>>> wrote:
> >>>>
> >>>> Hi Amitvikram,
> >>>>
> >>>> Could you send us your CMakeCache.txt file from your build directory and
> >>>> the output from running:
> >>>> make VERBOSE=1
> >>>> for both cases.
> >>>>
> >>>> In the case of using ThirdParty LAPACK, it seems to not be linking to it.
> >>>> Probably you should be using vendor-supplied libraries if possible though
> >>>> so better if ee can get those working.
> >>>>
> >>>> Thanks,
> >>>> Chris
> >>>>
> >>>>
> >>>>
> >>>> On 12 October 2018 14:08:55 BST, Amitvikram Dutta <amitvdutta23@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>> Hi Jeremy,
> >>>>>
> >>>>> I'm actually trying to build nektar++ on a BGQ cluster similar to Mira.
> >>>>>
> >>>>> I'm trying to build nektar++-4.4.1 and the system lapacek version is
> >>>>> 3.4.2
> >>>>>
> >>>>> Sincerely,
> >>>>> On Fri, Oct 12, 2018 at 4:24 AM Amitvikram Dutta <
> >>>>> amitvikram.dutta@uwaterloo.ca> wrote:
> >>>>>
> >>>>>>
> >>>>>> ------------------------------
> >>>>>> *From:* nektar-users-bounces@imperial.ac.ukOn Behalf OfJeremy Cohen
> >>>>>> *Sent:* October 12, 2018 4:24:33 AM (UTC-05:00) Eastern Time (US &
> >>>>>> Canada)
> >>>>>> *To:* Amitvikram Dutta
> >>>>>> *Cc:* nektar-users
> >>>>>> *Subject:* Re: [Nektar-users] Problem while installing nektar++ with
> >>>>>> lapack
> >>>>>>
> >>>>>> Hi Amitvikram,
> >>>>>>
> >>>>>> Can you provide some further details of the problem you're encountering.
> >>>>>>
> >>>>>> Specifically, can you confirm what platform (including version) you're
> >>>>>> building on, and if Linux, which I assume is the platform you're using,
> >>>>>> which distribution.
> >>>>>>
> >>>>>> Can you also confirm what version of Nektar++ you're trying to build,
> >>>>>> and the version of the system Lapack distribution that you're using.
> >>>>>>
> >>>>>> Thanks,
> >>>>>>
> >>>>>> Jeremy
> >>>>>>
> >>>>>> On 12 Oct 2018, at 01:05, Amitvikram Dutta <amitvdutta23@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>> Hi all,
> >>>>>>
> >>>>>> I keep having the same problem while trying to install nektar++ with
> >>>>>> regards to the Lapack libraries.
> >>>>>>
> >>>>>> When I try to use the system Lapack installation I get the following
> >>>>>> message
> >>>>>>
> >>>>>> */scinet/bgq/Libraries/lapack/lib/liblapack.so: undefined reference to
> >>>>>> `_xlfEndIO@XLF_1.0'*
> >>>>>>
> >>>>>> while when I try to install using the ThirdParty Lapack supplied with
> >>>>>> the nektar++ source directory I get the following error
> >>>>>>
> >>>>>> *../../library/LibUtilities/libLibUtilities.so.4.4.1: undefined
> >>>>>> reference to `dtpmv_'*
> >>>>>>
> >>>>>> I have a feeling these errors have been encountered by the community at
> >>>>>> large before. Could someone point out where I'm going wrong?
> >>>>>>
> >>>>>> Sincerely,
> >>>>>> --
> >>>>>>
> >>>>>> *Amitvikram Dutta*
> >>>>>>
> >>>>>> Graduate Research Assistant
> >>>>>>
> >>>>>> Fluid Mechanics Research Lab
> >>>>>>
> >>>>>> Multi-Physics Interaction Lab
> >>>>>>
> >>>>>> University of Waterloo
> >>>>>> _______________________________________________
> >>>>>> Nektar-users mailing list
> >>>>>> Nektar-users@imperial.ac.uk
> >>>>>> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>
> >>>>> *Amitvikram Dutta*
> >>>>>
> >>>>> Graduate Research Assistant
> >>>>>
> >>>>> Fluid Mechanics Research Lab
> >>>>>
> >>>>> Multi-Physics Interaction Lab
> >>>>>
> >>>>> University of Waterloo
> >>>>>
> >>>>
> >>>> --
> >>>> Chris Cantwell
> >>>> Imperial College London
> >>>> South Kensington Campus
> >>>> London SW7 2AZ
> >>>> Email: c.cantwell@imperial.ac.uk
> >>>> www.imperial.ac.uk/people/c.cantwell
> >>>>
> >>>>
> >>>> --
> >>>
> >>> *Amitvikram Dutta*
> >>>
> >>> Graduate Research Assistant
> >>>
> >>> Fluid Mechanics Research Lab
> >>>
> >>> Multi-Physics Interaction Lab
> >>>
> >>> University of Waterloo
> >>>
> >>>
> >>> --
> >>
> >> *Amitvikram Dutta*
> >>
> >> Graduate Research Assistant
> >>
> >> Fluid Mechanics Research Lab
> >>
> >> Multi-Physics Interaction Lab
> >>
> >> University of Waterloo
> >
> >
> > --
> > Chris Cantwell
> > Imperial College London
> > South Kensington Campus
> > London SW7 2AZ
> > Email: c.cantwell@imperial.ac.uk
> > www.imperial.ac.uk/people/c.cantwell
>
>
> _______________________________________________
> Nektar-users mailing list
> Nektar-users@imperial.ac.uk
> https://mailman.ic.ac.uk/mailman/listinfo/nektar-users