Skip to content

Build fails on Windows and Linux #431

@formatc2013

Description

@formatc2013
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

re.log

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

No one assigned

    Labels

    buildIssues with the build system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions