-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error happened when enable lapack/blas library. #10
Comments
I got the same problem if not compile it under docker.
(mkdir -p /home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0//buildroot-build && cd /home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0//buildroot-build && rm -f CMakeCache.txt && PATH="/home/osboxes/shared/buildroot/ma35d1/som_256/output/host/bin:/home/osboxes/shared/buildroot/ma35d1/som_256/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /home/osboxes/shared/buildroot/ma35d1/som_256/output/host/bin/cmake /home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/ -DCMAKE_TOOLCHAIN_FILE="/home/osboxes/shared/buildroot/ma35d1/som_256/output/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DLAPACKE=ON -DCBLAS=ON -DBUILD_COMPLEX=ON -DBUILD_COMPLEX16=ON ) -- The Fortran compiler identification is GNU 9.4.0 -- The C compiler identification is GNU 9.4.0 -- Check for working Fortran compiler: /usr/bin/f95 -- Check for working Fortran compiler: /usr/bin/f95 -- works -- Detecting Fortran compiler ABI info -- Detecting Fortran compiler ABI info - done -- Checking whether /usr/bin/f95 supports Fortran 90 -- Checking whether /usr/bin/f95 supports Fortran 90 -- yes -- Check for working C compiler: /home/osboxes/shared/buildroot/ma35d1/som_256/output/host/bin/aarch64-nuvoton-linux-gnu-gcc -- Check for working C compiler: /home/osboxes/shared/buildroot/ma35d1/som_256/output/host/bin/aarch64-nuvoton-linux-gnu-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Checking if build type is 'Coverage' -- Checking if build type is 'Coverage': 0 -- Build tests: OFF -- Reducing RELEASE optimization level to O2 CMake Error: The current CMakeCache.txt directory /home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/buildroot-build/INSTALL/CMakeCache.txt is different than the directory /home/osboxes/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/buildroot-build/INSTALL where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt CMake Error: The source "/home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt" does not match the source "/home/osboxes/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory. CMake Error at CMAKE/CheckTimeFunction.cmake:10 (try_compile): Failed to configure test project build system. Call Stack (most recent call first): CMakeLists.txt:163 (CHECK_TIME_FUNCTION) -- Configuring incomplete, errors occurred! See also "/home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/buildroot-build/CMakeFiles/CMakeOutput.log". See also "/home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/buildroot-build/CMakeFiles/CMakeError.log". make: *** [package/pkg-generic.mk:240: /home/osboxes/shared/buildroot/ma35d1/som_256/output/build/lapack-3.9.0/.stamp_configured] Error 1 osboxes@a28aa0606c51:~/shared/buildroot/ma35d1/som_256$ |
do you install gfortran in docker? drywo@bd35a407339a:~/shared/ma35d1_d$ sudo apt-get install gfortran E: Package 'gfortran' has no installation candidate and make error next follow. drywo@bd35a407339a:~/shared/ma35d1_d$ make
Tell CMake where to find the compiler by setting either the environment -- Check for working C compiler: /home/drywo/shared/ma35d1_d/output/host/bin/aarch64-nuvoton-linux-gnu-gcc |
Yes, I did install gfortran in docker. |
I install the gfortran in docker. drywo@a8cac83a6669:~/shared/ma35d1_d$ make
-- Verifying Fortran/C Compiler Compatibility - Failed
and the C compiler:
failed to compile a simple test project using both languages. The output
Call Stack (most recent call first): -- Configuring incomplete, errors occurred! this error is same not docker. |
I tried enable Target packages -> Libraries -> Other
lapack/blas option,
this option needed enable Toolchain -> Enable Fortran support
also I install gfortran my build system.
next error happened.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran NONE - found
CMake Deprecation Warning at /home/drywo/ma35d1_/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran INT_CPU_TIME - found
CMake Deprecation Warning at /home/drywo/ma35d1_/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran EXT_ETIME - not found
CMake Deprecation Warning at /home/drywo/ma35d1_/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran EXT_ETIME_ - not found
CMake Deprecation Warning at /home/drywo/ma35d1_/output/build/lapack-3.9.0/INSTALL/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument value or use a ... suffix to tell
CMake that the project does not need compatibility with older versions.
-- Looking for Fortran INT_ETIME - found
-- --> Will use second_INT_ETIME.f and dsecnd_INT_ETIME.f as timing function.
-- Build deprecated routines: OFF
-- Build single precision real: ON
-- Build double precision real: ON
-- Build single precision complex: ON
-- Build double precision complex: ON
-- Using supplied NETLIB BLAS implementation
-- CBLAS enable
-- Verifying Fortran/C Compiler Compatibility
CMake Warning (dev) at /home/drywo/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FortranCInterface.cmake:309 (message):
No FortranCInterface mangling known for VerifyFortran
Call Stack (most recent call first):
/home/drywo/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FortranCInterface/Verify/CMakeLists.txt:16 (FortranCInterface_HEADER)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Verifying Fortran/C Compiler Compatibility - Failed
CMake Error at /home/drywo/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.26/Modules/FortranCInterface.cmake:396 (message):
The Fortran compiler:
and the C compiler:
failed to compile a simple test project using both languages. The output
was:
Call Stack (most recent call first):
CBLAS/CMakeLists.txt:9 (FortranCInterface_VERIFY)
-- Configuring incomplete, errors occurred!
make[1]: *** [package/pkg-generic.mk:240: /home/drywo/ma35d1_/output/build/lapack-3.9.0/.stamp_configured] Error 1
make: *** [Makefile:84: _all] Error 2
The text was updated successfully, but these errors were encountered: