-
Notifications
You must be signed in to change notification settings - Fork 367
Closed
Labels
buildIssues with the build system.Issues with the build system.
Description
git clone https://github.com/google/bloaty.git --recursive
cd bloaty
cmake -B build -G Ninja -S .
cmake --build build
cmake --build build --target install
On Windows with similar commands:
[17/175] Building CXX object CMakeFiles/libbloaty.dir/src/bloaty.cc.obj
FAILED: [code=1] CMakeFiles/libbloaty.dir/src/bloaty.cc.obj
C:\msys64\mingw64\bin\c++.exe -DUSE_RE2 -D_LIBCXXABI_FUNC_VIS="" -IC:/bloaty/third_party/re2 -IC:/bloaty/third_party/capstone/include -IC:/bloaty/. -IC:/bloaty/src -IC:/bloaty/third_party/abseil-cpp -IC:/bloaty/build/src -IC:/bloaty/third_party/googletest/googletest/include -IC:/bloaty/third_party/googletest/googlemock/include -IC:/bloaty/third_party/protobuf/upb/reflection/cmake -isystem C:/bloaty/third_party/protobuf/src -isystem C:/bloaty/third_party/zlib -W -Wall -Wno-sign-compare -fdiagnostics-color=always -O2 -g1 -std=gnu++20 -MD -MT CMakeFiles/libbloaty.dir/src/bloaty.cc.obj -MF CMakeFiles\libbloaty.dir\src\bloaty.cc.obj.d -o CMakeFiles/libbloaty.dir/src/bloaty.cc.obj -c C:/bloaty/src/bloaty.cc
In file included from C:/bloaty/src/bloaty.cc:27:
C:/bloaty/third_party/zlib/zlib.h:1468:32: error: expected initializer before 'Z_ARG'
1468 | ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
| ^~~~~
C:/bloaty/third_party/zlib/zlib.h:1902:44: error: expected initializer before 'Z_ARG'
1902 | ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file,
PS C:\bloaty> cmake --version
cmake version 3.29.2
Metadata
Metadata
Assignees
Labels
buildIssues with the build system.Issues with the build system.