>>> glog 0.4.0 Downloading --2019-10-30 17:33:23-- https://github.com/google/glog/archive/v0.4.0/glog-0.4.0.tar.gz Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving github.com (github.com)... 192.30.255.113 Connecting to github.com (github.com)|192.30.255.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/google/glog/tar.gz/v0.4.0 [following] --2019-10-30 17:33:24-- https://codeload.github.com/google/glog/tar.gz/v0.4.0 Resolving codeload.github.com (codeload.github.com)... 192.30.255.120 Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/data/buildroot/buildroot-test/instance-0/output/build/.glog-0.4.0.tar.gz.VLjtTB/output' 0K .......... .......... .......... .......... .......... 147K 50K .......... .......... .......... .......... .......... 1.38M 100K .......... .......... .......... .......... .......... 38.9M 150K .......... .......... .......... .......... ...... 1.33M=0.4s 2019-10-30 17:33:24 (478 KB/s) - '/data/buildroot/buildroot-test/instance-0/output/build/.glog-0.4.0.tar.gz.VLjtTB/output' saved [200955] glog-0.4.0.tar.gz: OK (sha256: f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c) >>> glog 0.4.0 Extracting gzip -d -c /data/buildroot/buildroot-test/instance-0/dl/glog/glog-0.4.0.tar.gz | /data/buildroot/buildroot-test/instance-0/output/host/bin/tar --strip-components=1 -C /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0 -xf - >>> glog 0.4.0 Patching Applying 0001-src-symbolize.cc-fix-build-without-dlfcn.h.patch using patch: patching file src/symbolize.cc Applying 0002-src-utilities-fix-build-without-pthread.patch using patch: patching file src/utilities.cc patching file src/utilities.h >>> glog 0.4.0 Configuring (mkdir -p /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/ && cd /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/ && rm -f CMakeCache.txt && PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" /data/buildroot/buildroot-test/instance-0/output/host/bin/cmake /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/ -DCMAKE_TOOLCHAIN_FILE="/data/buildroot/buildroot-test/instance-0/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 -DWITH_THREADS=ON -DWITH_GFLAGS=OFF ) -- The C compiler identification is GNU 4.8.3 -- The CXX compiler identification is GNU 4.8.3 -- Check for working C compiler: /data/buildroot/buildroot-test/instance-0/output/host/bin/arm-none-linux-gnueabi-gcc -- Check for working C compiler: /data/buildroot/buildroot-test/instance-0/output/host/bin/arm-none-linux-gnueabi-gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /data/buildroot/buildroot-test/instance-0/output/host/bin/arm-none-linux-gnueabi-g++ -- Check for working CXX compiler: /data/buildroot/buildroot-test/instance-0/output/host/bin/arm-none-linux-gnueabi-g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for execinfo.h -- Looking for execinfo.h - found -- Looking for glob.h -- Looking for glob.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for libunwind.h -- Looking for libunwind.h - not found -- Looking for memory.h -- Looking for memory.h - found -- Looking for pwd.h -- Looking for pwd.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for sys/syscall.h -- Looking for sys/syscall.h - found -- Looking for sys/time.h -- Looking for sys/time.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/utsname.h -- Looking for sys/utsname.h - found -- Looking for syscall.h -- Looking for syscall.h - found -- Looking for syslog.h -- Looking for syslog.h - found -- Looking for ucontext.h -- Looking for ucontext.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for unwind.h -- Looking for unwind.h - found -- Looking for C++ include ext/hash_map -- Looking for C++ include ext/hash_map - found -- Looking for C++ include ext/hash_set -- Looking for C++ include ext/hash_set - found -- Looking for C++ include ext/slist -- Looking for C++ include ext/slist - found -- Looking for C++ include tr1/unordered_map -- Looking for C++ include tr1/unordered_map - found -- Looking for C++ include tr1/unordered_set -- Looking for C++ include tr1/unordered_set - found -- Looking for C++ include unordered_map -- Looking for C++ include unordered_map - not found -- Looking for C++ include unordered_set -- Looking for C++ include unordered_set - not found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned __int16 -- Check size of unsigned __int16 - failed -- Check size of u_int16_t -- Check size of u_int16_t - done -- Check size of uint16_t -- Check size of uint16_t - done -- Looking for dladdr -- Looking for dladdr - not found -- Looking for fcntl -- Looking for fcntl - found -- Looking for pread -- Looking for pread - found -- Looking for pwrite -- Looking for pwrite - found -- Looking for sigaction -- Looking for sigaction - found -- Looking for sigaltstack -- Looking for sigaltstack - found -- Performing Test HAVE_NO_DEPRECATED -- Performing Test HAVE_NO_DEPRECATED - Success -- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS -- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed -- Looking for snprintf -- Looking for snprintf - found -- Looking for get_static_proc_name in unwind -- Looking for get_static_proc_name in unwind - not found -- Looking for UnDecorateSymbolName in dbghelp -- Looking for UnDecorateSymbolName in dbghelp - not found -- Performing Test HAVE___ATTRIBUTE__ -- Performing Test HAVE___ATTRIBUTE__ - Success -- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT -- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Success -- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN -- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Success -- Performing Test HAVE___BUILTIN_EXPECT -- Performing Test HAVE___BUILTIN_EXPECT - Success -- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP -- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Success -- Performing Test HAVE_RWLOCK -- Performing Test HAVE_RWLOCK - Failed -- Performing Test HAVE___DECLSPEC -- Performing Test HAVE___DECLSPEC - Failed -- Performing Test STL_NO_NAMESPACE -- Performing Test STL_NO_NAMESPACE - Failed -- Performing Test STL_STD_NAMESPACE -- Performing Test STL_STD_NAMESPACE - Success -- Performing Test HAVE_USING_OPERATOR -- Performing Test HAVE_USING_OPERATOR - Success -- Performing Test HAVE_NAMESPACES -- Performing Test HAVE_NAMESPACES - Success -- Performing Test HAVE_GCC_TLS -- Performing Test HAVE_GCC_TLS - Success -- Performing Test HAVE_MSVC_TLS -- Performing Test HAVE_MSVC_TLS - Failed -- Performing Test HAVE_CXX11_TLS -- Performing Test HAVE_CXX11_TLS - Failed -- Performing Test HAVE_ALIGNED_STORAGE -- Performing Test HAVE_ALIGNED_STORAGE - Failed -- Performing Test HAVE_LOCALTIME_R -- Performing Test HAVE_LOCALTIME_R - Success -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: BUILD_DOC BUILD_DOCS BUILD_EXAMPLE BUILD_EXAMPLES BUILD_TEST BUILD_TESTS -- Build files have been written to: /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0 >>> glog 0.4.0 Building PATH="/data/buildroot/buildroot-test/instance-0/output/host/bin:/data/buildroot/buildroot-test/instance-0/output/host/sbin:/data/buildroot/buildroot-test/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl" /usr/bin/make -j12 -C /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/ make[1]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make[2]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' Scanning dependencies of target glog make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make[3]: Entering directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' [ 12%] Building CXX object CMakeFiles/glog.dir/src/demangle.cc.o [ 37%] Building CXX object CMakeFiles/glog.dir/src/logging.cc.o [ 37%] Building CXX object CMakeFiles/glog.dir/src/raw_logging.cc.o [ 50%] Building CXX object CMakeFiles/glog.dir/src/symbolize.cc.o [ 62%] Building CXX object CMakeFiles/glog.dir/src/utilities.cc.o [ 75%] Building CXX object CMakeFiles/glog.dir/src/vlog_is_on.cc.o [ 87%] Building CXX object CMakeFiles/glog.dir/src/signalhandler.cc.o /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/src/utilities.cc:283:19: error: #elif with no expression #elif HAVE_PTHREAD ^ make[3]: *** [CMakeFiles/glog.dir/build.make:115: CMakeFiles/glog.dir/src/utilities.cc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make[2]: *** [CMakeFiles/Makefile2:76: CMakeFiles/glog.dir/all] Error 2 make[2]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make[1]: *** [Makefile:152: all] Error 2 make[1]: Leaving directory '/data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0' make: *** [package/pkg-generic.mk:241: /data/buildroot/buildroot-test/instance-0/output/build/glog-0.4.0/.stamp_built] Error 2 make: Leaving directory '/data/buildroot/buildroot-test/instance-0/buildroot'