facebook / folly

An open-source C++ library developed and used at Facebook.
https://groups.google.com/forum/?fromgroups#!forum/facebook-folly
Apache License 2.0
28.1k stars 5.54k forks source link

Folly ./configure failing to find glog #231

Closed amckinley closed 7 years ago

amckinley commented 9 years ago

Not sure which commit broke things, but some time in the last two weeks, there was a change to folly that broke my mcrouter build process.

The configure script fails to detect a working installation of glog:

checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if g++ supports C++0x features without additional flags... no
checking if g++ supports C++0x features with -std=c++0x... yes
checking if g++ supports C++0x features with -std=gnu++0x... yes
checking for main in -lglog... yes
checking for glog viability... no
configure: error: "libglog invalid, see config.log for details"

Here's my complete config.log: https://git.imgur-dev.com/gist/amckinley/fd9b22ac59be31b88cbe

This is how I've been building mcrouter and its dependencies on Amazon Linux: https://git.imgur-dev.com/gist/amckinley/85a069a38ecd1c389f12

If I checkout the v0.47.0 tag instead of master, everything works as expected. Please let me know if there's any more information I can provide.

sgolemon commented 9 years ago

Could you paste your config.log elsewhere? Imgur wants WAY TOO MUCH access just to view an image...

"This application will be able to read and write all user data."

sgolemon commented 9 years ago

In the short term, you can disable the viability tests in folly/configure.ac by just removing AC_MSG_ERROR(["libglog invalid, see config.log for details"]) and the similar line for gflags below it, then rerunning autoreconf ivf && ./configure

oujl commented 9 years ago

i has the same issue , on mac os 10.9.2
when run ./bootstrap-osx-homebrew.sh

checking if g++ supports C++0x features with -std=gnu++0x... yes checking for main in -lglog... no configure: error: Please install google-glog library

config.log : This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by folly configure 48.0, which was generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = yhdeMac-mini.local uname -m = x86_64 uname -r = 13.1.0 uname -s = Darwin uname -v = Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64

/usr/bin/uname -p = i386 /bin/uname -X = unknown

/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available. 4 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 2 3 Primary memory available: 4.00 gigabytes Default processor set: 171 tasks, 765 threads, 4 processors Load average: 3.08, Mach factor: 2.02 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown

PATH: /usr/local/ant/bin PATH: /Users/yh/work/cocos2d-x-3-2.0/tools/cocos2d-console/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/bin PATH: /usr/local/ant/bin PATH: /usr/local/ant/bin PATH: /Users/yh/work/adt/sdk/tools PATH: /Users/yh/work/adt/sdk/build-tools/21.1.2 PATH: /Users/yh/work/adt/android-ndk-r9d PATH: /Users/yh/work/cocos2d-x-3-2.0 PATH: /Users/yh/work/adt/android-ndk-r9d PATH: /Users/yh/work/adt/sign_tool PATH: /Users/yh/work/adt/sdk/platform-tools

-----------

Core tests.

-----------

configure:2638: checking for a BSD-compatible install configure:2706: result: /usr/bin/install -c configure:2717: checking whether build environment is sane configure:2772: result: yes configure:2923: checking for a thread-safe mkdir -p configure:2962: result: build-aux/install-sh -c -d configure:2969: checking for gawk configure:2999: result: no configure:2969: checking for mawk configure:2999: result: no configure:2969: checking for nawk configure:2999: result: no configure:2969: checking for awk configure:2985: found /usr/bin/awk configure:2996: result: awk configure:3007: checking whether make sets $(MAKE) configure:3029: result: yes configure:3058: checking whether make supports nested variables configure:3075: result: yes configure:3280: checking build system type configure:3294: result: x86_64-apple-darwin13.1.0 configure:3314: checking host system type configure:3327: result: x86_64-apple-darwin13.1.0 configure:3368: checking how to print strings configure:3395: result: printf configure:3428: checking for style of include used by make configure:3456: result: GNU configure:3527: checking for gcc configure:3543: found /usr/bin/gcc configure:3554: result: gcc configure:3783: checking for C compiler version configure:3792: gcc --version >&5 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 configure:3803: $? = 0 configure:3792: gcc -v >&5 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix configure:3803: $? = 0 configure:3792: gcc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:3803: $? = 1 configure:3792: gcc -qversion >&5 clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: no input files configure:3803: $? = 1 configure:3823: checking whether the C compiler works configure:3845: gcc conftest.c >&5 configure:3849: $? = 0 configure:3897: result: yes configure:3900: checking for C compiler default output file name configure:3902: result: a.out configure:3908: checking for suffix of executables configure:3915: gcc -o conftest conftest.c >&5 configure:3919: $? = 0 configure:3941: result: configure:3963: checking whether we are cross compiling configure:3971: gcc -o conftest conftest.c >&5 configure:3975: $? = 0 configure:3982: ./conftest configure:3986: $? = 0 configure:4001: result: no configure:4006: checking for suffix of object files configure:4028: gcc -c conftest.c >&5 configure:4032: $? = 0 configure:4053: result: o configure:4057: checking whether we are using the GNU C compiler configure:4076: gcc -c conftest.c >&5 configure:4076: $? = 0 configure:4085: result: yes configure:4094: checking whether gcc accepts -g configure:4114: gcc -c -g conftest.c >&5 configure:4114: $? = 0 configure:4155: result: yes configure:4172: checking for gcc option to accept ISO C89 configure:4235: gcc -c -g -O2 conftest.c >&5 configure:4235: $? = 0 configure:4248: result: none needed configure:4273: checking whether gcc understands -c and -o together configure:4295: gcc -c conftest.c -o conftest2.o configure:4298: $? = 0 configure:4295: gcc -c conftest.c -o conftest2.o configure:4298: $? = 0 configure:4310: result: yes configure:4329: checking dependency style of gcc configure:4440: result: gcc3 configure:4455: checking for a sed that does not truncate output configure:4519: result: /usr/bin/sed configure:4537: checking for grep that handles long lines and -e configure:4595: result: /usr/bin/grep configure:4600: checking for egrep configure:4662: result: /usr/bin/grep -E configure:4667: checking for fgrep configure:4729: result: /usr/bin/grep -F configure:4764: checking for ld used by gcc configure:4831: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld configure:4838: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld configure:4853: result: no configure:4865: checking for BSD- or MS-compatible name lister (nm) configure:4919: result: /usr/bin/nm configure:5049: checking the name lister (/usr/bin/nm) interface configure:5056: gcc -c -g -O2 conftest.c >&5 configure:5059: /usr/bin/nm "conftest.o" configure:5062: output 0000000000000228 S _some_variable configure:5069: result: BSD nm configure:5072: checking whether ln -s works configure:5076: result: yes configure:5084: checking the maximum length of command line arguments configure:5215: result: 196608 configure:5263: checking how to convert x86_64-apple-darwin13.1.0 file names to x86_64-apple-darwin13.1.0 format configure:5303: result: func_convert_file_noop configure:5310: checking how to convert x86_64-apple-darwin13.1.0 file names to toolchain format configure:5330: result: func_convert_file_noop configure:5337: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files configure:5344: result: -r configure:5418: checking for objdump configure:5448: result: no configure:5477: checking how to recognize dependent libraries configure:5677: result: passall configure:5762: checking for dlltool configure:5792: result: no configure:5822: checking how to associate runtime and link libraries configure:5849: result: printf %s\n configure:5910: checking for ar configure:5926: found /usr/bin/ar configure:5937: result: ar configure:5974: checking for archiver @FILE support configure:5991: gcc -c -g -O2 conftest.c >&5 configure:5991: $? = 0 configure:5994: ar cru libconftest.a @conftest.lst >&5 ar: @conftest.lst: No such file or directory configure:5997: $? = 1 configure:6017: result: no configure:6075: checking for strip configure:6091: found /usr/bin/strip configure:6102: result: strip configure:6174: checking for ranlib configure:6190: found /usr/bin/ranlib configure:6201: result: ranlib configure:6303: checking command to parse /usr/bin/nm output from gcc object configure:6456: gcc -c -g -O2 conftest.c >&5 configure:6459: $? = 0 configure:6463: /usr/bin/nm conftest.o | sed -n -e 's/^. [ ][ ]_([_A-Za-z][A-Za-z0-9])$/\1 \2 \2/p' | sed '/ gnu_lto/d' > conftest.nm configure:6466: $? = 0 cannot find nm_testvar in conftest.nm configure:6456: gcc -c -g -O2 conftest.c >&5 configure:6459: $? = 0 configure:6463: /usr/bin/nm conftest.o | sed -n -e 's/^. [ ][ ]*_([_A-Za-z][A-Za-z0-9])$/\1 _\2 \2/p' | sed '/ gnu_lto/d' > conftest.nm configure:6466: $? = 0 configure:6532: gcc -o conftest -g -O2 conftest.c conftstm.o >&5 configure:6535: $? = 0 configure:6573: result: ok configure:6620: checking for sysroot configure:6650: result: no configure:6657: checking for a working dd configure:6695: result: /bin/dd configure:6699: checking how to truncate binary pipes configure:6714: result: /bin/dd bs=4096 count=1 configure:7043: checking for mt configure:7073: result: no configure:7093: checking if : is a manifest tool configure:7099: : '-?' configure:7107: result: no configure:7163: checking for dsymutil configure:7179: found /usr/bin/dsymutil configure:7190: result: dsymutil configure:7255: checking for nmedit configure:7271: found /usr/bin/nmedit configure:7282: result: nmedit configure:7347: checking for lipo configure:7363: found /usr/bin/lipo configure:7374: result: lipo configure:7439: checking for otool configure:7455: found /usr/bin/otool configure:7466: result: otool configure:7531: checking for otool64 configure:7561: result: no configure:7606: checking for -single_module linker flag gcc -g -O2 -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c configure:7639: result: yes configure:7642: checking for -exported_symbols_list linker flag configure:7662: gcc -o conftest -g -O2 -Wl,-exported_symbols_list,conftest.sym conftest.c >&5 configure:7662: $? = 0 configure:7672: result: yes configure:7675: checking for -force_load linker flag gcc -g -O2 -c -o conftest.o conftest.c ar cru libconftest.a conftest.o ranlib libconftest.a gcc -g -O2 -o conftest conftest.c -Wl,-force_load,./libconftest.a configure:7707: result: yes configure:7784: checking how to run the C preprocessor configure:7815: gcc -E conftest.c configure:7815: $? = 0 configure:7829: gcc -E conftest.c conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found

include

     ^

1 error generated. configure:7829: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "folly" | #define PACKAGE_TARNAME "folly" | #define PACKAGE_VERSION "48.0" | #define PACKAGE_STRING "folly 48.0" | #define PACKAGE_BUGREPORT "folly@fb.com" | #define PACKAGEURL "" | #define PACKAGE "folly" | #define VERSION "48.0" | / end confdefs.h. _/ | #include configure:7854: result: gcc -E configure:7874: gcc -E conftest.c configure:7874: $? = 0 configure:7888: gcc -E conftest.c conftest.c:11:10: fatal error: 'ac_nonexistent.h' file not found

include

     ^

1 error generated. configure:7888: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "folly" | #define PACKAGE_TARNAME "folly" | #define PACKAGE_VERSION "48.0" | #define PACKAGE_STRING "folly 48.0" | #define PACKAGE_BUGREPORT "folly@fb.com" | #define PACKAGEURL "" | #define PACKAGE "folly" | #define VERSION "48.0" | / end confdefs.h. _/ | #include configure:7917: checking for ANSI C header files configure:7937: gcc -c -g -O2 conftest.c >&5 configure:7937: $? = 0 configure:8010: gcc -o conftest -g -O2 conftest.c >&5 configure:8010: $? = 0 configure:8010: ./conftest configure:8010: $? = 0 configure:8021: result: yes configure:8034: checking for sys/types.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for sys/stat.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for stdlib.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for string.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for memory.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for strings.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for inttypes.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for stdint.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8034: checking for unistd.h configure:8034: gcc -c -g -O2 conftest.c >&5 configure:8034: $? = 0 configure:8034: result: yes configure:8048: checking for dlfcn.h configure:8048: gcc -c -g -O2 conftest.c >&5 configure:8048: $? = 0 configure:8048: result: yes configure:8304: checking for objdir configure:8319: result: .libs configure:8583: checking if gcc supports -fno-rtti -fno-exceptions configure:8601: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 configure:8605: $? = 0 configure:8618: result: yes configure:8976: checking for gcc option to produce PIC configure:8983: result: -fno-common -DPIC configure:8991: checking if gcc PIC flag -fno-common -DPIC works configure:9009: gcc -c -g -O2 -fno-common -DPIC -DPIC conftest.c >&5 configure:9013: $? = 0 configure:9026: result: yes configure:9055: checking if gcc static flag -static works configure:9083: result: no configure:9098: checking if gcc supports -c -o file.o configure:9119: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5 configure:9123: $? = 0 configure:9145: result: yes configure:9153: checking if gcc supports -c -o file.o configure:9200: result: yes configure:9233: checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries configure:10492: result: yes configure:10732: checking dynamic linker characteristics configure:11550: result: darwin13.1.0 dyld configure:11672: checking how to hardcode library paths into programs configure:11697: result: immediate configure:12245: checking whether stripping libraries is possible configure:12259: result: yes configure:12285: checking if libtool supports shared libraries configure:12287: result: yes configure:12290: checking whether to build shared libraries configure:12315: result: yes configure:12318: checking whether to build static libraries configure:12322: result: yes configure:12426: checking for g++ configure:12442: found /usr/bin/g++ configure:12453: result: g++ configure:12480: checking for C++ compiler version configure:12489: g++ --version >&5 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 configure:12500: $? = 0 configure:12489: g++ -v >&5 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix configure:12500: $? = 0 configure:12489: g++ -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:12500: $? = 1 configure:12489: g++ -qversion >&5 clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: no input files configure:12500: $? = 1 configure:12504: checking whether we are using the GNU C++ compiler configure:12523: g++ -c conftest.cpp >&5 configure:12523: $? = 0 configure:12532: result: yes configure:12541: checking whether g++ accepts -g configure:12561: g++ -c -g conftest.cpp >&5 configure:12561: $? = 0 configure:12602: result: yes configure:12627: checking dependency style of g++ configure:12738: result: gcc3 configure:12771: checking how to run the C++ preprocessor configure:12798: g++ -E conftest.cpp configure:12798: $? = 0 configure:12812: g++ -E conftest.cpp conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found

include

     ^

1 error generated. configure:12812: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "folly" | #define PACKAGE_TARNAME "folly" | #define PACKAGE_VERSION "48.0" | #define PACKAGE_STRING "folly 48.0" | #define PACKAGE_BUGREPORT "folly@fb.com" | #define PACKAGE_URL "" | #define PACKAGE "folly" | #define VERSION "48.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LTOBJDIR ".libs/" | / end confdefs.h. _/ | #include configure:12837: result: g++ -E configure:12857: g++ -E conftest.cpp configure:12857: $? = 0 configure:12871: g++ -E conftest.cpp conftest.cpp:23:10: fatal error: 'ac_nonexistent.h' file not found

include

     ^

1 error generated. configure:12871: $? = 1 configure: failed program was: | / confdefs.h / | #define PACKAGE_NAME "folly" | #define PACKAGE_TARNAME "folly" | #define PACKAGE_VERSION "48.0" | #define PACKAGE_STRING "folly 48.0" | #define PACKAGE_BUGREPORT "folly@fb.com" | #define PACKAGE_URL "" | #define PACKAGE "folly" | #define VERSION "48.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LTOBJDIR ".libs/" | / end confdefs.h. _/ | #include configure:13033: checking for ld used by g++ configure:13100: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld configure:13107: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld configure:13122: result: no configure:13177: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries configure:14250: result: yes configure:14286: g++ -c -g -O2 conftest.cpp >&5 configure:14289: $? = 0 configure:14770: checking for g++ option to produce PIC configure:14777: result: -fno-common -DPIC configure:14785: checking if g++ PIC flag -fno-common -DPIC works configure:14803: g++ -c -g -O2 -fno-common -DPIC -DPIC conftest.cpp >&5 configure:14807: $? = 0 configure:14820: result: yes configure:14843: checking if g++ static flag -static works configure:14871: result: no configure:14883: checking if g++ supports -c -o file.o configure:14904: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5 configure:14908: $? = 0 configure:14930: result: yes configure:14935: checking if g++ supports -c -o file.o configure:14982: result: yes configure:15012: checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries configure:15052: result: yes configure:15193: checking dynamic linker characteristics configure:15938: result: darwin13.1.0 dyld configure:16003: checking how to hardcode library paths into programs configure:16028: result: immediate configure:16116: checking for gcc configure:16143: result: gcc configure:16372: checking for C compiler version configure:16381: gcc --version >&5 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 configure:16392: $? = 0 configure:16381: gcc -v >&5 Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.1.0 Thread model: posix configure:16392: $? = 0 configure:16381: gcc -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:16392: $? = 1 configure:16381: gcc -qversion >&5 clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future clang: error: no input files configure:16392: $? = 1 configure:16396: checking whether we are using the GNU C compiler configure:16424: result: yes configure:16433: checking whether gcc accepts -g configure:16494: result: yes configure:16511: checking for gcc option to accept ISO C89 configure:16587: result: none needed configure:16612: checking whether gcc understands -c and -o together configure:16649: result: yes configure:16668: checking dependency style of gcc configure:16779: result: gcc3 configure:16795: checking if g++ supports C++0x features without additional flags configure:16832: g++ -c -g -O2 conftest.cpp >&5 conftest.cpp:27:21: error: expected parameter declarator static_assert(sizeof(int) <= sizeof(T), "not big enough"); ^ conftest.cpp:27:21: error: expected ')' conftest.cpp:27:20: note: to match this '(' static_assert(sizeof(int) <= sizeof(T), "not big enough"); ^ conftest.cpp:27:7: error: C++ requires a type specifier for all declarations static_assert(sizeof(int) <= sizeof(T), "not big enough"); ^~~~~ conftest.cpp:30:29: error: a space is required between consecutive right angle brackets (use '> >') typedef check<check> right_angle_brackets; ^~

conftest.cpp:33:5: error: unknown type name 'decltype' decltype(a) b; ^ conftest.cpp:33:16: error: expected ';' after top level declarator decltype(a) b; ^ ; conftest.cpp:37:15: warning: rvalue references are a C++11 extension [-Wc++11-extensions] check_type&& cr = static_cast<check_type&&>(c); ^ conftest.cpp:37:45: warning: rvalue references are a C++11 extension [-Wc++11-extensions] check_type&& cr = static_cast<check_type&&>(c); ^ 2 warnings and 6 errors generated. configure:16832: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "folly" #define PACKAGE_TARNAME "folly" #define PACKAGE_VERSION "48.0" #define PACKAGE_STRING "folly 48.0" #define PACKAGE_BUGREPORT "folly@fb.com" #define PACKAGE_URL "" #define PACKAGE "folly" #define VERSION "48.0" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" / end confdefs.h. /
template
struct check
{
static_assert(sizeof(int) <= sizeof(T), "not big enough");
};
typedef check<check> right_angle_brackets;
int a;
decltype(a) b;
typedef check check_type;
check_type c;
check_type&& cr = static_cast<check_type&&>(c);
int
main ()
{
;
return 0;
}
configure:16846: result: no configure:16849: checking if g++ supports C++0x features with -std=c++0x configure:16888: g++ -c -g -O2 -std=c++0x conftest.cpp >&5 configure:16888: $? = 0 configure:16903: result: yes configure:16906: checking if g++ supports C++0x features with -std=gnu++0x configure:16945: g++ -c -g -O2 -std=gnu++0x conftest.cpp >&5 configure:16945: $? = 0 configure:16960: result: yes configure:16990: checking for main in -lglog configure:17009: g++ -o conftest -std=gnu++0x -g -O2 conftest.cpp -lglog >&5 ld: library not found for -lglog clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:17009: $? = 1 configure: failed program was: / confdefs.h / #define PACKAGE_NAME "folly" #define PACKAGE_TARNAME "folly" #define PACKAGE_VERSION "48.0" #define PACKAGE_STRING "folly 48.0" #define PACKAGE_BUGREPORT "folly@fb.com" #define PACKAGE_URL "" #define PACKAGE "folly" #define VERSION "48.0" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define HAVE_STDCXX_0X /__/ /_ end confdefs.h. */
int
main ()
{
return main ();
;
return 0;
}

configure:17018: result: no configure:17028: error: Please install google-glog library

----------------

Cache variables.

----------------

ac_cv_build=x86_64-apple-darwin13.1.0 ac_cv_c_compiler_gnu=yes ac_cv_cxx_compile_cxx0x_cxx=yes ac_cv_cxx_compile_cxx0x_gxx=yes ac_cv_cxx_compile_cxx0x_native=no ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_LT_SYS_LIBRARY_PATH_set= ac_cv_env_LT_SYS_LIBRARY_PATH_value= ac_cv_env_PYTHON_set= ac_cv_env_PYTHON_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=x86_64-apple-darwin13.1.0 ac_cv_lib_glog_main=no ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_FGREP='/usr/bin/grep -F' ac_cv_path_GREP=/usr/bin/grep ac_cv_path_SED=/usr/bin/sed ac_cv_path_install='/usr/bin/install -c' ac_cv_path_lt_DD=/bin/dd ac_cv_prog_AWK=awk ac_cv_prog_CPP='gcc -E' ac_cv_prog_CXXCPP='g++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=gcc ac_cv_prog_ac_ct_CXX=g++ ac_cv_prog_ac_ct_DSYMUTIL=dsymutil ac_cv_prog_ac_ct_LIPO=lipo ac_cv_prog_ac_ct_NMEDIT=nmedit ac_cv_prog_ac_ct_OTOOL=otool ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89= ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_make_make_set=yes am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 am_cv_make_support_nested_variables=yes am_cv_prog_cc_c_o=yes lt_cv_apple_cc_single_mod=yes lt_cv_ar_at_file=no lt_cv_deplibs_check_method=pass_all lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file= lt_cv_ld_exported_symbols_list=yes lt_cv_ld_force_load=yes lt_cv_ld_reload_flag=-r lt_cv_nm_interface='BSD nm' lt_cv_objdir=.libs lt_cv_path_LD=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld lt_cv_path_LDCXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld lt_cv_path_NM=/usr/bin/nm lt_cv_path_mainfest_tool=no lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic='-fno-common -DPIC' lt_cv_prog_compiler_pic_CXX='-fno-common -DPIC' lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=yes lt_cv_prog_compiler_static_works=no lt_cv_prog_compiler_static_works_CXX=no lt_cv_prog_gnu_ld=no lt_cv_prog_gnu_ldcxx=no lt_cv_sharedlib_from_linklib_cmd='printf %s\n' lt_cv_sys_global_symbolpipe='sed -n -e '\''s/^. [ ][ ]([_A-Za-z][A-Za-z0-9])$/\1 _\2 \2/p'\'' | sed '\''/ gnu_lto/d'\''' lt_cv_sys_global_symbol_to_c_nameaddress='sed -n -e '\''s/^: (.) .$/ {"\1", (void ) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST] .* (.)$/ {"\1", (void ) &\1},/p'\''' lt_cv_sys_global_symbol_to_c_name_address_libprefix='sed -n -e '\''s/^: (.) ._$/ {"\1", (void ) 0},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST] .* (lib.)$/ {"\1", (void ) &\1},/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST] .* (.)$/ {"lib\1", (void ) &\1},/p'\''' lt_cv_sys_global_symbol_tocdecl='sed -n -e '\''s/^T . (.)$/extern int \1();/p'\'' -e '\''s/^[BCDEGRST][BCDEGRST] .* (.*)$/extern char \1;/p'\''' lt_cv_sys_global_symbol_to_import= lt_cv_sys_max_cmd_len=196608 lt_cv_to_host_file_cmd=func_convert_file_noop lt_cv_to_tool_file_cmd=func_convert_file_noop lt_cv_truncate_bin='/bin/dd bs=4096 count=1'

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_CPPFLAGS='' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_LDFLAGS='' AM_V='$(V)' AR='ar' AUTOCONF='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/missing autoconf' AUTOHEADER='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/missing autoheader' AUTOMAKE='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/missing automake-1.15' AWK='awk' BOOST_CONTEXT_LIB='' BOOST_CPPFLAGS='' BOOST_FILESYSTEM_LIB='' BOOST_LDFLAGS='' BOOST_REGEX_LIB='' BOOST_SYSTEM_LIB='' BOOST_THREAD_LIB='' CC='gcc' CCDEPMODE='depmode=gcc3' CFLAGS='-g -O2' CPP='gcc -E' CPPFLAGS='' CXX='g++' CXXCPP='g++ -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='-std=gnu++0x -g -O2' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' DLLTOOL='false' DSYMUTIL='dsymutil' DUMPBIN='' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' FGREP='/usr/bin/grep -F' GREP='/usr/bin/grep' HAVE_BITS_FUNCTEXCEPT_FALSE='' HAVE_BITS_FUNCTEXCEPT_TRUE='' HAVE_LINUX_FALSE='' HAVE_LINUX_TRUE='' HAVE_STD_THREAD_FALSE='' HAVE_STD_THREAD_TRUE='' HAVE_WEAK_SYMBOLS_FALSE='' HAVE_WEAK_SYMBOLS_TRUE='' HAVE_X86_64_FALSE='' HAVE_X86_64_TRUE='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld' LDFLAGS='' LIBOBJS='' LIBS='' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LIPO='lipo' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' LT_VERSION='48:0:0' MAKEINFO='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='build-aux/install-sh -c -d' NM='/usr/bin/nm' NMEDIT='nmedit' OBJDUMP='false' OBJEXT='o' OTOOL64=':' OTOOL='otool' PACKAGE='folly' PACKAGE_BUGREPORT='folly@fb.com' PACKAGE_NAME='folly' PACKAGE_STRING='folly 48.0' PACKAGE_TARNAME='folly' PACKAGE_URL='' PACKAGE_VERSION='48.0' PATH_SEPARATOR=':' PYTHON='' PYTHON_EXEC_PREFIX='' PYTHON_PLATFORM='' PYTHON_PREFIX='' PYTHON_VERSION='' RANLIB='ranlib' SED='/usr/bin/sed' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' VERSION='48.0' ac_ct_AR='ar' ac_ct_CC='gcc' ac_ct_CXX='g++' ac_ct_DUMPBIN='' amEXEEXT_FALSE='' am__EXEEXT_TRUE='' amfastdepCC_FALSE='#' amfastdepCC_TRUE='' am__fastdepCXX_FALSE='#' amfastdepCXX_TRUE='' aminclude='include' amisrc='' amleading_dot='.' am__nodep='_no' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' amuntar='$${TAR-tar} xf -' bindir='${exec_prefix}/bin' build='x86_64-apple-darwin13.1.0' build_alias='' build_cpu='x86_64' build_os='darwin13.1.0' build_vendor='apple' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host='x86_64-apple-darwin13.1.0' host_alias='' host_cpu='x86_64' host_os='darwin13.1.0' host_vendor='apple' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='${SHELL} /Users/yh/work/server/folly-master/folly/build-aux/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' pkgpyexecdir='' pkgpythondir='' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' pyexecdir='' pythondir='' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias=''

-----------

confdefs.h.

-----------

/* confdefs.h _/

define PACKAGE_NAME "folly"

define PACKAGE_TARNAME "folly"

define PACKAGE_VERSION "48.0"

define PACKAGE_STRING "folly 48.0"

define PACKAGE_BUGREPORT "folly@fb.com"

define PACKAGE_URL ""

define PACKAGE "folly"

define VERSION "48.0"

define STDC_HEADERS 1

define HAVE_SYS_TYPES_H 1

define HAVE_SYS_STAT_H 1

define HAVE_STDLIB_H 1

define HAVE_STRING_H 1

define HAVE_MEMORY_H 1

define HAVE_STRINGS_H 1

define HAVE_INTTYPES_H 1

define HAVE_STDINT_H 1

define HAVE_UNISTD_H 1

define HAVE_DLFCN_H 1

define LT_OBJDIR ".libs/"

define HAVE_STDCXX0X /*/

configure: exit 1

fugalh commented 9 years ago

The error is straightforward: the linker can't link with libglog. That bootstrap script installs glog from homebrew, so it may be that your homebrew configuration is nonstandard? You might also try checking if upgrading to the latest version of glog with homebrew helps.

oujl commented 9 years ago

i update the newest version for home-brew , and glog, but this issue still occur ,

amckinley commented 9 years ago

@sgolemon Removing the offending checks from configure.ac as a workaround is working for me, but the latest folly release still has this problem.

zmoon111 commented 8 years ago

i do these things , and master code work fine to me (1)re-install double-version from source code (2)./configure CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" instead of ./configure

zmoon111 commented 8 years ago

mac os can install in one script brew install folly

sathipkr commented 8 years ago

Hi I was trying to upgrade folly from version 42 to the latest one .I didn't upgrade the glog and gflags libraries.When I try to run configure on the folly library I see the same error.I am wondering if this is because the the glog and gflags libraries are slightly out of date. In short how do I know the version of glog and gflags to be used with a particular version of folly ?