You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
[ 67%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/CertificateOfMembership.cpp.o
In file included from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/simpleapi/include/prometheus/simpleapi.h:4,
from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/node/Metrics.cpp:13:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h: In constructor ‘prometheus::Family::Family(prometheus::Metric::Type, const std::string&, const std::string&, const Labels&)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:171:22: error: ‘invalid_argument’ is not a member of ‘std’
171 | throw std::invalid_argument("Invalid metric name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:15:1: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
14 | #include "prometheus/hash.h"
+++ |+#include <stdexcept>
15 |
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:176:24: error: ‘invalid_argument’ is not a member of ‘std’
176 | throw std::invalid_argument("Invalid label name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:176:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h: In member function ‘CustomMetric& prometheus::CustomFamily<CustomMetric>::Add(const prometheus::Family::Labels&, Args&& ...)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:307:24: error: ‘invalid_argument’ is not a member of ‘std’
307 | throw std::invalid_argument("Invalid label name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:307:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:309:24: error: ‘invalid_argument’ is not a member of ‘std’
309 | throw std::invalid_argument("Label name already present in constant labels");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:309:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
In file included from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/simpleapi/include/prometheus/simpleapi.h:5:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h: In member function ‘CustomFamily& prometheus::Registry::Add(const std::string&, const std::string&, const prometheus::Family::Labels&)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:92:26: error: ‘invalid_argument’ is not a member of ‘std’
92 | throw std::invalid_argument("Family name already exists with different type");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:1:1: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
+++ |+#include <stdexcept>
1 | #pragma once
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:97:30: error: ‘invalid_argument’ is not a member of ‘std’
97 | throw std::invalid_argument("Family name already exists");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:97:30: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:112:22: error: ‘invalid_argument’ is not a member of ‘std’
112 | throw std::invalid_argument("Family name already exists with different labels");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:112:22: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-everything’ may have been intended to silence earlier diagnostics
gmake[2]: *** [CMakeFiles/zto_obj.dir/build.make:244: CMakeFiles/zto_obj.dir/ext/ZeroTierOne/node/Metrics.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
[ 68%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/CertificateOfOwnership.cpp.o
[ 68%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/Identity.cpp.o
[ 68%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/IncomingPacket.cpp.o
[ 69%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/InetAddress.cpp.o
[ 69%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/Membership.cpp.o
gmake[1]: *** [CMakeFiles/Makefile2:387: CMakeFiles/zto_obj.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 70%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/Metrics.cpp.o
In file included from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/simpleapi/include/prometheus/simpleapi.h:4,
from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/node/Metrics.cpp:13:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h: In constructor ‘prometheus::Family::Family(prometheus::Metric::Type, const std::string&, const std::string&, const Labels&)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:171:22: error: ‘invalid_argument’ is not a member of ‘std’
171 | throw std::invalid_argument("Invalid metric name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:15:1: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
14 | #include "prometheus/hash.h"
+++ |+#include <stdexcept>
15 |
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:176:24: error: ‘invalid_argument’ is not a member of ‘std’
176 | throw std::invalid_argument("Invalid label name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:176:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h: In member function ‘CustomMetric& prometheus::CustomFamily<CustomMetric>::Add(const prometheus::Family::Labels&, Args&& ...)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:307:24: error: ‘invalid_argument’ is not a member of ‘std’
307 | throw std::invalid_argument("Invalid label name");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:307:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:309:24: error: ‘invalid_argument’ is not a member of ‘std’
309 | throw std::invalid_argument("Label name already present in constant labels");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:309:24: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
In file included from /home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/simpleapi/include/prometheus/simpleapi.h:5:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h: In member function ‘CustomFamily& prometheus::Registry::Add(const std::string&, const std::string&, const prometheus::Family::Labels&)’:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:92:26: error: ‘invalid_argument’ is not a member of ‘std’
92 | throw std::invalid_argument("Family name already exists with different type");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:1:1: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
+++ |+#include <stdexcept>
1 | #pragma once
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:97:30: error: ‘invalid_argument’ is not a member of ‘std’
97 | throw std::invalid_argument("Family name already exists");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:97:30: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:112:22: error: ‘invalid_argument’ is not a member of ‘std’
112 | throw std::invalid_argument("Family name already exists with different labels");
| ^~~~~~~~~~~~~~~~
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/registry.h:112:22: note: ‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
[ 70%] Building CXX object CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/Multicaster.cpp.o
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-everything’ may have been intended to silence earlier diagnostics
gmake[2]: *** [CMakeFiles/zto_pic.dir/build.make:244: CMakeFiles/zto_pic.dir/ext/ZeroTierOne/node/Metrics.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:517: CMakeFiles/zto_pic.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
cp: cannot stat '/home/thiagola92/Downloads/libzt/cache/linux-x64-host-release/lib/libzt.*': No such file or directory
cp: cannot stat '/home/thiagola92/Downloads/libzt/cache/linux-x64-host-release/bin/*': No such file or directory
- Build cache : /home/thiagola92/Downloads/libzt/cache/linux-x64-host-release
- Build output : /home/thiagola92/Downloads/libzt/dist
4 /home/thiagola92/Downloads/libzt/dist/linux-x64-host-release/lib
4 /home/thiagola92/Downloads/libzt/dist/linux-x64-host-release/bin
12 /home/thiagola92/Downloads/libzt/dist/linux-x64-host-release
The text was updated successfully, but these errors were encountered:
/home/thiagola92/Downloads/libzt/ext/ZeroTierOne/ext/prometheus-cpp-lite-1.0/core/include/prometheus/family.h:15:1: note:
‘std::invalid_argument’ is defined in header ‘<stdexcept>’; did you forget to ‘#include <stdexcept>’?
Added #include <stdexcept>
Retried ./build.sh host "release"
Script finished
thiagola92
changed the title
Bash script fail in Ubuntu
Script fail in Ubuntu
Feb 16, 2024
Setup
sudo apt install cmake
git clone https://github.com/zerotier/libzt.git
cd libzt/
git submodule update --init
./build.sh host "release"
Operating System: Ubuntu 23.10 x86_64
Error
The text was updated successfully, but these errors were encountered: