kena@kenux ....com/cockroachdb/cockroach % build/builder.sh mkrelease amd64-linux-musl
+ CGO_ENABLED=1
+ make BUILDTYPE=release XGOOS=linux XGOARCH=amd64 XCMAKE_SYSTEM_NAME=Linux TARGET_TRIPLE=x86_64-unknown-linux-musl LDFLAGS=-static SUFFIX=-linux-2.6.32-musl-amd64
Running make with -j8
GOPATH set to /go
rm -rf /go/native/x86_64-pc-linux-gnu/protobuf
mkdir -p /go/native/x86_64-pc-linux-gnu/protobuf
cd /go/native/x86_64-pc-linux-gnu/protobuf && cmake -Dprotobuf_BUILD_TESTS=OFF /go/src/github.com/cockroachdb/cockroach/c-deps/protobuf/cmake \
-DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.5/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e91f6/fast"
make[1]: Entering directory
'/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_e91f6.dir/build.make
CMakeFiles/cmTC_e91f6.dir/build
make[2]: Entering directory
'/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o
/usr/bin/cc -g1 -o CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o -c
/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_e91f6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e91f6.dir/link.txt
--verbose=1
/usr/bin/cc -g1 -static CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o -o
cmTC_e91f6 -rdynamic
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in
`/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libc.a(strcmp.o)'
can not be used when making an executable; recompile with -fPIE and relink
with -pie
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
CMakeFiles/cmTC_e91f6.dir/build.make:97: recipe for target 'cmTC_e91f6'
failed
make[2]: *** [cmTC_e91f6] Error 1
make[2]: Leaving directory
'/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e91f6/fast' failed
make[1]: *** [cmTC_e91f6/fast] Error 2
make[1]: Leaving directory
'/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (project)
-- Configuring incomplete, errors occurred!
See also "/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeOutput.log".
See also "/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeError.log".
Makefile:532: recipe for target '/go/native/x86_64-pc-linux-gnu/protobuf/Makefile' failed
make: *** [/go/native/x86_64-pc-linux-gnu/protobuf/Makefile] Error 1
Then said .log files say:
The system is: Linux - 4.15.0-29-generic - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /usr/bin/cc
Build flags: -g1
Id flags:
The output was:
0
Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"
The C compiler identification is Clang, found in "/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/3.5.1/CompilerIdC/a.out"
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler: /usr/bin/c++
Build flags: -g1
Id flags:
The output was:
0
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
The CXX compiler identification is Clang, found in "/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/3.5.1/CompilerIdCXX/a.out"
and
Determining if the C compiler works failed with the following output:
Change Dir: /go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_e91f6/fast"
make[1]: Entering directory '/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTC_e91f6.dir/build.make CMakeFiles/cmTC_e91f6.dir/build
make[2]: Entering directory '/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o
/usr/bin/cc -g1 -o CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o -c /go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_e91f6
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e91f6.dir/link.txt --verbose=1
/usr/bin/cc -g1 -static CMakeFiles/cmTC_e91f6.dir/testCCompiler.c.o -o cmTC_e91f6 -rdynamic
/usr/bin/ld: dynamic STT_GNU_IFUNC symbol `strcmp' with pointer equality in `/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../x86_64-linux-gnu/libc.a(strcmp.o)' can not be used when making an executable; recompile with -fPIE and relink with -pie
clang: error: linker command failed with exit code 1 (use -v to see invocation)
CMakeFiles/cmTC_e91f6.dir/build.make:97: recipe for target 'cmTC_e91f6' failed
make[2]: *** [cmTC_e91f6] Error 1
make[2]: Leaving directory '/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_e91f6/fast' failed
make[1]: *** [cmTC_e91f6/fast] Error 2
make[1]: Leaving directory '/go/native/x86_64-pc-linux-gnu/protobuf/CMakeFiles/CMakeTmp'