recipe for "bin/libtmglib.dll faild" faild

Post here if you have problem using the CMAKE build process

recipe for "bin/libtmglib.dll faild" faild

Postby K_Zhang » Mon Mar 13, 2017 4:50 am

Hi:

I download lapack from github and try to build library using MingGW.
Following the guide at https://icl.cs.utk.edu/lapack-for-windows/lapack/#build, I specify the native C and fortran compiler to C:/MinGW/bin/mingw32-gcc.exe", & "C:/MinGW/bin/mingw32-gfortran.exe" under MingGW/bin.
I success to generate build files using CMake GUI. When I run mingw32-make.exe at the build folder, I get below error:

....
CMakeFiles\tmglib.dir/objects.a(zlaror.f.obj):zlaror.f:(.text+0x9b1): undefined
reference to `zscal_'
CMakeFiles\tmglib.dir/objects.a(zlatm5.f.obj):zlatm5.f:(.text+0x82f): undefined
reference to `zgemm_'
CMakeFiles\tmglib.dir/objects.a(zlatm5.f.obj):zlatm5.f:(.text+0x8a3): undefined
reference to `zgemm_'
CMakeFiles\tmglib.dir/objects.a(zlatm5.f.obj):zlatm5.f:(.text+0x925): undefined
reference to `zgemm_'
CMakeFiles\tmglib.dir/objects.a(zlatm5.f.obj):zlatm5.f:(.text+0x9d1): undefined
reference to `zgemm_'
collect2.exe: error: ld returned 1 exit status
Testing\MATGEN\CMakeFiles\tmglib.dir\build.make:1994: recipe for target 'bin/lib
tmglib.dll' failed
mingw32-make.exe[2]: *** [bin/libtmglib.dll] Error 1
CMakeFiles\Makefile2:2250: recipe for target 'Testing/MATGEN/CMakeFiles/tmglib.d
ir/all' failed
mingw32-make.exe[1]: *** [Testing/MATGEN/CMakeFiles/tmglib.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make.exe: *** [all] Error 2
K_Zhang
 
Posts: 1
Joined: Mon Mar 13, 2017 4:31 am

Re: recipe for "bin/libtmglib.dll faild" faild

Postby admin » Tue Mar 14, 2017 12:35 am

It looks like you are missing the BLAS library.
You can use the "make blaslib" command to generate the reference BLAS
Julie
admin
Site Admin
 
Posts: 608
Joined: Wed Dec 08, 2004 7:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 1 guest

cron