2014 dxdy logo

Научный форум dxdy

Математика, Физика, Computer Science, Machine Learning, LaTeX, Механика и Техника, Химия,
Биология и Медицина, Экономика и Финансовая Математика, Гуманитарные науки




На страницу Пред.  1, 2, 3, 4, 5  След.
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 19:09 
Повторил.
CMakeCache.txt

(Оффтоп)

Код:
# This is the CMakeCache file.
# For build in directory: c:/Users/Sergey/Downloads/lapack-3.11.0/bin
# It was generated by CMake: D:/Program Files/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.

########################
# EXTERNAL cache entries
########################

//Path to a program.
CMAKE_ADDR2LINE:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-addr2line.exe

//Path to a program.
CMAKE_AR:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-ar.exe

//Choose the type of build, options are: None Debug Release RelWithDebInfo
// MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=

//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON

//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-g++.exe

//C compiler
CMAKE_C_COMPILER:STRING=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc.exe

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_AR:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc-ar.exe

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_C_COMPILER_RANLIB:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc-ranlib.exe

//Path to a program.
CMAKE_DLLTOOL:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-dlltool.exe

//Flags used by the linker during all build types.
CMAKE_EXE_LINKER_FLAGS:STRING=

//Flags used by the linker during DEBUG builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during MINSIZEREL builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during RELEASE builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during RELWITHDEBINFO builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Value Computed by CMake.
CMAKE_FIND_PACKAGE_REDIRECTS_DIR:STATIC=C:/Users/Sergey/Downloads/lapack-3.11.0/bin/CMakeFiles/pkgRedirects

//Fortran compiler
CMAKE_Fortran_COMPILER:STRING=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gfortran.exe

//A wrapper around 'ar' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_Fortran_COMPILER_AR:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc-ar.exe

//A wrapper around 'ranlib' adding the appropriate '--plugin' option
// for the GCC compiler
CMAKE_Fortran_COMPILER_RANLIB:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc-ranlib.exe

//Flags used by the Fortran compiler during all build types.
CMAKE_Fortran_FLAGS:STRING=

//Flags used by the Fortran compiler during DEBUG builds.
CMAKE_Fortran_FLAGS_DEBUG:STRING=-g

//Flags used by the Fortran compiler during MINSIZEREL builds.
CMAKE_Fortran_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG -Os

//Flags used by the Fortran compiler during RELEASE builds.
CMAKE_Fortran_FLAGS_RELEASE:STRING=-O3 -DNDEBUG -O3

//Flags used by the Fortran compiler during RELWITHDEBINFO builds.
CMAKE_Fortran_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG

//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/LAPACK

//Path to a program.
CMAKE_LINKER:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-ld.exe

//make program
CMAKE_MAKE_PROGRAM:FILEPATH=D:/Program Files/cygwin/bin/make.exe

//Flags used by the linker during the creation of modules during
// all build types.
CMAKE_MODULE_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of modules during
// DEBUG builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of modules during
// MINSIZEREL builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of modules during
// RELEASE builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of modules during
// RELWITHDEBINFO builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_NM:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-nm.exe

//Path to a program.
CMAKE_OBJCOPY:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-objcopy.exe

//Path to a program.
CMAKE_OBJDUMP:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-objdump.exe

//Value Computed by CMake
CMAKE_PROJECT_DESCRIPTION:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=

//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=LAPACK

//Path to a program.
CMAKE_RANLIB:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-ranlib.exe

//RC compiler
CMAKE_RC_COMPILER:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-windres.exe

//Flags for Windows Resource Compiler during all build types.
CMAKE_RC_FLAGS:STRING=

//Flags for Windows Resource Compiler during DEBUG builds.
CMAKE_RC_FLAGS_DEBUG:STRING=

//Flags for Windows Resource Compiler during MINSIZEREL builds.
CMAKE_RC_FLAGS_MINSIZEREL:STRING=

//Flags for Windows Resource Compiler during RELEASE builds.
CMAKE_RC_FLAGS_RELEASE:STRING=

//Flags for Windows Resource Compiler during RELWITHDEBINFO builds.
CMAKE_RC_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_READELF:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-readelf.exe

//Flags used by the linker during the creation of shared libraries
// during all build types.
CMAKE_SHARED_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of shared libraries
// during DEBUG builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of shared libraries
// during MINSIZEREL builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELEASE builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of shared libraries
// during RELWITHDEBINFO builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO

//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO

//Flags used by the linker during the creation of static libraries
// during all build types.
CMAKE_STATIC_LINKER_FLAGS:STRING=

//Flags used by the linker during the creation of static libraries
// during DEBUG builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=

//Flags used by the linker during the creation of static libraries
// during MINSIZEREL builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=

//Flags used by the linker during the creation of static libraries
// during RELEASE builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=

//Flags used by the linker during the creation of static libraries
// during RELWITHDEBINFO builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=

//Path to a program.
CMAKE_STRIP:FILEPATH=D:/Program Files/cygwin/bin/x86_64-w64-mingw32-strip.exe

//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make.  This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE

//Value Computed by CMake
LAPACK_BINARY_DIR:STATIC=C:/Users/Sergey/Downloads/lapack-3.11.0/bin

//Value Computed by CMake
LAPACK_IS_TOP_LEVEL:STATIC=ON

//Value Computed by CMake
LAPACK_SOURCE_DIR:STATIC=C:/Users/Sergey/Downloads/lapack-3.11.0


########################
# INTERNAL cache entries
########################

//ADVANCED property for variable: CMAKE_ADDR2LINE
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=c:/Users/Sergey/Downloads/lapack-3.11.0/bin
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=25
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=0
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=D:/Program Files/CMake/bin/cmake.exe
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=D:/Program Files/CMake/bin/cpack.exe
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=D:/Program Files/CMake/bin/ctest.exe
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_AR
CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB
CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_DLLTOOL
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=D:/Program Files/CMake/bin/cmake-gui.exe
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//ADVANCED property for variable: CMAKE_Fortran_COMPILER
CMAKE_Fortran_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_COMPILER_AR
CMAKE_Fortran_COMPILER_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_COMPILER_RANLIB
CMAKE_Fortran_COMPILER_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_FLAGS
CMAKE_Fortran_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_FLAGS_DEBUG
CMAKE_Fortran_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_FLAGS_MINSIZEREL
CMAKE_Fortran_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_Fortran_FLAGS_RELWITHDEBINFO
CMAKE_Fortran_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=MinGW Makefiles
//Generator instance identifier.
CMAKE_GENERATOR_INSTANCE:INTERNAL=
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=C:/Users/Sergey/Downloads/lapack-3.11.0
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_COMPILER
CMAKE_RC_COMPILER-ADVANCED:INTERNAL=1
CMAKE_RC_COMPILER_WORKS:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS
CMAKE_RC_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_DEBUG
CMAKE_RC_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_MINSIZEREL
CMAKE_RC_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELEASE
CMAKE_RC_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RC_FLAGS_RELWITHDEBINFO
CMAKE_RC_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_READELF
CMAKE_READELF-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=D:/Program Files/CMake/share/cmake-3.25
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//linker supports push/pop state
_CMAKE_LINKER_PUSHPOP_STATE_SUPPORTED:INTERNAL=TRUE



Напишите пожалуйста любое сообщение, чтобы я мог вторую часть опубликовать. (превышен лимит символов в сообщении)

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 19:19 
----

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 20:47 
Спасибо. Вторая часть.
CMakeOutput.log

(Оффтоп)

Код:
The system is: Windows - 10.0.19044 - AMD64
Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" succeeded.
Compiler: D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gfortran.exe
Build flags:
Id flags: -v

The output was:
0
Driving: /usr/bin/x86_64-w64-mingw32-gfortran -v CMakeFortranCompilerId.F -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: /mnt/share/cygpkgs/mingw64-x86_64-gcc/mingw64-x86_64-gcc.x86_64/src/gcc-11.3.0/configure --srcdir=/mnt/share/cygpkgs/mingw64-x86_64-gcc/mingw64-x86_64-gcc.x86_64/src/gcc-11.3.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/mingw64-x86_64-gcc --htmldir=/usr/share/doc/mingw64-x86_64-gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-w64-mingw32 --without-libiconv-prefix --without-libintl-prefix --with-sysroot=/usr/x86_64-w64-mingw32/sys-root --with-build-sysroot=/usr/x86_64-w64-mingw32/sys-root --disable-multilib --disable-win32-registry --enable-languages=c,c++,fortran,lto,objc,obj-c++ --enable-fully-dynamic-string --enable-graphite --enable-libgomp --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-version-specific-runtime-libs --enable-libgomp --enable-libada --with-dwarf2 --with-gcc-major-version-only --with-gnu-ld --with-gnu-as --with-tune=generic --with-cloog-include=/usr/include/cloog-isl --with-system-zlib --enable-threads=posix --libexecdir=/usr/lib
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
/usr/lib/gcc/x86_64-w64-mingw32/11/f951.exe CMakeFortranCompilerId.F -ffixed-form -cpp=/cygdrive/c/Users/Sergey/AppData/Local/Temp/ccP6Ppvp.f90 -quiet -v -D_REENTRANT CMakeFortranCompilerId.F -quiet -dumpdir a- -dumpbase CMakeFortranCompilerId.F -dumpbase-ext .F -mtune=generic -march=x86-64 -version -fintrinsic-modules-path /usr/lib/gcc/x86_64-w64-mingw32/11/finclude -o /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccgoOX5O.s
GNU Fortran (GCC) version 11.3.0 (x86_64-w64-mingw32)
   compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.0 differs from library version 4.1.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/sys-root/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-w64-mingw32/11/finclude
/usr/lib/gcc/x86_64-w64-mingw32/11/include
/usr/lib/gcc/x86_64-w64-mingw32/11/include-fixed
/usr/x86_64-w64-mingw32/sys-root/mingw/include
End of search list.
GNU Fortran2008 (GCC) version 11.3.0 (x86_64-w64-mingw32)
   compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.0 differs from library version 4.1.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/as.exe -v -o /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccV9NyCD.o /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccgoOX5O.s
GNU assembler version 2.39 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.39
Reading specs from /usr/lib/gcc/x86_64-w64-mingw32/11/libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
COMPILER_PATH=/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/../lib/:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'
/usr/lib/gcc/x86_64-w64-mingw32/11/collect2.exe -plugin /usr/lib/gcc/x86_64-w64-mingw32/11/cyglto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe -plugin-opt=-fresolution=/cygdrive/c/Users/Sergey/AppData/Local/Temp/cciJfeYl.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lquadmath -plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 --sysroot=/usr/x86_64-w64-mingw32/sys-root -m i386pep -Bdynamic /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o /usr/lib/gcc/x86_64-w64-mingw32/11/crtbegin.o -L/usr/lib/gcc/x86_64-w64-mingw32/11 -L/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/../lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib -L/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccV9NyCD.o -lgfortran -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lquadmath -lm -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/default-manifest.o /usr/lib/gcc/x86_64-w64-mingw32/11/crtend.o
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'


Compilation of the Fortran compiler identification source "CMakeFortranCompilerId.F" produced "a.exe"

The Fortran compiler identification is GNU, found in "C:/Users/Sergey/Downloads/lapack-3.11.0/bin/CMakeFiles/3.25.0/CompilerIdFortran/a.exe"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc.exe
Build flags:
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"

The C compiler identification is GNU, found in "C:/Users/Sergey/Downloads/lapack-3.11.0/bin/CMakeFiles/3.25.0/CompilerIdC/a.exe"



CMakeError.log

(Оффтоп)

Код:
Detecting Fortran compiler ABI info failed to compile with the following output:
Change Dir: C:/Users/Sergey/Downloads/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-2aq2f5

Run Build Command(s):D:/Program Files/cygwin/bin/make.exe -f Makefile cmTC_e266b/fast && /usr/bin/make  -f CMakeFiles\cmTC_e266b.dir\build.make CMakeFiles/cmTC_e266b.dir/build
" m T C _ e 2 6 6 b . d i r "   =5  O2;O5BAO  2=CB@5==59  8;8  2=5H=59

:><0=4>9,   8A?>;=O5<>9  ?@>3@0<<>9  8;8  ?0:5B=K<  D09;><.

make: *** [Makefile:126: cmTC_e266b/fast] Error 1




Determining if the Fortran compiler works failed with the following output:
Change Dir: C:/Users/Sergey/Downloads/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-rnlip7

Run Build Command(s):D:/Program Files/cygwin/bin/make.exe -f Makefile cmTC_12343/fast && /usr/bin/make  -f CMakeFiles\cmTC_12343.dir\build.make CMakeFiles/cmTC_12343.dir/build
" m T C _ 1 2 3 4 3 . d i r "   =5  O2;O5BAO  2=CB@5==59  8;8  2=5H=59

:><0=4>9,   8A?>;=O5<>9  ?@>3@0<<>9  8;8  ?0:5B=K<  D09;><.

make: *** [Makefile:126: cmTC_12343/fast] Error 1




 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 21:07 
Ерунда какая-то... Откуда взялось /usr/bin/make и то, что дальше? Естественно, так работать не будет, у вас нету /usr/bin/...

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 21:58 
Понятия не имею. Все, что я делал описал в предыдущем сообщении.
Как это исправить?

В CMakeLists.txt нашел упоминание. Концовку стер, не влезало в сообщение.

(Оффтоп)

Код:
cmake_minimum_required(VERSION 3.2)

project(LAPACK Fortran C)

set(LAPACK_MAJOR_VERSION 3)
set(LAPACK_MINOR_VERSION 11)
set(LAPACK_PATCH_VERSION 0)
set(
  LAPACK_VERSION
  ${LAPACK_MAJOR_VERSION}.${LAPACK_MINOR_VERSION}.${LAPACK_PATCH_VERSION}
  )

# Add the CMake directory for custom CMake modules
set(CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR}/CMAKE" ${CMAKE_MODULE_PATH})

# Export all symbols on Windows when building shared libraries
SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

# Set a default build type if none was specified
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
  message(STATUS "Setting build type to 'Release' as none was specified.")
  set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
  # Set the possible values of build type for cmake-gui
  set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" "Coverage")
endif()

# Coverage
set(_is_coverage_build 0)
set(_msg "Checking if build type is 'Coverage'")
message(STATUS "${_msg}")
if(NOT CMAKE_CONFIGURATION_TYPES)
  string(TOLOWER ${CMAKE_BUILD_TYPE} _build_type_lc)
  if(${_build_type_lc} STREQUAL "coverage")
    set(_is_coverage_build 1)
  endif()
endif()
message(STATUS "${_msg}: ${_is_coverage_build}")

if(_is_coverage_build)
  message(STATUS "Adding coverage")
  find_package(codecov)
endif()

# By default test Fortran compiler complex abs and complex division
option(TEST_FORTRAN_COMPILER "Test Fortran compiler complex abs and complex division" ON)
if( TEST_FORTRAN_COMPILER )

  add_executable( test_zcomplexabs ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexabs.f )
  add_custom_target( run_test_zcomplexabs
    COMMAND test_zcomplexabs 2> test_zcomplexabs.err
    WORKING_DIRECTORY ${LAPACK_BINARY_DIR}/INSTALL
    COMMENT "Running test_zcomplexabs in ${LAPACK_BINARY_DIR}/INSTALL with stderr: test_zcomplexabs.err"
    SOURCES ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexabs.f )

  add_executable( test_zcomplexdiv ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexdiv.f )
  add_custom_target( run_test_zcomplexdiv
    COMMAND test_zcomplexdiv 2> test_zcomplexdiv.err
    WORKING_DIRECTORY ${LAPACK_BINARY_DIR}/INSTALL
    COMMENT "Running test_zcomplexdiv in ${LAPACK_BINARY_DIR}/INSTALL with stderr: test_zcomplexdiv.err"
    SOURCES ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexdiv.f )

  add_executable( test_zcomplexmult ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexmult.f )
  add_custom_target( run_test_zcomplexmult
    COMMAND test_zcomplexmult 2> test_zcomplexmult.err
    WORKING_DIRECTORY ${LAPACK_BINARY_DIR}/INSTALL
    COMMENT "Running test_zcomplexmult in ${LAPACK_BINARY_DIR}/INSTALL with stderr: test_zcomplexmult.err"
    SOURCES ${LAPACK_SOURCE_DIR}/INSTALL/test_zcomplexmult.f )

  add_executable( test_zminMax ${LAPACK_SOURCE_DIR}/INSTALL/test_zminMax.f )
  add_custom_target( run_test_zminMax
    COMMAND test_zminMax 2> test_zminMax.err
    WORKING_DIRECTORY ${LAPACK_BINARY_DIR}/INSTALL
    COMMENT "Running test_zminMax in ${LAPACK_BINARY_DIR}/INSTALL with stderr: test_zminMax.err"
    SOURCES ${LAPACK_SOURCE_DIR}/INSTALL/test_zminMax.f )
   
endif()

# By default static library
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)

# By default build index32 library
option(BUILD_INDEX64 "Build Index-64 API libraries" OFF)
if(BUILD_INDEX64)
  set(BLASLIB "blas64")
  set(CBLASLIB "cblas64")
  set(LAPACKLIB "lapack64")
  set(LAPACKELIB "lapacke64")
  set(TMGLIB "tmglib64")
  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWeirdNEC -DLAPACK_ILP64 -DHAVE_LAPACK_CONFIG_H")
  set(FORTRAN_ILP TRUE)
else()
  set(BLASLIB "blas")
  set(CBLASLIB "cblas")
  set(LAPACKLIB "lapack")
  set(LAPACKELIB "lapacke")
  set(TMGLIB "tmglib")
endif()

include(GNUInstallDirs)

# Updated OSX RPATH settings
# In response to CMake 3.0 generating warnings regarding policy CMP0042,
# the OSX RPATH settings have been updated per recommendations found
# in the CMake Wiki:
#  http://www.cmake.org/Wiki/CMake_RPATH_handling#Mac_OS_X_and_the_RPATH
set(CMAKE_MACOSX_RPATH ON)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES ${CMAKE_INSTALL_FULL_LIBDIR} isSystemDir)
if("${isSystemDir}" STREQUAL "-1")
  set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
  set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
endif()


# Configure the warning and code coverage suppression file
configure_file(
  "${LAPACK_SOURCE_DIR}/CTestCustom.cmake.in"
  "${LAPACK_BINARY_DIR}/CTestCustom.cmake"
  @ONLY
)

include(PreventInSourceBuilds)
include(PreventInBuildInstalls)

# Check if recursive flag exists
include(CheckFortranCompilerFlag)
if(CMAKE_Fortran_COMPILER_ID STREQUAL Flang)
  check_fortran_compiler_flag("-Mrecursive" _MrecursiveFlag)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
  check_fortran_compiler_flag("-frecursive" _frecursiveFlag)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
  check_fortran_compiler_flag("-recursive" _recursiveFlag)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL XL)
  check_fortran_compiler_flag("-qrecur" _qrecurFlag)
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL NAG)
  check_fortran_compiler_flag("-recursive" _recursiveFlag)
else()
  message(WARNING "Fortran local arrays should be allocated on the stack."
    " Please use a compiler which guarantees that feature."
    " See https://github.com/Reference-LAPACK/lapack/pull/188 and references therein.")
endif()

# Add recursive flag
if(_MrecursiveFlag)
  string(REGEX MATCH "-Mrecursive" output_test <string> "${CMAKE_Fortran_FLAGS}")
  if(NOT output_test)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Mrecursive"
      CACHE STRING "Recursive flag must be set" FORCE)
  endif()
elseif(_frecursiveFlag)
  string(REGEX MATCH "-frecursive" output_test <string> "${CMAKE_Fortran_FLAGS}")
  if(NOT output_test)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -frecursive"
      CACHE STRING "Recursive flag must be set" FORCE)
  endif()
elseif(_recursiveFlag)
  string(REGEX MATCH "-recursive" output_test <string> "${CMAKE_Fortran_FLAGS}")
  if(NOT output_test)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -recursive"
      CACHE STRING "Recursive flag must be set" FORCE)
  endif()
elseif(_qrecurFlag)
  string(REGEX MATCH "-qrecur" output_test <string> "${CMAKE_Fortran_FLAGS}")
  if(NOT output_test)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qrecur"
      CACHE STRING "Recursive flag must be set" FORCE)
  endif()
endif()

if(UNIX)
  if(CMAKE_Fortran_COMPILER_ID STREQUAL Intel)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fp-model strict")
  endif()
  if(CMAKE_Fortran_COMPILER_ID STREQUAL XL)
    set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -qnosave -qstrict")
  endif()
# Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
# This library is not present in the Sun package SolarisStudio12.3-linux-x86-bin
  string(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
endif()

if(CMAKE_Fortran_COMPILER_ID STREQUAL Compaq)
  if(WIN32)
    if(CMAKE_GENERATOR STREQUAL "NMake Makefiles")
      get_filename_component(CMAKE_Fortran_COMPILER_CMDNAM ${CMAKE_Fortran_COMPILER} NAME_WE)
      message(STATUS "Using Compaq Fortran compiler with command name ${CMAKE_Fortran_COMPILER_CMDNAM}")
      set(cmd ${CMAKE_Fortran_COMPILER_CMDNAM})
      string(TOLOWER "${cmd}" cmdlc)
      if(cmdlc STREQUAL "df")
        message(STATUS "Assume the Compaq Visual Fortran Compiler is being used")
        set(CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 1)
        set(CMAKE_Fortran_USE_RESPONSE_FILE_FOR_INCLUDES 1)
        #This is a workaround that is needed to avoid forward-slashes in the
        #filenames listed in response files from incorrectly being interpreted as
        #introducing compiler command options
        if(${BUILD_SHARED_LIBS})
          message(FATAL_ERROR "Making of shared libraries with CVF has not been tested.")
        endif()
        set(str "NMake version 9 or later should be used. NMake version 6.0 which is\n")
        set(str "${str}   included with the CVF distribution fails to build Lapack because\n")
        set(str "${str}   the number of source files exceeds the limit for NMake v6.0\n")
        message(STATUS ${str})
        set(CMAKE_Fortran_LINK_EXECUTABLE "LINK /out:<TARGET> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS>")
      endif()
    endif()
  endif()
endif()


# --------------------------------------------------
set(LAPACK_INSTALL_EXPORT_NAME ${LAPACKLIB}-targets)

macro(lapack_install_library lib)
  install(TARGETS ${lib}
    EXPORT ${LAPACK_INSTALL_EXPORT_NAME}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT RuntimeLibraries
  )
endmacro()

set(PKG_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

# --------------------------------------------------
# Testing
option(BUILD_TESTING "Build tests" ${_is_coverage_build})
include(CTest)
message(STATUS "Build tests: ${BUILD_TESTING}")

if(BUILD_TESTING)
  set(_msg "Looking for Python3 needed for summary tests")
  message(STATUS "${_msg}")
  # find_package(PythonInterp 3) cannot be used because /usr/bin/python may be
  # a Python2 interpreter.
  find_program(PYTHON_EXECUTABLE python3)
  if(PYTHON_EXECUTABLE)
    message(STATUS "${_msg} - found")
  else()
    message(STATUS "${_msg} - not found (skipping summary tests)")
  endif()
endif()

# --------------------------------------------------
# Organize output files.  On Windows this also keeps .dll files next
# to the .exe files that need them, making tests easy to run.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LAPACK_BINARY_DIR}/lib)

# --------------------------------------------------
# Check for any necessary platform specific compiler flags
include(CheckLAPACKCompilerFlags)
CheckLAPACKCompilerFlags()

# --------------------------------------------------
# Check second function

include(CheckTimeFunction)
set(TIME_FUNC NONE)
CHECK_TIME_FUNCTION(NONE TIME_FUNC)
CHECK_TIME_FUNCTION(INT_CPU_TIME TIME_FUNC)
CHECK_TIME_FUNCTION(EXT_ETIME TIME_FUNC)
CHECK_TIME_FUNCTION(EXT_ETIME_ TIME_FUNC)
CHECK_TIME_FUNCTION(INT_ETIME TIME_FUNC)
message(STATUS "--> Will use second_${TIME_FUNC}.f and dsecnd_${TIME_FUNC}.f as timing function.")

set(SECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/second_${TIME_FUNC}.f)
set(DSECOND_SRC ${LAPACK_SOURCE_DIR}/INSTALL/dsecnd_${TIME_FUNC}.f)

# deprecated LAPACK and LAPACKE routines
option(BUILD_DEPRECATED "Build deprecated routines" OFF)
message(STATUS "Build deprecated routines: ${BUILD_DEPRECATED}")

# --------------------------------------------------
# Precision to build
# By default all precisions are generated
option(BUILD_SINGLE "Build single precision real" ON)
option(BUILD_DOUBLE "Build double precision real" ON)
option(BUILD_COMPLEX "Build single precision complex" ON)
option(BUILD_COMPLEX16 "Build double precision complex" ON)
message(STATUS "Build single precision real: ${BUILD_SINGLE}")
message(STATUS "Build double precision real: ${BUILD_DOUBLE}")
message(STATUS "Build single precision complex: ${BUILD_COMPLEX}")
message(STATUS "Build double precision complex: ${BUILD_COMPLEX16}")

if(NOT (BUILD_SINGLE OR BUILD_DOUBLE OR BUILD_COMPLEX OR BUILD_COMPLEX16))
  message(FATAL_ERROR "Nothing to build, no precision selected.
  Please enable at least one of these:
  BUILD_SINGLE, BUILD_DOUBLE, BUILD_COMPLEX, BUILD_COMPLEX16.")
endif()


# --------------------------------------------------
# Subdirectories that need to be processed
option(USE_OPTIMIZED_BLAS "Whether or not to use an optimized BLAS library instead of included netlib BLAS" OFF)

# Check the usage of the user provided BLAS libraries
if(BLAS_LIBRARIES)
  include(CheckFortranFunctionExists)
  set(CMAKE_REQUIRED_LIBRARIES ${BLAS_LIBRARIES})
  CHECK_FORTRAN_FUNCTION_EXISTS("dgemm" BLAS_FOUND)
  unset(CMAKE_REQUIRED_LIBRARIES)
  if(BLAS_FOUND)
    message(STATUS "--> BLAS supplied by user is WORKING, will use ${BLAS_LIBRARIES}.")
  else()
    message(ERROR "--> BLAS supplied by user is not WORKING, CANNOT USE ${BLAS_LIBRARIES}.")
    message(ERROR "-->     Will use REFERENCE BLAS (by default)")
    message(ERROR "-->     Or Correct your BLAS_LIBRARIES entry ")
    message(ERROR "-->     Or Consider checking USE_OPTIMIZED_BLAS")
  endif()

# User did not provide a BLAS Library but specified to search for one
elseif(USE_OPTIMIZED_BLAS)
  find_package(BLAS)
endif()

# Neither user specified or optimized BLAS libraries can be used
if(NOT BLAS_FOUND)
  message(STATUS "Using supplied NETLIB BLAS implementation")
  add_subdirectory(BLAS)
  set(BLAS_LIBRARIES ${BLASLIB})
else()
  set(CMAKE_EXE_LINKER_FLAGS
    "${CMAKE_EXE_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
    CACHE STRING "Linker flags for executables" FORCE)
  set(CMAKE_MODULE_LINKER_FLAGS
    "${CMAKE_MODULE_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
    CACHE STRING "Linker flags for modules" FORCE)
  set(CMAKE_SHARED_LINKER_FLAGS
    "${CMAKE_SHARED_LINKER_FLAGS} ${BLAS_LINKER_FLAGS}"
    CACHE STRING "Linker flags for shared libs" FORCE)
endif()


# --------------------------------------------------
# CBLAS
option(CBLAS "Build CBLAS" OFF)

if(CBLAS)
  add_subdirectory(CBLAS)
endif()

...


Питон установлен если что. Anaconda.

..........
Нашел в пакетах питона такой файл "0007-Darwin-Look-in-sysroot-usr-lib-include-if-sysroot-is.patch"

(Оффтоп)

Код:
From fee618d990e4d7effcec92085d2fdcf414a933a8 Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Sun, 20 Aug 2017 00:22:22 +0100
Subject: [PATCH 07/30] Darwin: Look in ${sysroot}/usr/{lib,include} if sysroot
is set

---
setup.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 770866bca7..41cd6e171c 100644
--- a/setup.py   2022-03-21 10:34:10.407104304 +0300
+++ b/setup.py   2022-03-21 10:34:27.755481087 +0300
@@ -763,7 +763,13 @@
         # lib_dirs and inc_dirs are used to search for files;
         # if a file is found in one of those directories, it can
         # be assumed that no additional -I,-L directives are needed.
-        if not CROSS_COMPILING:
+        # If we are using a macosx sysroot then ensure we look in
+        # sysroot/usr/{lib,include} (irrespective of whether we consider
+        # this cross_compiling or not).
+        if macosx_sdk_root() != '/':
+            self.lib_dirs = self.compiler.library_dirs + ['/usr/lib']
+            self.inc_dirs = self.compiler.include_dirs + ['/usr/include']
+        elif not CROSS_COMPILING:
             self.lib_dirs = self.compiler.library_dirs + system_lib_dirs
             self.inc_dirs = self.compiler.include_dirs + system_include_dirs
         else:

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 22:16 
Видимо, нужен кто-то, кто работает с cmake.

Я не понимаю, почему вы просто поменяли CMAKE_MAKE_PROGRAM, а build command (т. е. команда, которая её вызывает) после этого поменялась каким-то невообразимым образом? Я бы ожидал, что поменяется только название вызываемой программы. Не знаю, что делать, в качестве жеста отчаяния можно ппробовать поменять CMAKE_MAKE_PROGRAM на "заглушку" (например, на пустой пакетный файл) и посмотреть, что будет.

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 22:38 
Воткнул тупо первый попавшийся мой пустой консольный проект TensorDecompositionSolver.exe.
О чудо, пошло дальше, даже полоса сборки пошла.
Но облом.
Error.log

(Оффтоп)

Код:
Detecting Fortran compiler ABI info failed to compile with the following output:
Change Dir: D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-n0kcr4

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile cmTC_a54f4/fast &&

Cannot copy output executable
  ''
to destination specified by COPY_FILE:
  'D:/lapack-3.11.0/bin/CMakeFiles/3.25.0/CMakeDetermineCompilerABI_Fortran.bin'
Recorded try_compile output location doesn't exist:
  D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-n0kcr4/cmTC_a54f4.exe


Detecting C compiler ABI info failed to compile with the following output:
Change Dir: D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-uh5k3j

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile cmTC_2111f/fast &&

Cannot copy output executable
  ''
to destination specified by COPY_FILE:
  'D:/lapack-3.11.0/bin/CMakeFiles/3.25.0/CMakeDetermineCompilerABI_C.bin'
Recorded try_compile output location doesn't exist:
  D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-uh5k3j/cmTC_2111f.exe




Output.log

(Оффтоп)

Код:
The system is: Windows - 10.0.19044 - AMD64
Compiling the Fortran compiler identification source file "CMakeFortranCompilerId.F" succeeded.
Compiler: D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gfortran.exe
Build flags: ;-frecursive
Id flags: -v

The output was:
0
Driving: /usr/bin/x86_64-w64-mingw32-gfortran -frecursive -v CMakeFortranCompilerId.F -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=/usr/bin/x86_64-w64-mingw32-gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: /mnt/share/cygpkgs/mingw64-x86_64-gcc/mingw64-x86_64-gcc.x86_64/src/gcc-11.3.0/configure --srcdir=/mnt/share/cygpkgs/mingw64-x86_64-gcc/mingw64-x86_64-gcc.x86_64/src/gcc-11.3.0 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/mingw64-x86_64-gcc --htmldir=/usr/share/doc/mingw64-x86_64-gcc/html -C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin --target=x86_64-w64-mingw32 --without-libiconv-prefix --without-libintl-prefix --with-sysroot=/usr/x86_64-w64-mingw32/sys-root --with-build-sysroot=/usr/x86_64-w64-mingw32/sys-root --disable-multilib --disable-win32-registry --enable-languages=c,c++,fortran,lto,objc,obj-c++ --enable-fully-dynamic-string --enable-graphite --enable-libgomp --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-version-specific-runtime-libs --enable-libgomp --enable-libada --with-dwarf2 --with-gcc-major-version-only --with-gnu-ld --with-gnu-as --with-tune=generic --with-cloog-include=/usr/include/cloog-isl --with-system-zlib --enable-threads=posix --libexecdir=/usr/lib
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.3.0 (GCC)
COLLECT_GCC_OPTIONS='-frecursive' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
/usr/lib/gcc/x86_64-w64-mingw32/11/f951.exe CMakeFortranCompilerId.F -ffixed-form -cpp=/cygdrive/c/Users/Sergey/AppData/Local/Temp/ccxEUEnz.f90 -quiet -v -D_REENTRANT CMakeFortranCompilerId.F -quiet -dumpdir a- -dumpbase CMakeFortranCompilerId.F -dumpbase-ext .F -mtune=generic -march=x86-64 -version -frecursive -fintrinsic-modules-path /usr/lib/gcc/x86_64-w64-mingw32/11/finclude -o /cygdrive/c/Users/Sergey/AppData/Local/Temp/cc5LhW8X.s
GNU Fortran (GCC) version 11.3.0 (x86_64-w64-mingw32)
   compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.0 differs from library version 4.1.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/x86_64-w64-mingw32/sys-root/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-w64-mingw32/11/finclude
/usr/lib/gcc/x86_64-w64-mingw32/11/include
/usr/lib/gcc/x86_64-w64-mingw32/11/include-fixed
/usr/x86_64-w64-mingw32/sys-root/mingw/include
End of search list.
GNU Fortran2008 (GCC) version 11.3.0 (x86_64-w64-mingw32)
   compiled by GNU C version 11.3.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.25-GMP

warning: MPFR header version 4.1.0 differs from library version 4.1.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-frecursive' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/as.exe -v -o /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccOB3t1f.o /cygdrive/c/Users/Sergey/AppData/Local/Temp/cc5LhW8X.s
GNU assembler version 2.39 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.39
Reading specs from /usr/lib/gcc/x86_64-w64-mingw32/11/libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-frecursive' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a-'
COMPILER_PATH=/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/bin/
LIBRARY_PATH=/usr/lib/gcc/x86_64-w64-mingw32/11/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/../lib/:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/:/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/:/usr/x86_64-w64-mingw32/sys-root/mingw/lib/
COLLECT_GCC_OPTIONS='-frecursive' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'
/usr/lib/gcc/x86_64-w64-mingw32/11/collect2.exe -plugin /usr/lib/gcc/x86_64-w64-mingw32/11/cyglto_plugin.dll -plugin-opt=/usr/lib/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe -plugin-opt=-fresolution=/cygdrive/c/Users/Sergey/AppData/Local/Temp/ccGopuxs.res -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lquadmath -plugin-opt=-pass-through=-lm -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-ladvapi32 -plugin-opt=-pass-through=-lshell32 -plugin-opt=-pass-through=-luser32 -plugin-opt=-pass-through=-lkernel32 -plugin-opt=-pass-through=-lmingw32 -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lmoldname -plugin-opt=-pass-through=-lmingwex -plugin-opt=-pass-through=-lmsvcrt -plugin-opt=-pass-through=-lkernel32 --sysroot=/usr/x86_64-w64-mingw32/sys-root -m i386pep -Bdynamic /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/crt2.o /usr/lib/gcc/x86_64-w64-mingw32/11/crtbegin.o -L/usr/lib/gcc/x86_64-w64-mingw32/11 -L/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib/../lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib -L/usr/lib/gcc/x86_64-w64-mingw32/11/../../../../x86_64-w64-mingw32/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib /cygdrive/c/Users/Sergey/AppData/Local/Temp/ccOB3t1f.o -lgfortran -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lquadmath -lm -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lkernel32 /usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib/default-manifest.o /usr/lib/gcc/x86_64-w64-mingw32/11/crtend.o
COLLECT_GCC_OPTIONS='-frecursive' '-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'a.'


Compilation of the Fortran compiler identification source "CMakeFortranCompilerId.F" produced "a.exe"

The Fortran compiler identification is GNU, found in "D:/lapack-3.11.0/bin/CMakeFiles/3.25.0/CompilerIdFortran/a.exe"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: D:/Program Files/cygwin/bin/x86_64-w64-mingw32-gcc.exe
Build flags:
Id flags: 

The output was:
0


Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.exe"

The C compiler identification is GNU, found in "D:/lapack-3.11.0/bin/CMakeFiles/3.25.0/CompilerIdC/a.exe"

Determining if the Fortran compiler works passed with the following output:
Change Dir: D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-3e9zf7

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile cmTC_11a6e/fast &&


Determining if the Fortran compiler supports Fortran 90 passed with the following output:
Change Dir: D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-ltct32

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile cmTC_36725/fast &&


Determining if the C compiler works passed with the following output:
Change Dir: D:/lapack-3.11.0/bin/CMakeFiles/CMakeScratch/TryCompile-dz2ea5

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile cmTC_02ac0/fast &&


Fortran NONE exists. Change Dir: D:/lapack-3.11.0/bin/INSTALL

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile secondtst_NONE &&


Fortran INT_CPU_TIME exists. Change Dir: D:/lapack-3.11.0/bin/INSTALL

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile secondtst_INT_CPU_TIME &&


Fortran EXT_ETIME exists. Change Dir: D:/lapack-3.11.0/bin/INSTALL

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile secondtst_EXT_ETIME &&


Fortran EXT_ETIME_ exists. Change Dir: D:/lapack-3.11.0/bin/INSTALL

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile secondtst_EXT_ETIME_ &&


Fortran INT_ETIME exists. Change Dir: D:/lapack-3.11.0/bin/INSTALL

Run Build Command(s):D:/lapack-3.11.0/TensorDecompositionSolver.exe -f Makefile secondtst_INT_ETIME &&



 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение21.11.2022, 22:43 
Schrodinger's cat в сообщении #1570775 писал(а):
Но облом.
Ну это-то конечно, тут всё вроде бы хорошо, нормальная команда получается. А если make.exe, то получается незнамо что?

Может, у вас make.exe -- это не GNU make, а какая-то ерунда? Что он скажет, если из командной строки запустить make.exe -v?

-- 21.11.2022, 23:49 --

А, или может это make пытается рекурсивно себя вызывать, но при уходе в рекурсию откуда-то берёт неправильный путь к себе?

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение22.11.2022, 01:19 
Schrodinger's cat

Как я понял, wsl2 + ubuntu вы поставили. Перекиньте из папки INSTALL во внешнюю папку файл make.inc.gfortran и переименуйте его в make.inc. Запустите "make". Получите 3 статических библиотеки и статистику всех тестов (ошибок не обнаружено).

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение22.11.2022, 09:30 
Slav-27 в сообщении #1570776 писал(а):
А если make.exe, то получается незнамо что?

Собственно Вы видели что получается. :D

Slav-27 в сообщении #1570776 писал(а):
Может, у вас make.exe -- это не GNU make, а какая-то ерунда?

Перечень доступных Make'ов я приводил выше скриншотом из cygwin (отфильтровано по "make").
https://postlmg.cc/ph0VC3Yh
Написано "The GNU version of the make utility" получается что GNU.
Еще пробовал тот который ниже по списку "mingw64-i686-qt4-qmake".
Так же CMake установлен с сайта разрабов, версия 3.25
https://cmake.org/download/
Возможен ли конфликт версий? Может из за этого околесица...
Могу установить любой, ткните пальцем.
Еще у меня такое ощущение, а все ли устанавливает этот cygwin? может что то не доставлено. Ощущение возникает из за того что в списке я вижу отдельными пунктами с теми же названиями какие то debug'и, lib...

Остальное вечером, как только дойду до домашнего компа.

ПС: И хоть результата пока нет, и я про это не пишу, но я безмерно благодарен за помощь.

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение22.11.2022, 19:34 
Если ещё актуально, сборка при помощи mxe:
    1. Скачиваем mxe и ставим зависимости
    2. В Makefile правим MXE_TARGETS на нужный (MXE_TARGETS := x86_64-w64-mingw32.shared). Можно собрать и статически, только на выходе будет liblapack.a
    3. Делаем make lapack и долго ждём.
    4. В usr/x86_64-w64-mingw32.shared/bin забираем результат.
Если хочется собрать последнюю версию lapack, а не версию из репозитория mxe, то
    1. В каталоге mxe делаем make cmake
    2. В каталоге lapack создаём каталог build и из него запускаем получившийся cmake (вместо моего, указать свой путь):
    Код:
    PATH=$PATH:/home/progger/develop/other/mxe/usr/bin x86_64-w64-mingw32.shared-cmake -DTEST_FORTRAN_COMPILER=OFF ..
    PATH=$PATH:/home/progger/develop/other/mxe/usr/bin x86_64-w64-mingw32.shared-cmake --build . -j

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение22.11.2022, 19:55 
Slav-27 в сообщении #1570776 писал(а):
Что он скажет, если из командной строки запустить make.exe -v?

Код:
GNU Make 4.3
Built for x86_64-pc-cygwin
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Вообще у строки "/usr/bin/" подозрительное сходство с окружением Питона.
Там такое можно встретить "#!/usr/bin/env python3". Но чтобы было так "/usr/bin/make" ничего.
"make.exe" нашелся только в папке cygwin, больше файлов с таким названием на компьютере нет.

-- 22.11.2022, 20:07 --

traffic_lights в сообщении #1570805 писал(а):
Как я понял, wsl2 + ubuntu вы поставили.

Да, поставил.

traffic_lights в сообщении #1570805 писал(а):
Перекиньте из папки INSTALL во внешнюю папку файл make.inc.gfortran и переименуйте его в make.inc.

Это можно в винде сделать? Перекинул переименовал.

traffic_lights в сообщении #1570805 писал(а):
Запустите "make".

А вот этот пункт пожалуйста подробнее.
Раз речь про wsl то наверно его запустить и установить make?
Потом в качестве аргументов что писать?

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение22.11.2022, 21:47 
Schrodinger's cat


Можно все в винде делать.
1. распаковать архив. У меня он находится на диске e
2. запускаем ubuntu: появляется окно и в ней строка ввода (домашний директорий):
yurii@DESKTOP-5UFU1LE:~$
3. переходим в виндовую директорию:
yurii@DESKTOP-5UFU1LE:~$cd /mnt/e/lapack-3.11
Результат работы команды cd:
yurii@DESKTOP-5UFU1LE:/mnt/e/lapack-3.11$
4. копируем файл make.inc.gfortran (можно виндовыми средствами) из lapack-3.11/install в lapack-3.11
5. rename его в make.inc
6. Выполняем команду "make":
yurii@DESKTOP-5UFU1LE:/mnt/e/lapack-3.11$make
7. Ждем до победного конца: образуются три статических библиотеки в директории lapack-3.11 и выводится статистика по всем тестам.

P.S.
да, надо сначала выполнить следующие команды:
0. sudo apt update && sudo apt -y upgrade
1. sudo apt install gfortran
2. sudo apt install m4
3. sudo apt install make
4. sudo apt install texinfo
5. sudo apt install automake
6. sudo apt install g++
7. sudo apt-get install libomp-dev
Некоторые сейчас не пригодятся, но потом будут полезны

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение24.11.2022, 20:09 
traffic_lights
Сработало все с первого раза и без заморочек. Вот это сервис.
Эмммм... вот только созданы как я понимаю библиотеки линукса... мне бы *.lib и *.dll...

Подскажите пожалуйста как теперь поменять таргет.

Кстати говоря, в перечне программ вижу automake, в cygwin я ее не устанавливал, хотя там такая в списке имеется... Просто наблюдение.

ПС: Похоже я начинаю любить линукс. Вырисовывается любовный треугольник. Виндовс "любит" меня, я люблю линукс :D

 
 
 
 Re: Собрать lapack.dll и не застрелиться
Сообщение24.11.2022, 23:26 
Schrodinger's cat

Я смотрю, у вас "каша" в голове с библиотеками. Поставьте Visual Studio 2022 + oneapi: там уже есть готовые решения для генерации своих библиотек из Intel MKL на все случаи жизни (хоть динамические. хоть статические, хоть с распараллеливанием, хоть без, хоть ...). Будут у вас свои виндовые библиотеки, скорости которых в десятки раз превышают скорость полученных вами в ubuntu библиотек.

 
 
 [ Сообщений: 68 ]  На страницу Пред.  1, 2, 3, 4, 5  След.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group