Today i get the sources to my machines, which have no internet and want to build it. As i run cmake, i get an error, because it want to fetch something from github. Besides, there is no switch to turn that of and now not able to compile it, because it have no internet, if i run cmake, i do not expect, that it want connect to the internet and fetch something from a random place. It is in my opinion a major security issue, since i do not await a connection to the internet, when i do not explicit go for it.
cmake output
Code: Select all
Compiler: GNU, version: 10.2.1
prefix: /usr/local
bindir: bin
datadir: share
docdir: share/doc/FreeCAD
includedir: include
libdir: lib
cmake: 3.18.4
Compiling with Qt 5
Checking for connection to GitHub...
GitHub connection established for FetchContent
[ 11%] Performing download step (download, verify and extract) for 'fmt-populate'
-- verifying file...
file='/home/user/Programs/FreeCAD/build/_deps/fmt-subbuild/fmt-populate-prefix/src/9.1.0.zip'
-- MD5 hash of
/home/user/Programs/FreeCAD/build/_deps/fmt-subbuild/fmt-populate-prefix/src/9.1.0.zip
does not match expected value
expected: 'e6754011ff56bfc37631fcc90961e377'
actual: 'd41d8cd98f00b204e9800998ecf8427e'
-- File already exists but hash mismatch. Removing...
-- Downloading...
dst='/home/user/Programs/FreeCAD/build/_deps/fmt-subbuild/fmt-populate-prefix/src/9.1.0.zip'
timeout='none'
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
-- Retrying...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip'
CMake Error at fmt-subbuild/fmt-populate-prefix/src/fmt-populate-stamp/download-fmt-populate.cmake:159 (message):
Each download failed!
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
error: downloading 'https://github.com/fmtlib/fmt/archive/refs/tags/9.1.0.zip' failed
status_code: 6
status_string: "Couldn't resolve host name"
log:
--- LOG BEGIN ---
Could not resolve host: github.com
Closing connection 0
--- LOG END ---
gmake[2]: *** [CMakeFiles/fmt-populate.dir/build.make:111: fmt-populate-prefix/src/fmt-populate-stamp/fmt-populate-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/fmt-populate.dir/all] Error 2
gmake: *** [Makefile:103: all] Error 2
CMake Error at /usr/share/cmake-3.18/Modules/FetchContent.cmake:987 (message):
Build step for fmt failed: 2
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FetchContent.cmake:1082:EVAL:2 (__FetchContent_directPopulate)
/usr/share/cmake-3.18/Modules/FetchContent.cmake:1082 (cmake_language)
/usr/share/cmake-3.18/Modules/FetchContent.cmake:1125 (FetchContent_Populate)
cMake/FreeCAD_Helpers/SetupLibFmt.cmake:38 (FetchContent_MakeAvailable)
CMakeLists.txt:45 (SetupLibFmt)
Configuring incomplete, errors occurred!
See also "/home/user/Programs/FreeCAD/build/CMakeFiles/CMakeOutput.log".
Thoughts?
Greetings
user1234