Skip to content

Instantly share code, notes, and snippets.

@darrenfu
Created September 18, 2022 18:48
Show Gist options
  • Save darrenfu/b9a5301ec0f603b630ae0d21cf8a8bc3 to your computer and use it in GitHub Desktop.
Save darrenfu/b9a5301ec0f603b630ae0d21cf8a8bc3 to your computer and use it in GitHub Desktop.
folly build failure
> github_checkout facebook/folly "${FB_OS_VERSION}"
> OPENSSL_ROOT_DIR=$(brew --prefix [email protected]) cmake_install -DBUILD_TESTS=OFF
[172/303] Building CXX object CMakeFiles/folly_base.dir/folly/io/async/AsyncSSLSocket.cpp.o
FAILED: CMakeFiles/folly_base.dir/folly/io/async/AsyncSSLSocket.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_CONTEXT_DYN_LINK -DBOOST_CONTEXT_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DFMT_LOCALE -DFOLLY_XLOG_STRIP_PREFIXES=\"/Users/dofu/git/velox/scripts/folly:/Users/dofu/git/velox/scripts/folly/_build\" -DGFLAGS_IS_A_DLL=0 -D_GNU_SOURCE -D_REENTRANT -I/Users/dofu/git/velox/scripts/folly -I/Users/dofu/git/velox/scripts/folly/_build -I/opt/homebrew/include -I/usr/local/include -I/opt/homebrew/opt/[email protected]/include -mavx2 -mfma -mavx -mf16c -mlzcnt -std=c++17 -mbmi2 -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk -fPIC -g -std=gnu++1z -finput-charset=UTF-8 -fsigned-char -Wall -Wno-deprecated -Wno-deprecated-declarations -Wno-sign-compare -Wno-unused -Wuninitialized -Wunused-label -Wunused-result -Wno-noexcept-type -Wno-nullability-completeness -Wno-inconsistent-missing-override -faligned-new -std=gnu++17 -MD -MT CMakeFiles/folly_base.dir/folly/io/async/AsyncSSLSocket.cpp.o -MF CMakeFiles/folly_base.dir/folly/io/async/AsyncSSLSocket.cpp.o.d -o CMakeFiles/folly_base.dir/folly/io/async/AsyncSSLSocket.cpp.o -c /Users/dofu/git/velox/scripts/folly/folly/io/async/AsyncSSLSocket.cpp
clang: warning: argument unused during compilation: '-mavx2' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mfma' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mavx' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mf16c' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mlzcnt' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-mbmi2' [-Wunused-command-line-argument]
In file included from /Users/dofu/git/velox/scripts/folly/folly/io/async/AsyncSSLSocket.cpp:17:
In file included from /Users/dofu/git/velox/scripts/folly/folly/io/async/AsyncSSLSocket.h:21:
In file included from /Users/dofu/git/velox/scripts/folly/folly/Optional.h:67:
In file included from /Users/dofu/git/velox/scripts/folly/folly/Portability.h:21:
In file included from /Users/dofu/git/velox/scripts/folly/folly/CPortability.h:22:
In file included from /Users/dofu/git/velox/scripts/folly/folly/portability/Config.h:20:
/Users/dofu/git/velox/scripts/folly/_build/folly/folly-config.h:22:34: warning: 'TARGET_OS_SIMULATOR' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_]
(TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR || TARGET_OS_IPHONE))
^
/Users/dofu/git/velox/scripts/folly/_build/folly/folly-config.h:22:57: warning: 'TARGET_OS_IPHONE' is not defined, evaluates to 0 [-Wundef-prefix=TARGET_OS_]
(TARGET_IPHONE_SIMULATOR || TARGET_OS_SIMULATOR || TARGET_OS_IPHONE))
^
/Users/dofu/git/velox/scripts/folly/folly/io/async/AsyncSSLSocket.cpp:451:45: error: use of undeclared identifier 'SSL_get_extms_support'
if (getSSLVersion() == TLS1_2_VERSION && !SSL_get_extms_support(ssl_.get())) {
^
2 warnings and 1 error generated.
...
ninja: build stopped: subcommand failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment