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

Ubuntu 18.04 build failing #301

Closed
adamlazz opened this issue Jan 18, 2019 · 1 comment
Closed

Ubuntu 18.04 build failing #301

adamlazz opened this issue Jan 18, 2019 · 1 comment

Comments

@adamlazz
Copy link

Hello, does anyone have experience building mcrouter for Ubuntu 18.04.1 LTS (Bionic Beaver)?

I cloned this repo and adapted the packaging/xenial/dockerbuild directory to use a bionic base image. The build fails (log below). Please let me know if I can provide any more helpful details.

macOS 10.14.2
Docker version 18.09.0, build 4d60db4

Sending build context to Docker daemon  4.229MB

Step 1/42 : from ubuntu:bionic
 ---> ea4c82dcd15a
Step 2/42 : MAINTAINER Ori Shalev (orish@fb.com)
 ---> Using cache
 ---> 46d39d01f6b4
Step 3/42 : RUN apt-get update && apt-get install -y debhelper cmake g++ libdouble-conversion-dev libgoogle-glog-dev libevent-dev libssl-dev libboost-all-dev libgtest-dev devscripts autoconf git liblzma-dev libdwarf-dev libaio-dev liburcu-dev libbz2-dev libiberty-dev google-mock ragel libunwind-dev libsodium-dev bison flex
 ---> Using cache
 ---> 2cb399b24176
Step 4/42 : ARG follycommit=v2018.12.17.00
 ---> Using cache
 ---> a070af54a0f3
Step 5/42 : ARG fizzcommit=$follycommit
 ---> Using cache
 ---> 33fd13806feb
Step 6/42 : ARG wanglecommit=v2018.12.10.00
 ---> Using cache
 ---> c866ad950e52
Step 7/42 : ARG thriftcommit=$follycommit
 ---> Using cache
 ---> 8f609e591235
Step 8/42 : ARG zstdcommit=v1.3.7
 ---> Using cache
 ---> 3bd6037c68b8
Step 9/42 : WORKDIR /root
 ---> Using cache
 ---> 0573c751e255
Step 10/42 : RUN git clone https://github.com/facebook/zstd.git && cd zstd && git checkout $zstdcommit
 ---> Using cache
 ---> 0267dc5b6f03
Step 11/42 : WORKDIR /root/zstd
 ---> Using cache
 ---> 85fa9ea07f7b
Step 12/42 : RUN make install
 ---> Using cache
 ---> eaa1fb0b2914
Step 13/42 : WORKDIR /root
 ---> Using cache
 ---> 595375027e7c
Step 14/42 : RUN git clone https://github.com/facebook/folly.git && cd folly && git checkout $follycommit && git config user.email "fake@fake.com" && git revert --no-edit 41128f794585a0b927df12bebe86107cdcd4a700
 ---> Using cache
 ---> 805a2bb7ae06
Step 15/42 : WORKDIR /root/folly
 ---> Using cache
 ---> 934f277c1d4a
Step 16/42 : RUN cmake .
 ---> Using cache
 ---> 30b53d4a0093
Step 17/42 : RUN make install
 ---> Using cache
 ---> 115956ec4cba
Step 18/42 : WORKDIR /root
 ---> Using cache
 ---> 8e8fa7dafcb5
Step 19/42 : RUN git clone https://github.com/facebookincubator/fizz.git && cd fizz && git checkout $fizzcommit
 ---> Using cache
 ---> 6905e6eb668d
Step 20/42 : WORKDIR /root/fizz/fizz
 ---> Using cache
 ---> c8cb7296141f
Step 21/42 : RUN cmake .
 ---> Using cache
 ---> 3b0dc9f6bca4
Step 22/42 : RUN make install
 ---> Running in daf9b6a93cbc
Scanning dependencies of target fizz
[  0%] Building CXX object CMakeFiles/fizz.dir/crypto/Utils.cpp.o
[  1%] Building CXX object CMakeFiles/fizz.dir/crypto/exchange/X25519.cpp.o
[  1%] Building CXX object CMakeFiles/fizz.dir/crypto/aead/OpenSSLEVPCipher.cpp.o
[  1%] Building CXX object CMakeFiles/fizz.dir/crypto/aead/IOBufUtil.cpp.o
[  2%] Building CXX object CMakeFiles/fizz.dir/crypto/signature/Signature.cpp.o
[  2%] Building CXX object CMakeFiles/fizz.dir/crypto/Sha256.cpp.o
[  3%] Building CXX object CMakeFiles/fizz.dir/crypto/Sha384.cpp.o
[  3%] Building CXX object CMakeFiles/fizz.dir/crypto/openssl/OpenSSLKeyUtils.cpp.o
[  4%] Building CXX object CMakeFiles/fizz.dir/record/Types.cpp.o
[  4%] Building CXX object CMakeFiles/fizz.dir/record/RecordLayer.cpp.o
[  5%] Building CXX object CMakeFiles/fizz.dir/record/EncryptedRecordLayer.cpp.o
[  5%] Building CXX object CMakeFiles/fizz.dir/record/PlaintextRecordLayer.cpp.o
[  6%] Building CXX object CMakeFiles/fizz.dir/server/ServerProtocol.cpp.o
�[91m/root/fizz/fizz/server/ServerProtocol.cpp: In lambda function:
/root/fizz/fizz/server/ServerProtocol.cpp:202:16: warning: 'typename std::enable_if<(folly::is_invocable<F, folly::exception_wrapper>::value && (! typename folly::futures::detail::Extract<F>::ReturnsFuture:: value)), folly::Future<T> >::type folly::Future<T>::onError(F&&) && [with F = fizz::server::detail::processEvent(const fizz::server::State&, fizz::Param)::<lambda(folly::Future<folly::small_vector<boost::variant<fizz::DeliverAppData, fizz::WriteToSocket, fizz::server::ReportHandshakeSuccess, fizz::server::ReportEarlyHandshakeSuccess, fizz::ReportError, folly::Function<void(fizz::server::State&)>, fizz::WaitForData, fizz::server::AttemptVersionFallback>, 4> >&)>::<lambda(folly::exception_wrapper)>; T = folly::small_vector<boost::variant<fizz::DeliverAppData, fizz::WriteToSocket, fizz::server::ReportHandshakeSuccess, fizz::server::ReportEarlyHandshakeSuccess, fizz::ReportError, folly::Function<void(fizz::server::State&)>, fizz::WaitForData, fizz::server::AttemptVersionFallback>, 4>; typename std::enable_if<(folly::is_invocable<F, folly::exception_wrapper>::value && (! typename folly::futures::detail::Extract<F>::ReturnsFuture:: value)), folly::Future<T> >::type = folly::Future<folly::small_vector<boost::variant<fizz::DeliverAppData, fizz::WriteToSocket, fizz::server::ReportHandshakeSuccess, fizz::server::ReportEarlyHandshakeSuccess, fizz::ReportError, folly::Function<void(fizz::server::State&)>, fizz::WaitForData, fizz::server::AttemptVersionFallback>, 4> >]' is deprecated: onError loses the attached executor and is weakly typed. Please move to thenError instead. [-Wdeprecated-declarations]
               });
                ^
In file included from /usr/local/include/folly/futures/Future.h:2110:0,
                 from /root/fizz/fizz/server/ServerProtocol.h:11,
                 from /root/fizz/fizz/server/ServerProtocol.cpp:9:
/usr/local/include/folly/futures/Future-inl.h:1274:1: note: declared here
 Future<T>::onError(F&& func) && {
 ^~~~~~~~~
�[0m[  6%] Building CXX object CMakeFiles/fizz.dir/server/CertManager.cpp.o
[  7%] Building CXX object CMakeFiles/fizz.dir/server/State.cpp.o
[  7%] Building CXX object CMakeFiles/fizz.dir/server/FizzServer.cpp.o
[  8%] Building CXX object CMakeFiles/fizz.dir/server/TicketCodec.cpp.o
[  8%] Building CXX object CMakeFiles/fizz.dir/server/CookieCipher.cpp.o
[  9%] Building CXX object CMakeFiles/fizz.dir/server/ReplayCache.cpp.o
[  9%] Building CXX object CMakeFiles/fizz.dir/server/SlidingBloomReplayCache.cpp.o
[ 10%] Building CXX object CMakeFiles/fizz.dir/protocol/AsyncFizzBase.cpp.o
[ 10%] Building CXX object CMakeFiles/fizz.dir/protocol/Types.cpp.o
[ 11%] Building CXX object CMakeFiles/fizz.dir/protocol/Exporter.cpp.o
[ 11%] Building CXX object CMakeFiles/fizz.dir/protocol/DefaultCertificateVerifier.cpp.o
[ 12%] Building CXX object CMakeFiles/fizz.dir/protocol/Events.cpp.o
[ 12%] Building CXX object CMakeFiles/fizz.dir/protocol/KeyScheduler.cpp.o
[ 13%] Building CXX object CMakeFiles/fizz.dir/protocol/Certificate.cpp.o
[ 13%] Building CXX object CMakeFiles/fizz.dir/protocol/CertDecompressionManager.cpp.o
[ 14%] Building CXX object CMakeFiles/fizz.dir/protocol/ZlibCertificateCompressor.cpp.o
[ 14%] Building CXX object CMakeFiles/fizz.dir/protocol/ZlibCertificateDecompressor.cpp.o
[ 15%] Building CXX object CMakeFiles/fizz.dir/extensions/exportedauth/ExportedAuthenticator.cpp.o
[ 15%] Building CXX object CMakeFiles/fizz.dir/extensions/secretlogging/LoggingKeyScheduler.cpp.o
[ 16%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/Types.cpp.o
[ 16%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/TokenBindingConstructor.cpp.o
[ 17%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/TokenBindingClientExtension.cpp.o
[ 17%] Building CXX object CMakeFiles/fizz.dir/extensions/tokenbinding/Validator.cpp.o
[ 18%] Building CXX object CMakeFiles/fizz.dir/client/State.cpp.o
[ 18%] Building CXX object CMakeFiles/fizz.dir/client/ClientProtocol.cpp.o
[ 19%] Building CXX object CMakeFiles/fizz.dir/client/SynchronizedLruPskCache.cpp.o
[ 19%] Building CXX object CMakeFiles/fizz.dir/client/EarlyDataRejectionPolicy.cpp.o
[ 20%] Building CXX object CMakeFiles/fizz.dir/util/FizzUtil.cpp.o
[ 20%] Linking CXX static library lib/libfizz.a
[ 20%] Built target fizz
Scanning dependencies of target FizzTool
[ 20%] Building CXX object CMakeFiles/FizzTool.dir/tool/Main.cpp.o
[ 21%] Building CXX object CMakeFiles/FizzTool.dir/tool/FizzClientCommand.cpp.o
�[91m/root/fizz/fizz/tool/FizzClientCommand.cpp: In member function 'virtual void fizz::tool::{anonymous}::Connection::readDataAvailable(size_t)':
/root/fizz/fizz/tool/FizzClientCommand.cpp:114:65: warning: throw will always call terminate() [-Wterminate]
     throw std::runtime_error("readDataAvailable not implemented");
                                                                 ^
�[0m[ 21%] Building CXX object CMakeFiles/FizzTool.dir/tool/FizzCommandCommon.cpp.o
[ 22%] Building CXX object CMakeFiles/FizzTool.dir/tool/FizzServerCommand.cpp.o
[ 22%] Linking CXX executable bin/fizz
[ 22%] Built target FizzTool
Scanning dependencies of target fizz_test_support
[ 23%] Building CXX object CMakeFiles/fizz_test_support.dir/crypto/aead/test/TestUtil.cpp.o
[ 23%] Building CXX object CMakeFiles/fizz_test_support.dir/crypto/test/TestUtil.cpp.o
[ 24%] Linking CXX static library lib/libfizz_test_support.a
[ 24%] Built target fizz_test_support
Scanning dependencies of target gtest
[ 24%] Creating directories for 'gtest'
[ 25%] Performing download step (git clone) for 'gtest'
-- gtest download command succeeded.  See also /root/fizz/fizz/gtest/src/gtest-stamp/gtest-download-*.log
[ 26%] No patch step for 'gtest'
[ 26%] Performing update step for 'gtest'
-- gtest update command succeeded.  See also /root/fizz/fizz/gtest/src/gtest-stamp/gtest-update-*.log
[ 26%] Performing configure step for 'gtest'
-- gtest configure command succeeded.  See also /root/fizz/fizz/gtest/src/gtest-stamp/gtest-configure-*.log
[ 27%] Performing build step for 'gtest'
-- gtest build command succeeded.  See also /root/fizz/fizz/gtest/src/gtest-stamp/gtest-build-*.log
[ 28%] No install step for 'gtest'
[ 28%] Completed 'gtest'
[ 28%] Built target gtest
Scanning dependencies of target AsyncFizzBaseTest
[ 29%] Building CXX object CMakeFiles/AsyncFizzBaseTest.dir/test/AsyncFizzBaseTest.cpp.o
[ 29%] Building CXX object CMakeFiles/AsyncFizzBaseTest.dir/test/CMakeTestMain.cpp.o
[ 30%] Linking CXX executable bin/AsyncFizzBaseTest
[ 30%] Built target AsyncFizzBaseTest
Scanning dependencies of target FizzUtilTest
[ 31%] Building CXX object CMakeFiles/FizzUtilTest.dir/util/test/FizzUtilTest.cpp.o
[ 31%] Building CXX object CMakeFiles/FizzUtilTest.dir/test/CMakeTestMain.cpp.o
[ 32%] Linking CXX executable bin/FizzUtilTest
[ 32%] Built target FizzUtilTest
Scanning dependencies of target AeadCookieCipherTest
[ 32%] Building CXX object CMakeFiles/AeadCookieCipherTest.dir/server/test/AeadCookieCipherTest.cpp.o
[ 32%] Building CXX object CMakeFiles/AeadCookieCipherTest.dir/test/CMakeTestMain.cpp.o
[ 33%] Linking CXX executable bin/AeadCookieCipherTest
[ 33%] Built target AeadCookieCipherTest
Scanning dependencies of target AsyncFizzServerTest
[ 34%] Building CXX object CMakeFiles/AsyncFizzServerTest.dir/server/test/AsyncFizzServerTest.cpp.o
[ 34%] Building CXX object CMakeFiles/AsyncFizzServerTest.dir/test/CMakeTestMain.cpp.o
[ 35%] Linking CXX executable bin/AsyncFizzServerTest
[ 35%] Built target AsyncFizzServerTest
Scanning dependencies of target DualTicketCipherTest
[ 35%] Building CXX object CMakeFiles/DualTicketCipherTest.dir/server/test/DualTicketCipherTest.cpp.o
[ 36%] Building CXX object CMakeFiles/DualTicketCipherTest.dir/test/CMakeTestMain.cpp.o
[ 36%] Linking CXX executable bin/DualTicketCipherTest
[ 36%] Built target DualTicketCipherTest
Scanning dependencies of target PlaintextRecordTest
[ 36%] Building CXX object CMakeFiles/PlaintextRecordTest.dir/record/test/PlaintextRecordTest.cpp.o
[ 37%] Building CXX object CMakeFiles/PlaintextRecordTest.dir/test/CMakeTestMain.cpp.o
[ 37%] Linking CXX executable bin/PlaintextRecordTest
[ 37%] Built target PlaintextRecordTest
Scanning dependencies of target KeyDerivationTest
[ 38%] Building CXX object CMakeFiles/KeyDerivationTest.dir/crypto/test/KeyDerivationTest.cpp.o
[ 38%] Building CXX object CMakeFiles/KeyDerivationTest.dir/test/CMakeTestMain.cpp.o
[ 39%] Linking CXX executable bin/KeyDerivationTest
[ 39%] Built target KeyDerivationTest
Scanning dependencies of target TokenBindingConstructorTest
[ 39%] Building CXX object CMakeFiles/TokenBindingConstructorTest.dir/extensions/tokenbinding/test/TokenBindingConstructorTest.cpp.o
[ 40%] Building CXX object CMakeFiles/TokenBindingConstructorTest.dir/test/CMakeTestMain.cpp.o
[ 40%] Linking CXX executable bin/TokenBindingConstructorTest
[ 40%] Built target TokenBindingConstructorTest
Scanning dependencies of target HandshakeContextTest
[ 40%] Building CXX object CMakeFiles/HandshakeContextTest.dir/protocol/test/HandshakeContextTest.cpp.o
[ 41%] Building CXX object CMakeFiles/HandshakeContextTest.dir/test/CMakeTestMain.cpp.o
[ 41%] Linking CXX executable bin/HandshakeContextTest
[ 41%] Built target HandshakeContextTest
Scanning dependencies of target X25519KeyExchangeTest
[ 41%] Building CXX object CMakeFiles/X25519KeyExchangeTest.dir/crypto/exchange/test/X25519KeyExchangeTest.cpp.o
[ 42%] Building CXX object CMakeFiles/X25519KeyExchangeTest.dir/test/CMakeTestMain.cpp.o
[ 42%] Linking CXX executable bin/X25519KeyExchangeTest
[ 42%] Built target X25519KeyExchangeTest
Scanning dependencies of target TokenBindingTest
[ 42%] Building CXX object CMakeFiles/TokenBindingTest.dir/extensions/tokenbinding/test/TokenBindingTest.cpp.o
[ 43%] Building CXX object CMakeFiles/TokenBindingTest.dir/test/CMakeTestMain.cpp.o
[ 43%] Linking CXX executable bin/TokenBindingTest
[ 43%] Built target TokenBindingTest
Scanning dependencies of target ExtensionsTest
[ 44%] Building CXX object CMakeFiles/ExtensionsTest.dir/record/test/ExtensionsTest.cpp.o
[ 44%] Building CXX object CMakeFiles/ExtensionsTest.dir/test/CMakeTestMain.cpp.o
[ 44%] Linking CXX executable bin/ExtensionsTest
[ 44%] Built target ExtensionsTest
Scanning dependencies of target FizzServerTest
[ 45%] Building CXX object CMakeFiles/FizzServerTest.dir/server/test/FizzServerTest.cpp.o
[ 45%] Building CXX object CMakeFiles/FizzServerTest.dir/test/CMakeTestMain.cpp.o
[ 46%] Linking CXX executable bin/FizzServerTest
�[91mcollect2: error: ld returned 1 exit status
�[0m�[91mmake[2]: *** [bin/FizzServerTest] Error 1
make[1]: *** [CMakeFiles/FizzServerTest.dir/all] Error 2
�[0mCMakeFiles/FizzServerTest.dir/build.make:152: recipe for target 'bin/FizzServerTest' failed
CMakeFiles/Makefile2:574: recipe for target 'CMakeFiles/FizzServerTest.dir/all' failed
Makefile:140: recipe for target 'all' failed
�[91mmake: *** [all] Error 2
�[0m
@adamlazz
Copy link
Author

adamlazz commented Feb 4, 2019

Waiting patiently on #305 😃

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

No branches or pull requests

1 participant