Skip to content

build fails on ubuntu 17.10 #7

Closed

Description

@ohmer
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"

sudo bash ./build_openr.sh outputs

+ pushd .
~/openr/build/deps ~/openr/build/deps
+ [[ ! -e fbzmq ]]
+ git clone https://github.com/facebook/fbzmq.git
Cloning into 'fbzmq'...
remote: Counting objects: 8081, done.
remote: Compressing objects: 100% (132/132), done.
remote: Total 8081 (delta 67), reused 220 (delta 45), pack-reused 7836
Receiving objects: 100% (8081/8081), 830.73 KiB | 2.28 MiB/s, done.
Resolving deltas: 100% (2417/2417), done.
++ find_github_hash facebook/fbzmq
++ [[ 1 -eq 1 ]]
++ rev_file=github_hashes/facebook/fbzmq-rev.txt
++ [[ -f github_hashes/facebook/fbzmq-rev.txt ]]
++ head -1 github_hashes/facebook/fbzmq-rev.txt
++ awk '{ print $3 }'
+ rev=72d58988cc561c8b375a76ad451f21e3e0970349
+ cd fbzmq/fbzmq/build
+ [[ ! -z 72d58988cc561c8b375a76ad451f21e3e0970349 ]]
+ git checkout 72d58988cc561c8b375a76ad451f21e3e0970349
Note: checking out '72d58988cc561c8b375a76ad451f21e3e0970349'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 72d5898... Updating submodules
+ cmake '-DCMAKE_CXX_FLAGS=-Wno-sign-compare -Wno-unused-parameter' -DBUILD_SHARED_LIBS=OFF -DCMAKE_EXE_LINKER_FLAGS=-static -DCMAKE_FIND_LIBRARY_SUFFIXES=.a -DBUILD_TESTS=OFF ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Thrift will create the Object file : Monitor-cpp2-obj
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ohmer/openr/build/deps/fbzmq/fbzmq/build
+ make
Scanning dependencies of target Monitor-cpp2-target
[  5%] Generating Monitor files. Output: /home/ohmer/openr/build/deps/fbzmq/fbzmq/build/fbzmq/service/if
[  5%] Built target Monitor-cpp2-target
Scanning dependencies of target Monitor-cpp2-obj
[ 10%] Building CXX object CMakeFiles/Monitor-cpp2-obj.dir/fbzmq/service/if/gen-cpp2/Monitor_constants.cpp.o
[ 15%] Building CXX object CMakeFiles/Monitor-cpp2-obj.dir/fbzmq/service/if/gen-cpp2/Monitor_data.cpp.o
[ 21%] Building CXX object CMakeFiles/Monitor-cpp2-obj.dir/fbzmq/service/if/gen-cpp2/Monitor_types.cpp.o
[ 26%] Built target Monitor-cpp2-obj
Scanning dependencies of target fbzmq
[ 31%] Building CXX object CMakeFiles/fbzmq.dir/async/AsyncSignalHandler.cpp.o
In file included from /home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/AsyncSignalHandler.h:14:0,
                 from /home/ohmer/openr/build/deps/fbzmq/fbzmq/async/AsyncSignalHandler.cpp:10:
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h: In constructor ‘fbzmq::ZmqEventLoop::PollSubscription::PollSubscription(int, fbzmq::SocketCallback&&)’:
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:226:5: error: mangled name for ‘fbzmq::ZmqEventLoop::PollSubscription::PollSubscription(int, fbzmq::SocketCallback&&)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
     PollSubscription(int events, SocketCallback&& callback)
     ^~~~~~~~~~~~~~~~
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:226:5: error: mangled name for ‘fbzmq::ZmqEventLoop::PollSubscription::PollSubscription(int, fbzmq::SocketCallback&&)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h: In constructor ‘fbzmq::ZmqEventLoop::TimeoutEvent::TimeoutEvent(std::chrono::_V2::steady_clock::time_point, fbzmq::TimeoutCallback&&, int64_t)’:
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:241:5: error: mangled name for ‘fbzmq::ZmqEventLoop::TimeoutEvent::TimeoutEvent(std::chrono::_V2::steady_clock::time_point, fbzmq::TimeoutCallback&&, int64_t)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
     TimeoutEvent(
     ^~~~~~~~~~~~
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:241:5: error: mangled name for ‘fbzmq::ZmqEventLoop::TimeoutEvent::TimeoutEvent(std::chrono::_V2::steady_clock::time_point, fbzmq::TimeoutCallback&&, int64_t)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h: At global scope:
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:241:5: error: mangled name for ‘fbzmq::ZmqEventLoop::TimeoutEvent::TimeoutEvent(std::chrono::_V2::steady_clock::time_point, fbzmq::TimeoutCallback&&, int64_t)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:226:5: error: mangled name for ‘fbzmq::ZmqEventLoop::PollSubscription::PollSubscription(int, fbzmq::SocketCallback&&)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
     PollSubscription(int events, SocketCallback&& callback)
     ^~~~~~~~~~~~~~~~
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h: In constructor ‘fbzmq::AsyncSignalHandler::AsyncSignalHandler(fbzmq::ZmqEventLoop*)’:
/home/ohmer/openr/build/deps/fbzmq/fbzmq/../fbzmq/async/ZmqEventLoop.h:143:8: error: mangled name for ‘void fbzmq::ZmqEventLoop::addSocketFd(int, int, fbzmq::SocketCallback)’ will change in C++17 because the exception specification is part of a function type [-Werror=noexcept-type]
   void addSocketFd(int socketFd, int events, SocketCallback callback);
        ^~~~~~~~~~~
cc1plus: all warnings being treated as errors
CMakeFiles/fbzmq.dir/build.make:62: recipe for target 'CMakeFiles/fbzmq.dir/async/AsyncSignalHandler.cpp.o' failed
make[2]: *** [CMakeFiles/fbzmq.dir/async/AsyncSignalHandler.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/fbzmq.dir/all' failed
make[1]: *** [CMakeFiles/fbzmq.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Activity

  1. zhanleewo commented on Nov 27, 2017

    @zhanleewo
    Contributor

    add -Wno-noexception-type

  2. saifhhasan commented on Nov 28, 2017

    @saifhhasan
    Contributor

    This is not an openr issue. I am sending out fix by adding -Wno-noexcept-type compiler flag in fbzmq! In next release it should be fixed.

    Closing the task.

  3. ohmer commented on Nov 29, 2017

    @ohmer
    Author

    thanks !

  4. added a commit that references this issue on Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions