We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On a fresh git clone of bloaty, when i try to compile it, using the following commands, it fails
cmake -B build -G Ninja -S . cd build ninja bloaty
the build fails [21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -c ../src/dwarf/dwarf_util.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/dwarf_util.cc:15: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^ [21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -c ../src/dwarf/attr.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/debug_info.h:57, from ../src/dwarf/attr.cc:17: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^
[21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -c ../src/dwarf/dwarf_util.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/dwarf_util.cc:15: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^ [21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -c ../src/dwarf/attr.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/debug_info.h:57, from ../src/dwarf/attr.cc:17: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^
The text was updated successfully, but these errors were encountered:
To fix this, i installed homebrew, and installed through homebrew outside of my docker image.
Sorry, something went wrong.
No branches or pull requests
On a fresh git clone of bloaty, when i try to compile it, using the following commands, it fails
the build fails
[21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/dwarf_util.cc.o -c ../src/dwarf/dwarf_util.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/dwarf_util.cc:15: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^ [21/29] Building CXX object CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o FAILED: /usr/bin/g++ -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -I../third_party/re2 -I../third_party/capstone/include -I../. -I../src -I../third_party/abseil-cpp -Isrc -I../third_party/googletest/googletest/include -I../third_party/googletest/googlemock/include -isystem ../third_party/protobuf/src -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++1z -MD -MT CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -MF CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o.d -o CMakeFiles/libbloaty.dir/src/dwarf/attr.cc.o -c ../src/dwarf/attr.cc In file included from ../src/dwarf/dwarf_util.h:22:0, from ../src/dwarf/debug_info.h:57, from ../src/dwarf/attr.cc:17: ../src/util.h: In function ‘constexpr T bloaty::_BS(T)’: ../src/util.h:124:6: error: expected ‘(’ before ‘constexpr’ if constexpr (N == 1) { ^ ../src/util.h:126:5: error: ‘else’ without a previous ‘if’ } else { ^
The text was updated successfully, but these errors were encountered: