-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
clock_gettimeCI fails due to clock_gettime symbolCI fails due to clock_gettime symbol
Description
==> brew install --build-bottle --verbose folly
==> FAILED
==> Using the sandbox
/usr/bin/sandbox-exec -f /tmp/homebrew20160930-68874-z10o07.sb nice /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -I /usr/local/Homebrew/Library/Homebrew -- /usr/local/Homebrew/Library/Homebrew/build.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/folly.rb --build-bottle --verbose
==> Downloading https://github.com/facebook/folly/archive/v2016.09.05.00.tar.gz
Already downloaded: /Users/joe/Library/Caches/Homebrew/folly-2016.09.05.00.tar.gz
==> Verifying folly-2016.09.05.00.tar.gz checksum
tar xzf /Users/joe/Library/Caches/Homebrew/folly-2016.09.05.00.tar.gz
==> autoreconf -fvi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory build-aux
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/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: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:39: installing 'build-aux/compile'
configure.ac:39: installing 'build-aux/config.guess'
configure.ac:39: installing 'build-aux/config.sub'
configure.ac:27: installing 'build-aux/install-sh'
configure.ac:27: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory `.'
==> ./configure --prefix=/usr/local/Cellar/folly/2016.09.05.00_1 --disable-silent-rules --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/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 build system type... x86_64-apple-darwin15.6.0
checking host system type... x86_64-apple-darwin15.6.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... clang
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... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... none
checking for a sed that does not truncate output... /usr/local/Homebrew/Library/Homebrew/shims/super/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by clang... /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 whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin15.6.0 file names to x86_64-apple-darwin15.6.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin15.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 objdump... no
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... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from clang object... 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 -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common -DPIC
checking if clang PIC flag -fno-common -DPIC works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.o... (cached) yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.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... yes
checking whether to build static libraries... yes
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... none
checking how to run the C++ preprocessor... clang++ -E
checking for ld used by clang++... /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 clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for clang++ option to produce PIC... -fno-common -DPIC
checking if clang++ PIC flag -fno-common -DPIC works... yes
checking if clang++ static flag -static works... no
checking if clang++ supports -c -o file.o... yes
checking if clang++ supports -c -o file.o... (cached) yes
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin15.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) none
checking if g++ supports C++1y features without additional flags... no
checking if g++ supports C++1y features with -std=c++1y... yes
checking if g++ supports C++1y features with -std=gnu++1y... yes
checking for main in -lgflags... yes
checking for gflags viability... yes
checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GFLAGS... yes
checking for main in -lglog... yes
checking for glog viability... yes
checking for GLOG... yes
checking for pkg-config... /usr/local/opt/pkg-config/bin/pkg-config
checking whether compiling and linking against OpenSSL works... yes
checking for OPENSSL... yes
checking for boostlib >= 1.51.0... yes
checking whether the Boost::Context library is available... no
checking whether the Boost::Program_Options library is available... yes
checking for exit in -lboost_program_options-mt... yes
checking whether the Boost::Thread library is available... yes
checking for exit in -lboost_thread-mt... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-mt... yes
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
checking whether the Boost::Filesystem library is available... yes
checking for exit in -lboost_filesystem... yes
checking whether the Boost::Chrono library is available... yes
checking for exit in -lboost_chrono-mt... yes
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking features.h usability... no
checking features.h presence... no
checking for features.h... no
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sched.h usability... yes
checking sched.h presence... yes
checking for sched.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking mutex.h usability... no
checking mutex.h presence... no
checking for mutex.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking byteswap.h usability... no
checking byteswap.h presence... no
checking for byteswap.h... no
checking bits/functexcept.h usability... no
checking bits/functexcept.h presence... no
checking for bits/functexcept.h... no
checking bits/c++config.h usability... no
checking bits/c++config.h presence... no
checking for bits/c++config.h... no
checking double-conversion/double-conversion.h usability... yes
checking double-conversion/double-conversion.h presence... yes
checking for double-conversion/double-conversion.h... yes
checking for ceil in -ldouble-conversion... yes
checking for event_set in -levent... yes
checking for EVENT... yes
checking for xallocx in -ljemalloc... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working volatile... yes
checking for __int128... yes
checking for __int128 type traits... ./configure: line 20664: unsigned: command not found
./configure: line 20664: __int128: command not found
yes
checking for ptrdiff_t... yes
checking for pthread_spinlock_t... no
checking for ifunc support... no
checking for final and override support... yes
checking for std::this_thread::sleep_for... yes
checking for constexpr strlen... no
checking for libc++... yes
checking for c++11 atomic support without GNU Atomic library... yes
checking for liblinux-vdso support... no
checking for usable std::is_trivially_copyable... yes
checking gflags namespace... gflags
checking for weak symbol support... no
checking for wchar support... yes
checking for unaligned access support... yes
checking for vsnprintf reporting bad format strings... no
checking for library containing cplus_demangle_v3_callback... no
checking for library containing clock_gettime... (cached) no
checking for pthread_atfork support... yes
checking for XSI style strerror_r support... yes
checking for ext/random and __gnu_cxx::sfmt19937... no
checking for VLA (variable-length array) support... yes
checking for getdelim... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for pow... yes
checking for strerror... yes
checking for sched_yield... yes
checking for malloc_size... yes
checking for malloc_usable_size... yes
checking for memrchr... no
checking for pipe2... no
checking for preadv... no
checking for pwritev... no
checking lz4.h usability... yes
checking lz4.h presence... yes
checking for lz4.h... yes
checking for LZ4_decompress_safe in -llz4... yes
checking snappy.h usability... yes
checking snappy.h presence... yes
checking for snappy.h... yes
checking for main in -lsnappy... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for main in -lz... yes
checking lzma.h usability... yes
checking lzma.h presence... yes
checking for lzma.h... yes
checking for main in -llzma... yes
checking zstd.h usability... no
checking zstd.h presence... no
checking for zstd.h... no
checking linux/membarrier.h usability... no
checking linux/membarrier.h presence... no
checking for linux/membarrier.h... no
checking libdwarf.h usability... no
checking libdwarf.h presence... no
checking for libdwarf.h... no
checking dwarf.h usability... no
checking dwarf.h presence... no
checking for dwarf.h... no
checking libelf.h usability... no
checking libelf.h presence... no
checking for libelf.h... no
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking libunwind.h usability... yes
checking libunwind.h presence... yes
checking for libunwind.h... yes
Package libgflags was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgflags.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgflags' found
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libfolly.pc
config.status: creating test/Makefile
config.status: creating test/function_benchmark/Makefile
config.status: creating experimental/Makefile
config.status: creating experimental/symbolizer/Makefile
config.status: creating init/Makefile
config.status: creating config.h
config.status: executing folly-config.h commands
config.status: creating folly-config.h - prefix FOLLY for config.h defines
config.status: executing depfiles commands
config.status: executing libtool commands
==> make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in .
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o Assume.lo Assume.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o Bits.lo Bits.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o Checksum.lo Checksum.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o ClockGettimeWrappers.lo ClockGettimeWrappers.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o dynamic.lo dynamic.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o File.lo File.cpp
/bin/sh ./libtool --tag=CXX --mode=compile clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c -o FileUtil.lo FileUtil.cpp
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Bits.cpp -fno-common -DPIC -o .libs/Bits.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c ClockGettimeWrappers.cpp -fno-common -DPIC -o .libs/ClockGettimeWrappers.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c dynamic.cpp -fno-common -DPIC -o .libs/dynamic.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Checksum.cpp -fno-common -DPIC -o .libs/Checksum.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Assume.cpp -fno-common -DPIC -o .libs/Assume.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c File.cpp -fno-common -DPIC -o .libs/File.o
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c FileUtil.cpp -fno-common -DPIC -o .libs/FileUtil.o
In file included from ClockGettimeWrappers.cpp:17:
In file included from ./../folly/ClockGettimeWrappers.h:19:
./../folly/portability/Time.h:32:17: error: typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')
typedef uint8_t clockid_t;
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/time.h:171:3: note: previous definition is here
} clockid_t;
^
1 error generated.
make[2]: *** [ClockGettimeWrappers.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Bits.cpp -o Bits.o >/dev/null 2>&1
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Checksum.cpp -o Checksum.o >/dev/null 2>&1
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c Assume.cpp -o Assume.o >/dev/null 2>&1
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c FileUtil.cpp -o FileUtil.o >/dev/null 2>&1
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c File.cpp -o File.o >/dev/null 2>&1
libtool: compile: clang++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/local/include -std=gnu++1y -g -O2 -c dynamic.cpp -o dynamic.o >/dev/null 2>&1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> Formula
Path: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/folly.rb
==> Configuration
HOMEBREW_VERSION: 1.0.5-43-g41b2df8
ORIGIN: https://github.com/Homebrew/brew
HEAD: 41b2df8e338c3fe345afc89b1bb394e824213561
Last commit: 6 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 223197a9db071a2e5f63a8e6a5a82c38b9330858
Core tap last commit: 41 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.0.0-p648
Clang: 8.0 build 800
Git: 2.8.4 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 1.8.0_92, 1.8.0_77, 1.7.0_80, 1.6.0_65-b14-468
macOS: 10.11.6-x86_64
Xcode: 8.0
CLT: 7.3.1.0.1.1461711523
X11: 2.7.9 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
SDKROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
MAKEFLAGS: -j7
CMAKE_PREFIX_PATH: /usr/local/opt/openssl:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
MACOSX_DEPLOYMENT_TARGET: 10.11
PKG_CONFIG_PATH: /usr/local/opt/glog/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libevent/lib/pkgconfig:/usr/local/opt/xz/lib/pkgconfig:/usr/local/opt/lz4/lib/pkgconfig:/usr/local/opt/jemalloc/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.11
HOMEBREW_MAKE_JOBS: 7
ACLOCAL_PATH: /usr/local/share/aclocal
PATH: /usr/local/Homebrew/Library/Homebrew/shims/super:/usr/local/opt/autoconf/bin:/usr/local/opt/automake/bin:/usr/local/opt/libtool/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/gflags/bin:/usr/local/opt/openssl/bin:/usr/local/opt/libevent/bin:/usr/local/opt/xz/bin:/usr/local/opt/lz4/bin:/usr/local/opt/jemalloc/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: folly 2016.09.05.00 did not build
Logs:
/Users/joe/Library/Logs/Homebrew/folly/01.autoreconf
/Users/joe/Library/Logs/Homebrew/folly/02.configure
/Users/joe/Library/Logs/Homebrew/folly/02.configure.cc
/Users/joe/Library/Logs/Homebrew/folly/03.make
/Users/joe/Library/Logs/Homebrew/folly/03.make.cc
Metadata
Metadata
Assignees
Labels
clock_gettimeCI fails due to clock_gettime symbolCI fails due to clock_gettime symbol