Skip to content

Instantly share code, notes, and snippets.

@frozenspider
Last active March 3, 2021 17:12
Show Gist options
  • Save frozenspider/4405fd1f091bff3d7fdd203e330c30b9 to your computer and use it in GitHub Desktop.
Save frozenspider/4405fd1f091bff3d7fdd203e330c30b9 to your computer and use it in GitHub Desktop.
ybd --clang11
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -c
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -Aa
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -c
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -Aa
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
Build flags:
Id flags: -D__CLASSIC_C__
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: -c
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: --c++
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: --ec++
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags:
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: -c
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: --c++
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/c++
Build flags:
Id flags: --ec++
The output was:
1
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
Determining if the C compiler works failed with the following output:
Change Dir: /home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp
Run Build Command:"make" "cmTC_3376b/fast"
make -f CMakeFiles/cmTC_3376b.dir/build.make CMakeFiles/cmTC_3376b.dir/build
make[1]: Entering directory `/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o
/home/centos/code/yugabyte/build-support/compiler-wrappers/cc -o CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o -c /home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp/testCCompiler.c
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
make[1]: *** [CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory `/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp'
make: *** [cmTC_3376b/fast] Error 2
17:08 ~/code/yugabyte (HEAD detached at c5252731d) $ rm -rf /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
17:08 ~/code/yugabyte (HEAD detached at c5252731d) $ ybd --clang11 --clean --dltp
+ /home/centos/code/yugabyte/yb_build.sh --clang11 --clean --dltp
[2021-03-03T17:09:05 common-build-env.sh:498 set_cmake_build_type_and_compiler_type] Setting build type to 'debug' by default
[2021-03-03T17:09:05 yb_build.sh:1068 main] YugabyteDB build is running on host 'dev-server-alex'
[2021-03-03T17:09:05 yb_build.sh:1069 main] YB_COMPILER_TYPE=clang11
[2021-03-03T17:09:06 common-build-env.sh:2226 set_prebuilt_thirdparty_url] Setting third-party URL to https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
[2021-03-03T17:09:06 common-build-env.sh:1068 download_and_extract_archive] [Host dev-server-alex] File locked /tmp/yb_download_locks/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11, proceeding with archive installation.
+ /home/centos/code/yugabyte/python/yb/download_and_extract_archive.py --url https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz --dest-dir-parent /opt/yb-build/thirdparty --local-cache-dir /opt/yb-build/download_cache
download_and_extract_archive.py:205 dev-server-alex pid 12834 2021-03-03 17:09:06,058 INFO: Installing https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz into directory /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
download_and_extract_archive.py:220 dev-server-alex pid 12834 2021-03-03 17:09:06,063 INFO: Verifying the checksum of /n/jenkins/download_cache/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
download_and_extract_archive.py:253 dev-server-alex pid 12834 2021-03-03 17:09:06,908 INFO: Extracting /n/jenkins/download_cache/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz in /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tmp.gjdIfV
download_and_extract_archive.py:342 dev-server-alex pid 12834 2021-03-03 17:09:17,139 INFO: Installation of /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11 took 11.1 sec
[2021-03-03T17:09:17 common-build-env.sh:1765 find_or_download_thirdparty] Using downloaded third-party directory: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Details of third-party dependencies:
YB_THIRDPARTY_DIR: /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11 (downloaded from https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz)
YB_THIRDPARTY_URL: https://github.com/yugabyte/yugabyte-db-thirdparty/releases/download/v20210210192530-45c97f45f1-centos7-clang11/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11.tar.gz
YB_DOWNLOAD_THIRDPARTY: 1
NO_REBUILD_THIRDPARTY: 1
[2021-03-03T17:09:17 yb_build.sh:1243 main] Last clean build on debug-clang11-dynamic was performed less than an hour (106 sec) ago.
[2021-03-03T17:09:17 yb_build.sh:1245 main] Do you still want to do a clean build? [y/N]
y
[2021-03-03T17:09:26 yb_build.sh:1261 main] Removing '/home/centos/code/yugabyte/build/debug-clang11-dynamic' (--clean specified)
+ rm -rf /home/centos/code/yugabyte/build/debug-clang11-dynamic
[2021-03-03T17:09:26 yb_build.sh:1287 main] This build is NOT using Ninja. Consider specifying --ninja or setting YB_USE_NINJA=1.
[2021-03-03T17:09:26 yb_build.sh:1309 main] Using make parallelism of 16 (YB_REMOTE_COMPILATION=0)
Saving BUILD_ROOT to /home/centos/code/yugabyte/build/latest_build_root
[2021-03-03T17:09:26 yb_build.sh:363 run_cxx_build] Using cmake binary: /usr/local/bin/cmake
[2021-03-03T17:09:26 yb_build.sh:364 run_cxx_build] Running cmake in /home/centos/code/yugabyte/build/debug-clang11-dynamic
+ export YB_REMOTE_COMPILATION=0
+ YB_REMOTE_COMPILATION=0
+ cmake -DCMAKE_BUILD_TYPE=debug -DCMAKE_C_COMPILER=/home/centos/code/yugabyte/build-support/compiler-wrappers/cc -DCMAKE_CXX_COMPILER=/home/centos/code/yugabyte/build-support/compiler-wrappers/c++ -DCMAKE_MAKE_PROGRAM=make /home/centos/code/yugabyte
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc
-- Check for working C compiler: /home/centos/code/yugabyte/build-support/compiler-wrappers/cc -- broken
CMake Error at /usr/share/cmake3/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/home/centos/code/yugabyte/build-support/compiler-wrappers/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp
Run Build Command:"make" "cmTC_3376b/fast"
make -f CMakeFiles/cmTC_3376b.dir/build.make CMakeFiles/cmTC_3376b.dir/build
make[1]: Entering directory `/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o
/home/centos/code/yugabyte/build-support/compiler-wrappers/cc -o CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o -c /home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp/testCCompiler.c
/home/centos/code/yugabyte/build-support/compiler-wrappers/../common-build-env.sh: line 1005: cc_executable: unbound variable
make[1]: *** [CMakeFiles/cmTC_3376b.dir/testCCompiler.c.o] Error 1
make[1]: Leaving directory `/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeTmp'
make: *** [cmTC_3376b/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:36 (project)
-- Configuring incomplete, errors occurred!
See also "/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeOutput.log".
See also "/home/centos/code/yugabyte/build/debug-clang11-dynamic/CMakeFiles/CMakeError.log".
==========================================================================================
YUGABYTE BUILD SUMMARY
==========================================================================================
Build type : debug
C/C++ compiler : clang11
Build directory : /home/centos/code/yugabyte/build/debug-clang11-dynamic
Third-party dir : /opt/yb-build/thirdparty/yugabyte-db-thirdparty-v20210210192530-45c97f45f1-centos7-clang11
Exit code : 1
------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment