Skip to content
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

[BUG] Failed to link jeamlloc when building with makefile #556

Closed
git-hulk opened this issue May 8, 2022 · 7 comments · Fixed by #557
Closed

[BUG] Failed to link jeamlloc when building with makefile #556

git-hulk opened this issue May 8, 2022 · 7 comments · Fixed by #557

Comments

@git-hulk
Copy link
Member

git-hulk commented May 8, 2022

There're two issues when building with clang13 on MacOSX:

  1. RocksDB can't be compiled with clang13, can be fixed by Upgrade the rocksdb version to 6.29.5(latest version for 6.x) #555
  2. Failed to link jemalloc in rocksdb since rocksdb would auto detect and
    enable the jemalloc if exists, but Kvrocks didn't link the jemalloc in MacOSX.
@tisonkun
Copy link
Member

tisonkun commented May 8, 2022

I've tested with #555 but still failed to compile with:

    LINK kvrocks
Undefined symbols for architecture x86_64:
  "_dallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_mallctl", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_mallctlbymib", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_mallctlnametomib", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_malloc_stats_print", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_malloc_usable_size", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_mallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_nallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_rallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_sallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_sdallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
  "_xallocx", referenced from:
      rocksdb::DumpMallocStats(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >*) in librocksdb.a(malloc_stats.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [kvrocks] Error 1
make: *** [all] Error 2

with Clang version:

clang -v
Homebrew clang version 13.0.1
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin

@git-hulk
Copy link
Member Author

git-hulk commented May 8, 2022

Thanks @tisonkun

Need to run make distclean to rebuild dependencies. You can have a look at file external/rocksdb/make_config.mk should contain JEAMLLOC=1 if didn't rebuild the rocksdb.

@tisonkun
Copy link
Member

tisonkun commented May 9, 2022

@git-hulk after this issue resolved, build still failed with:

Output
$ clang -v
Homebrew clang version 13.0.1
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm/bin
$ mkdir build
$ make -j8   
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make all
cd /Users/tison/Brittani/incubator-kvrocks/external/glog;./autogen.sh; ./configure --disable-shared; \
		/Applications/Xcode.app/Contents/Developer/usr/bin/make CXXFLAGS='-fPIC' -C /Users/tison/Brittani/incubator-kvrocks/external/glog/
cd /Users/tison/Brittani/incubator-kvrocks/external/libevent; ./autogen.sh; \
		./configure --enable-shared=no --disable-openssl; \
		/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/tison/Brittani/incubator-kvrocks/external/libevent/
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
autoreconf: running: glibtoolize --copy --force
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: putting auxiliary files in '.'.
glibtoolize: copying file './ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I m4
autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoconf --force
configure.ac:14: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:14: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:745: AM_CONFIG_HEADER is expanded from...
configure.ac:14: the top level
configure.ac:24: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:24: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:24: the top level
configure.ac:28: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:28: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:28: the top level
configure.ac:83: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:83: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_attribute.m4:1: AX_C___ATTRIBUTE__ is expanded from...
configure.ac:83: the top level
configure.ac:95: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:95: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_builtin_expect.m4:1: AX_C___BUILTIN_EXPECT is expanded from...
configure.ac:95: the top level
configure.ac:102: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_sync_val_compare_and_swap.m4:1: AX_C___SYNC_VAL_COMPARE_AND_SWAP is expanded from...
configure.ac:102: the top level
configure.ac:124: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:124: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
configure.ac:124: the top level
configure.ac:124: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:124: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
configure.ac:124: the top level
configure.ac:197: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:197: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:15: AC_RWLOCK is expanded from...
configure.ac:197: the top level
configure.ac:197: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:197: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:15: AC_RWLOCK is expanded from...
configure.ac:197: the top level
configure.ac:201: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/namespaces.m4:2: AC_CXX_NAMESPACES is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/namespaces.m4:2: AC_CXX_NAMESPACES is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:204: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:204: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/using_operator.m4:1: AC_CXX_USING_OPERATOR is expanded from...
configure.ac:204: the top level
configure.ac:204: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:204: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/using_operator.m4:1: AC_CXX_USING_OPERATOR is expanded from...
configure.ac:204: the top level
configure.ac:206: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:206: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
m4/pc_from_ucontext.m4:12: AC_PC_FROM_UCONTEXT is expanded from...
configure.ac:206: the top level
configure.ac:246: warning: AC_OUTPUT should be used without arguments.
configure.ac:246: You should run autoupdate.
configure.ac:129: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:129: You should run autoupdate.
m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from...
configure.ac:129: the top level
configure.ac:153: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:153: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:153: the top level
configure.ac:166: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:166: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:166: the top level
configure.ac:179: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:179: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:179: the top level
configure.ac:353: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:353: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.ac:353: the top level
configure.ac:427: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:427: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/functions.m4:66: AC_CHECK_FUNC is expanded from...
configure.ac:427: the top level
configure.ac:427: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:427: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/functions.m4:66: AC_CHECK_FUNC is expanded from...
configure.ac:427: the top level
configure.ac:520: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:520: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
configure.ac:520: the top level
configure.ac:592: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:592: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
configure.ac:592: the top level
configure.ac:732: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:732: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:732: the top level
configure.ac:748: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:748: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:748: the top level
configure.ac:756: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:756: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:756: the top level
configure.ac:767: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:767: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
m4/acx_pthread.m4:86: ACX_PTHREAD is expanded from...
configure.ac:767: the top level
configure.ac:767: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:767: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
m4/acx_pthread.m4:86: ACX_PTHREAD is expanded from...
configure.ac:767: the top level
configure.ac:955: warning: AC_OUTPUT should be used without arguments.
configure.ac:955: You should run autoupdate.
autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:19: installing './compile'
configure.ac:24: installing './config.guess'
configure.ac:24: installing './config.sub'
configure.ac:13: installing './install-sh'
configure.ac:13: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
configure.ac:25: installing './compile'
configure.ac:33: installing './config.guess'
configure.ac:33: installing './config.sub'
configure.ac:13: installing './install-sh'
configure.ac:13: installing './missing'
Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
autoreconf: Leaving directory '.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
checking for suffix of object files... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... 
checking whether we are cross compiling... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... no
checking for suffix of object files... yes
checking whether make supports the include directive... o
checking whether the compiler supports GNU C... yes (GNU style)
checking dependency style of gcc... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... gcc3
checking how to run the C preprocessor... none needed
checking whether gcc understands -c and -o together... gcc -E
yes
checking dependency style of gcc... checking for g++... g++
gcc3
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for inttypes.h... yes
checking for g++ option to enable C++11 features... yes
checking for stdint.h... yes
checking for strings.h... none needed
checking dependency style of g++... yes
checking for sys/stat.h... yes
checking for sys/types.h... gcc3
checking build system type... yes
checking for unistd.h... yes
checking for wchar.h... x86_64-apple-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... yes
checking for minix/config.h... no
checking for sys/time.h... /usr/bin/sed
checking for grep that handles long lines and -e... yes
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... no
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... checking build system type... x86_64-apple-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking whether ln -s works... yes
checking for a sed that does not truncate output... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... /usr/bin/sed
checking how to run the C preprocessor... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin19.6.0 file names to x86_64-apple-darwin19.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin19.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... gcc -E
no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin19.6.0 file names to x86_64-apple-darwin19.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin19.6.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... ok
checking for sysroot... no
checking for a working dd... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for stdio.h... yes
checking for -exported_symbols_list linker flag... yes
checking for stdlib.h... yes
checking for -force_load linker flag... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
yes
checking for stdint.h... yes
checking for strings.h... checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking for sys/stat.h... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking for sys/types.h... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... yes
checking for unistd.h... darwin19.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for library containing inet_ntoa... yes
checking for dlfcn.h... none required
checking for library containing socket... yes
checking for objdir... .libs
none required
checking for library containing inet_aton... none required
checking for library containing clock_gettime... checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... none required
checking for clock_gettime... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking for library containing sendfile... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... none required
checking for WIN32... darwin19.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
no
checking for MIDIPIX... checking how to run the C++ preprocessor... no
checking for CYGWIN... no
checking for zlib.h... g++ -E
yes
checking for library containing inflateEnd... checking for ld used by g++... -lz
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
no
checking for pkg-config... /usr/local/bin/pkg-config
checking if pkg-config is at least version 0.15.0... yes
checking for arpa/inet.h... checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... yes
checking for fcntl.h... no
checking if g++ supports -c -o file.o... yes
checking for ifaddrs.h... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for egrep... (cached) /usr/bin/grep -E
checking for stdint.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for pwd.h... yes
checking for mach/mach_time.h... yes
checking for netdb.h... yes
checking for unistd.h... (cached) yes
checking for syscall.h... yes
checking for netinet/in.h... no
checking for sys/syscall.h... yes
checking for netinet/in6.h... no
checking for netinet/tcp.h... yes
checking for execinfo.h... yes
checking for sys/un.h... yes
checking for libunwind.h... yes
checking for poll.h... yes
checking for port.h... yes
checking for ucontext.h... no
checking for stdarg.h... no
checking for sys/utsname.h... yes
checking for stddef.h... yes
checking for sys/devpoll.h... yes
checking for pwd.h... (cached) yes
checking for syslog.h... no
checking for sys/epoll.h... yes
checking for sys/time.h... no
checking for sys/event.h... yes
checking for sys/eventfd.h... yes
checking for glob.h... no
checking for sys/ioctl.h... yes
checking for unwind.h... yes
checking for sys/mman.h... yes
checking for sys/param.h... yes
checking for windows.h... yes
checking for sys/queue.h... yes
checking for sys/resource.h... no
checking size of void *... yes
checking for sys/select.h... yes
checking for sys/sendfile.h... no
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/timerfd.h... no
checking for sys/uio.h... yes
checking for sys/wait.h... yes
checking for errno.h... 8
checking for uint16_t... yes
checking for sys/sysctl.h... yes
checking for TAILQ_FOREACH in sys/queue.h... yes
checking for timeradd in sys/time.h... yes
checking for timercmp in sys/time.h... yes
checking for u_int16_t... yes
checking for timerclear in sys/time.h... yes
checking for timerisset in sys/time.h... yes
checking for gcc options needed to detect all undeclared functions... yes
checking for __uint16... none needed
checking whether CTL_KERN is declared... yes
checking whether KERN_RANDOM is declared... no
checking for sigaltstack... no
checking whether RANDOM_UUID is declared... yes
checking for sigaction... no
checking whether KERN_ARND is declared... yes
checking for dladdr... no
checking for an ANSI C-conforming const... yes
checking for inline... yes
checking for fcntl... inline
checking for accept4... yes
checking for pread... no
checking for arc4random... yes
checking for pwrite... yes
checking for arc4random_buf... yes
checking for __attribute__... yes
checking for arc4random_addrandom... yes
checking for __builtin_expect... yes
checking for eventfd... yes
checking for __sync_val_compare_and_swap... no
checking for epoll_create1... yes
checking for the pthreads library -lpthreads... no
checking for fcntl... no
checking whether pthreads work without any flags... yes
checking for getegid... yes
checking for joinable pthread attribute... yes
checking for geteuid... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking whether to check for GCC pthread/shared inconsistencies... yes
checking for getifaddrs... no
checking for pthread_self in -lpthread... yes
checking for getnameinfo... yes
checking for main in -lgflags... yes
checking for getprotobynumber... no
checking for gtest-config... no
checking for main in -lgtest... yes
checking for gettimeofday... yes
checking for backtrace in -lunwind... no
checking support for pthread_rwlock_* functions... yes
checking for inet_ntop... yes
checking whether the compiler implements namespaces... yes
checking what namespace STL code is in... yes
checking for inet_pton... yes
checking for issetugid... yes
checking for mach_absolute_time... yes
checking for mmap... yes
checking for nanosleep... yes
checking for pipe... std
checking whether compiler supports using ::operator<<... yes
checking for pipe2... no
checking for putenv... yes
checking for sendfile... yes
checking for setenv... 1
checking for ucontext.h... (cached) no
checking for sys/ucontext.h... yes
checking for setrlimit... yes
checking how to access the program counter from a struct ucontext... yes
checking for sigaction... yes
checking for signal... yes
checking for splice... no
checking for strlcpy... yes
checking for strsep... yes
checking for strtok_r... yes
checking for strtoll... yes
checking for sysctl... yes
checking for timerfd_create... uc_mcontext->__ss.__rip
no
checking for umask... checking that generated files are newer than configure... done
configure: creating ./config.status
yes
checking for unsetenv... yes
checking for usleep... yes
checking for vasprintf... yes
checking for getservbyname... yes
checking for getaddrinfo... yes
checking for F_SETFD in fcntl.h... yes
checking for select... yes
checking for poll... yes
checking for kqueue... yes
checking for working kqueue... config.status: creating Makefile
config.status: creating src/glog/logging.h
config.status: creating src/glog/raw_logging.h
config.status: creating src/glog/vlog_is_on.h
config.status: creating src/glog/stl_logging.h
config.status: creating libglog.pc
config.status: creating src/config.h
config.status: executing depfiles commands
yes
checking for epoll_ctl... no
checking for port_create... no
checking for pid_t... yes
checking for size_t... config.status: executing libtool commands
yes
checking for ssize_t... g++ -DHAVE_CONFIG_H -I. -I./src  -I./src  -D_THREAD_SAFE      -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -fPIC -MT src/logging_unittest-logging_unittest.o -MD -MP -MF src/.deps/logging_unittest-logging_unittest.Tpo -c -o src/logging_unittest-logging_unittest.o `test -f 'src/logging_unittest.cc' || echo './'`src/logging_unittest.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c -o src/libglog_la-logging.lo `test -f 'src/logging.cc' || echo './'`src/logging.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c -o src/libglog_la-raw_logging.lo `test -f 'src/raw_logging.cc' || echo './'`src/raw_logging.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c -o src/libglog_la-vlog_is_on.lo `test -f 'src/vlog_is_on.cc' || echo './'`src/vlog_is_on.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c -o src/libglog_la-utilities.lo `test -f 'src/utilities.cc' || echo './'`src/utilities.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c -o src/libglog_la-demangle.lo `test -f 'src/demangle.cc' || echo './'`src/demangle.cc
/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I./src  -I./src     -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare  -DNO_FRAME_POINTER  -DNDEBUG -fPIC -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c -o src/libglog_la-symbolize.lo `test -f 'src/symbolize.cc' || echo './'`src/symbolize.cc
make[2]: *** read jobs pipe: Resource temporarily unavailable.  Stop.
make[2]: *** Waiting for unfinished jobs....
yes
checking for uint64_t... libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-vlog_is_on.lo -MD -MP -MF src/.deps/libglog_la-vlog_is_on.Tpo -c src/vlog_is_on.cc -o src/libglog_la-vlog_is_on.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-logging.lo -MD -MP -MF src/.deps/libglog_la-logging.Tpo -c src/logging.cc -o src/libglog_la-logging.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-symbolize.lo -MD -MP -MF src/.deps/libglog_la-symbolize.Tpo -c src/symbolize.cc -o src/libglog_la-symbolize.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-utilities.lo -MD -MP -MF src/.deps/libglog_la-utilities.Tpo -c src/utilities.cc -o src/libglog_la-utilities.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-demangle.lo -MD -MP -MF src/.deps/libglog_la-demangle.Tpo -c src/demangle.cc -o src/libglog_la-demangle.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./src -I./src -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -DNO_FRAME_POINTER -DNDEBUG -fPIC -MT src/libglog_la-raw_logging.lo -MD -MP -MF src/.deps/libglog_la-raw_logging.Tpo -c src/raw_logging.cc -o src/libglog_la-raw_logging.o
yes
checking for uint32_t... yes
checking for uint16_t... yes
checking for uint8_t... In file included from src/logging_unittest.cc:58:
./src/googletest.h:589:7: warning: 'operator new' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
void* operator new(size_t size) {
      ^
                                throw(std::bad_alloc)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:186:66: note: previous declaration is here
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new(std::size_t __sz) _THROW_BAD_ALLOC;
                                                                 ^
In file included from src/logging_unittest.cc:58:
./src/googletest.h:596:7: warning: 'operator new[]' is missing exception specification 'throw(std::bad_alloc)' [-Wmissing-exception-spec]
void* operator new[](size_t size) {
      ^
                                  throw(std::bad_alloc)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:194:66: note: previous declaration is here
_LIBCPP_NODISCARD_AFTER_CXX17 _LIBCPP_OVERRIDABLE_FUNC_VIS void* operator new[](std::size_t __sz) _THROW_BAD_ALLOC;
                                                                 ^
In file included from src/logging_unittest.cc:58:
./src/googletest.h:600:6: warning: 'operator delete' is missing exception specification 'throw()' [-Wmissing-exception-spec]
void operator delete(void* p) {
     ^
                              throw()
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:188:36: note: previous declaration is here
_LIBCPP_OVERRIDABLE_FUNC_VIS void  operator delete(void* __p) _NOEXCEPT;
                                   ^
In file included from src/logging_unittest.cc:58:
./src/googletest.h:604:6: warning: 'operator delete[]' is missing exception specification 'throw()' [-Wmissing-exception-spec]
void operator delete[](void* p) {
     ^
                                throw()
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/new:196:36: note: previous declaration is here
_LIBCPP_OVERRIDABLE_FUNC_VIS void  operator delete[](void* __p) _NOEXCEPT;
                                   ^
src/raw_logging.cc:139:3: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface.
      For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
  safe_write(STDERR_FILENO, buffer, strlen(buffer));
  ^
src/raw_logging.cc:63:34: note: expanded from macro 'safe_write'
# define safe_write(fd, s, len)  syscall(SYS_write, fd, s, len)
                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/unistd.h:742:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
src/utilities.cc:262:17: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface.
      For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
    pid_t tid = syscall(__NR_gettid);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/unistd.h:742:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
mv -f src/.deps/libglog_la-symbolize.Tpo src/.deps/libglog_la-symbolize.Plo
1 warning generated.
mv -f src/.deps/libglog_la-raw_logging.Tpo src/.deps/libglog_la-raw_logging.Plo
mv -f src/.deps/libglog_la-vlog_is_on.Tpo src/.deps/libglog_la-vlog_is_on.Plo
1 warning generated.
mv -f src/.deps/libglog_la-demangle.Tpo src/.deps/libglog_la-demangle.Plo
mv -f src/.deps/libglog_la-utilities.Tpo src/.deps/libglog_la-utilities.Plo
yes
checking for uintptr_t... src/logging_unittest.cc:1079:13: warning: unused function 'MyFatal' [-Wunused-function]
static void MyFatal() {
            ^
src/logging_unittest.cc:1082:13: warning: unused function 'MyCheck' [-Wunused-function]
static void MyCheck(bool a, bool b) {
            ^
yes
checking for fd_mask... yes
checking size of long long... mv -f src/.deps/libglog_la-logging.Tpo src/.deps/libglog_la-logging.Plo
6 warnings generated.
mv -f src/.deps/logging_unittest-logging_unittest.Tpo src/.deps/logging_unittest-logging_unittest.Po
8
checking size of long... 8
checking size of int... 4
checking size of short... 2
checking size of size_t... 8
checking size of void *... 8
checking size of off_t... 8
checking size of time_t... 8
checking for struct in6_addr... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_un... yes
checking for sa_family_t... yes
checking for struct addrinfo... yes
checking for struct sockaddr_storage... yes
checking for struct in6_addr.s6_addr32... no
checking for struct in6_addr.s6_addr16... no
checking for struct sockaddr_in.sin_len... yes
checking for struct sockaddr_in6.sin6_len... yes
checking for struct sockaddr_storage.ss_family... yes
checking for struct sockaddr_storage.__ss_family... no
checking for struct linger... yes
checking for socklen_t... yes
checking whether our compiler supports __func__... yes
checking whether our compiler supports __FUNCTION__... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking size of pthread_t... 8
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libevent.pc
config.status: creating libevent_openssl.pc
config.status: creating libevent_pthreads.pc
config.status: creating libevent_core.pc
config.status: creating libevent_extra.pc
config.status: creating Makefile
config.status: creating config.h
config.status: creating evconfig-private.h
config.status: executing depfiles commands
config.status: executing libtool commands
  GEN      test/rpcgen-attempted
  GEN      include/event2/event-config.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-am
make[3]: *** read jobs pipe: Resource temporarily unavailable.  Stop.
make[3]: *** Waiting for unfinished jobs....
  CC       buffer.lo
  CC       bufferevent.lo
  CC       bufferevent_filter.lo
  CC       bufferevent_pair.lo
  CC       bufferevent_ratelim.lo
  CC       bufferevent_sock.lo
make[2]: *** [all] Error 2
make: *** [all] Error 2

And there is no external/rocksdb/make_config.mk file.

@git-hulk
Copy link
Member Author

git-hulk commented May 9, 2022

read jobs pipe: Resource temporarily unavailable

I also got this error on MacOSX before when using -j to run jobs simultaneously,
but I didn't investigate the reason. Can workaround by remove -j4.

@git-hulk
Copy link
Member Author

git-hulk commented May 9, 2022

@tisonkun I think we can change the README guide to use make instead of make -j4 before
resolving. How do you think?

@tisonkun
Copy link
Member

tisonkun commented May 9, 2022

@git-hulk make sense.

@git-hulk
Copy link
Member Author

git-hulk commented May 9, 2022

@tisonkun OK, thanks. Will do it later.
This issue seems caused by resource was NOT enough when building.
Other softwares like openresty also have this issue on MacOSX: openresty/openresty#22.
But I still don't know why, need further study.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants