GithubHelp home page GithubHelp logo

Compile Error about openr HOT 15 CLOSED

facebook avatar facebook commented on April 25, 2024
Compile Error

from openr.

Comments (15)

bodleytunes avatar bodleytunes commented on April 25, 2024 1

I'm trying again on a vm with more memory... will report back.

from openr.

saifhhasan avatar saifhhasan commented on April 25, 2024

Hello @bodleytunes .. It seems that you are using newer gcc version to compile the code. We are not there yet but I hope to take out those error over the weekend.

Meanwhile Can you add -Wno-terminate to CXXFLAGS and try to compile the code as a work-around for quick build?

Example:
https://github.com/facebook/openr/blob/master/openr/CMakeLists.txt#L6

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Ok will give it a try, cheers 👍

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Hi Tried that and now get this:

image

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

depbase=echo futures/Future.lo | sed 's|[^/]*$|.deps/&|;s|.lo$||';\ /bin/bash ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/include -std=gnu++1y -g -O2 -MT futures/Future.lo -MD -MP -MF $depbase.Tpo -c -o futures/Future.lo futures/Future.cpp &&\ mv -f $depbase.Tpo $depbase.Plo libtool: compile: g++ -DHAVE_CONFIG_H -I./.. -pthread -I/usr/include -std=gnu++1y -g -O2 -MT futures/Future.lo -MD -MP -MF futures/.deps/Future.Tpo -c futures/Future.cpp -fPIC -DPIC -o futures/.libs/Future.o g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions. Makefile:2156: recipe for target 'futures/Future.lo' failed make[2]: *** [futures/Future.lo] Error 1 make[2]: Leaving directory '/home/jon/openr/build/deps/folly/folly' Makefile:2275: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/jon/openr/build/deps/folly/folly' Makefile:1302: recipe for target 'all' failed make: *** [all] Error 2

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Added that flag in cmakelists.txt

image

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

OK got much further now but seems to have failed doing the tests, speicifically netlinksubscribertest:
:(

image

from openr.

saifhhasan avatar saifhhasan commented on April 25, 2024

This is great. You can now run and test OpenR on physical topology. We will soon provide Emulation tool to test in virtual topology (but it can take several weeks before it will be out ... checkout docs/Emulator.md)

Can you please provide me with what went wrong on netlink-susbcriber test by running it manually (it should be present in build directory). I will try to get it fixed.

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

I've attached the testing log file, let me know if this is the right one.

Cheers,
Jon.
tests.log

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Seems to be running now, I'm using the script to run it.

Are there any included SystemD unit files so it can run as a service?

Cheers,
Jon.

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Ah should have rtfm its in the runbook.md :)

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

Hi,

One more thing, logs seem to be peppered with these error messages, just wondering if this is something to be worried about.

Nov 20 08:26:27 hub2-proxhub2-prox openr[23957]: E1120 08:26:27.413861 23985 Fib.cpp:420] Failed to sync routeDb with switch FIB agent. Error: apache::thrift::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Connection refused Nov 20 08:26:27 hub2-proxhub2-prox openr[23957]: I1120 08:26:27.828816 23985 AsyncSocket.cpp:2143] AsyncSocket::handleConnect(this=0x7fc6a0002250, fd=130 host=[::1]:60100) exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused) Nov 20 08:26:27 hub2-proxhub2-prox openr[23957]: E1120 08:26:27.829002 23985 Fib.cpp:70] Failed to make thrift call to Switch Agent. Error: apache::thrift::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Connection refused Nov 20 08:26:28 hub2-proxhub2-prox openr[23957]: I1120 08:26:28.829386 23985 AsyncSocket.cpp:2143] AsyncSocket::handleConnect(this=0x7fc6a0002250, fd=130 host=[::1]:60100) exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused) Nov 20 08:26:28 hub2-proxhub2-prox openr[23957]: E1120 08:26:28.829690 23985 Fib.cpp:70] Failed to make thrift call to Switch Agent. Error: apache::thrift::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Connection refused Nov 20 08:26:29 hub2-proxhub2-prox openr[23957]: I1120 08:26:29.829759 23985 AsyncSocket.cpp:2143] AsyncSocket::handleConnect(this=0x7fc6a0002250, fd=130 host=[::1]:60100) exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused) Nov 20 08:26:29 hub2-proxhub2-prox openr[23957]: E1120 08:26:29.830052 23985 Fib.cpp:70] Failed to make thrift call to Switch Agent. Error: apache::thrift::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Connection refused Nov 20 08:26:30 hub2-proxhub2-prox openr[23957]: I1120 08:26:30.830761 23985 AsyncSocket.cpp:2143] AsyncSocket::handleConnect(this=0x7fc6a0002250, fd=130 host=[::1]:60100) exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused) Nov 20 08:26:30 hub2-proxhub2-prox openr[23957]: E1120 08:26:30.831017 23985 Fib.cpp:70] Failed to make thrift call to Switch Agent. Error: apache::thrift::transport::TTransportException: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused): Connection refused Nov 20 08:26:31 hub2-proxhub2-prox openr[23957]: I1120 08:26:31.509306 23985 Fib.cpp:371] Syncing latest routeDb with fib-agent ... Nov 20 08:26:31 hub2-proxhub2-prox openr[23957]: I1120 08:26:31.509865 23985 AsyncSocket.cpp:2143] AsyncSocket::handleConnect(this=0x7fc6a0002250, fd=130 host=[::1]:60100) exception: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused)

Cheers,

Jon.

from openr.

saifhhasan avatar saifhhasan commented on April 25, 2024

The error log you see above is legit. You are running OpenR in non-dryrun mode (which means it will program routes and tries to talk to FibAgent) and expects FibService to be up and running.

OpenR by default comes with NetlinkFibHandler which implements FibService and programs routes into the linux. You can enable it explicitly via ENABLE_NETLINK_FIB_HANDLER option

I have internally submitted a patch to address build error you are getting as well as fixing netlink_subscriber_test unittest. Once landed I will close this issue.

from openr.

bodleytunes avatar bodleytunes commented on April 25, 2024

OK thanks I'll try that option.
Jon.

from openr.

saifhhasan avatar saifhhasan commented on April 25, 2024

Commit 2106401#diff-304d33f4448afe5d095ce2e660da325b will address the issue here.

from openr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.