CMake get C language error

Post here if you have problem using the CMAKE build process

CMake get C language error

Postby passinger » Sun Jan 08, 2017 12:14 pm

Hi,

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

D:\Cura_Build\lapack-3.7.0\LAPACKE\src\lapacke_chetri_3.c: In function 'LAPACKE_
chetri_3':
D:\Cura_Build\lapack-3.7.0\LAPACKE\src\lapacke_chetri_3.c:63:5: error: aggregate
value used where an integer was expected
lwork = (lapack_int)work_query;
^
LAPACKE\CMakeFiles\lapacke.dir\build.make:5787: recipe for target 'LAPACKE/CMake
Files/lapacke.dir/src/lapacke_chetri_3.c.obj' failed
mingw32-make[2]: *** [LAPACKE/CMakeFiles/lapacke.dir/src/lapacke_chetri_3.c.obj]
Error 1
CMakeFiles\Makefile2:2319: recipe for target 'LAPACKE/CMakeFiles/lapacke.dir/all
' failed
mingw32-make[1]: *** [LAPACKE/CMakeFiles/lapacke.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

What's wrong with it?

Thanks
passinger
 
Posts: 2
Joined: Sun Jan 08, 2017 12:07 pm

Re: CMake get C language error

Postby admin » Tue Jan 10, 2017 4:32 am

Indeed we have a very small but nasty error in the code
See https://github.com/Reference-LAPACK/lapack/pull/107

My advice would be to download the latest LAPACK code from our Git Repository at https://github.com/Reference-LAPACK/lap ... master.zip

Sorry for the inconvenience
admin
Site Admin
 
Posts: 608
Joined: Wed Dec 08, 2004 7:07 pm

Re: CMake get C language error

Postby passinger » Fri Jan 13, 2017 3:29 am

Thanks. I will try.
passinger
 
Posts: 2
Joined: Sun Jan 08, 2017 12:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 1 guest