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

[BUG] #309

Closed
mnshrr opened this issue May 29, 2020 · 5 comments
Closed

[BUG] #309

mnshrr opened this issue May 29, 2020 · 5 comments
Labels
bug Something isn't working good first issue Good for newcomers invalid This doesn't seem right issue/inactive

Comments

@mnshrr
Copy link

mnshrr commented May 29, 2020

"make -j $(getconf _NPROCESSORS_ONLN)" failed with This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

Describe the bug

"make -j $(getconf _NPROCESSORS_ONLN)" failed with attached error
part of error:
[ 16%] Building CXX object src/libs/bcc/src/cc/CMakeFiles/bcc-loader-static.dir/bcc_syms.cc.o
Scanning dependencies of target xpath
[ 16%] Building CXX object src/polycubed/src/server/Parser/CMakeFiles/xpath.dir/XPathParserDriver.cpp.o
In file included from /usr/include/c++/5/typeindex:35:0,
from /home/ebpf/eBPF/polycube/src/polycubed/src/server/Parser/../Resources/Body/ListKey.h:22,
from /home/ebpf/eBPF/polycube/src/polycubed/src/server/Parser/XPathParserDriver.h:21,
from /home/ebpf/eBPF/polycube/src/polycubed/src/server/Parser/XPathParserDriver.cpp:16:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support
^ [polycube make error.txt](https://github.com/polycube-network/polycube/files/4699749/polycube.make.error.txt)

To Reproduce

Follow the steps for installation here: https://polycube-network.readthedocs.io/en/latest/installation.html

Expected behavior

Make complete with no error

Please tell us about your environment:

Environment :

  1. OS details: cat /etc/*-release
    root@ebpf-VirtualBox:/etc# cat /etc/*-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=16.04
    DISTRIB_CODENAME=xenial
    DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"
    NAME="Ubuntu"
    VERSION="16.04.6 LTS (Xenial Xerus)"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 16.04.6 LTS"
    VERSION_ID="16.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
    VERSION_CODENAME=xenial
    UBUNTU_CODENAME=xenial
    root@ebpf-VirtualBox:/etc#

  2. Kernel details: uname -a
    root@ebpf-VirtualBox:/etc# uname -a
    Linux ebpf-VirtualBox 4.15.0-99-generic Fix pcn k8s #100~16.04.1-Ubuntu SMP Wed Apr 22 23:56:30 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    root@ebpf-VirtualBox:/etc#

  3. Polycube Version: polycubectl version
    installing

  4. Polycube Log: Attach the log from /var/log/polycube/polycubed.log

Additional context

Add any other context about the problem here.

@mnshrr mnshrr added the bug Something isn't working label May 29, 2020
@mauriciovasquezbernal
Copy link
Contributor

You're using a too old version of Ubuntu. The installation suggests 18.04 and IIUC 20.04 works too.

@acloudiator acloudiator added invalid This doesn't seem right good first issue Good for newcomers issue/inactive labels Jul 6, 2020
@acloudiator
Copy link
Contributor

@mnshrr Did you got a chance to validate it on Ubuntu 18.04 LTS or 20.04 LTS?

@mnshrr
Copy link
Author

mnshrr commented Jul 12, 2020

No, actually I still see error, this time:
polycube-0.9.0-rc$ ./scripts/install.sh
Use 'install.sh -h' to show advanced installation options.

Error during installation
SYSTEM INFO**************
kernel version: 5.4.0-33-generic
linux release info: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS" NAME="Ubuntu" VERSION="20.04 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
./scripts/install.sh: line 9: g++: command not found
g++ version:
gcc version: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
./scripts/install.sh: line 11: go: command not found
golang-version:
mehrnaz@mehrnaz:/Polycube/polycube-0.9.0-rc$

trying on linux version 20

@FedeParola
Copy link
Collaborator

Hi @mnshrr, I was able to install polycube v0.9.0 without problems on a fresh Ubuntu Server 20.04.1 installation.
Looking at the error you get it seems like a temporary problem, have you tried reinstalling later?

@mnshrr
Copy link
Author

mnshrr commented Oct 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers invalid This doesn't seem right issue/inactive
Projects
None yet
Development

No branches or pull requests

4 participants