Hi
I have been able to build envoy using the docker approach - but when I try using the direct approach with bazel I get the following error:
ERROR: .../envoy/source/exe/BUILD:17:1: Linking of rule '//source/exe:envoy-static' failed (Exit 1).
/usr/bin/ld.gold: error: cannot find -lstdc++
followed by many undefined reference errors related to std.
I've checked and libstdc++ is installed:
[root@localhost envoy]# dnf info libstdc++
Failed to synchronize cache for repo 'dockerrepo', disabling.
Last metadata expiration check: 0:14:27 ago on Fri 25 Aug 2017 14:14:12 BST.
Installed Packages
Name : libstdc++
Version : 7.1.1
Release : 3.fc26
Arch : x86_64
Size : 1.9 M
Source : gcc-7.1.1-3.fc26.src.rpm
Repo : @System
From repo : @commandline
Summary : GNU Standard C++ Library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The libstdc++ package contains a rewritten standard compliant GCC Standard
: C++ Library.
Available Packages
Name : libstdc++
Version : 7.1.1
Release : 3.fc26
Arch : i686
Size : 493 k
Source : gcc-7.1.1-3.fc26.src.rpm
Repo : fedora
Summary : GNU Standard C++ Library
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Description : The libstdc++ package contains a rewritten standard compliant GCC Standard
: C++ Library.
Using 'locate' I found a few locations as well as others related to docker overlays etc:
/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/7/libstdc++fs.a
/usr/lib/gcc/x86_64-redhat-linux/7/32/libstdc++.a
/usr/lib/gcc/x86_64-redhat-linux/7/32/libstdc++.so
/usr/lib/gcc/x86_64-redhat-linux/7/32/libstdc++fs.a
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.24
I tried setting LD_LIBRARY_PATH to /usr/lib64 and /usr/lib/gcc/x86_64-redhat-linux/7 but without any success.
Anyone else had this problem and can provide tips on how to fix?
Thanks in advance.