Coder Social home page Coder Social logo

Does not build on macOS about pict HOT 5 CLOSED

wagnerst avatar wagnerst commented on May 26, 2024
Does not build on macOS

from pict.

Comments (5)

jaccz avatar jaccz commented on May 26, 2024

@wagnerst, cmake configs are new to this codebase and it would be great to troubleshoot this a bit more. Is this cmake-version dependent? I assume @bhardwajs (who introduced these configs recently) didn't see it in their environment.

I'll dust off my Mac to see what's going on but it will be a slow process. We can consider removing this flag from the config to unblock the compilation on MacOS until we understand it better.

from pict.

bhardwajs avatar bhardwajs commented on May 26, 2024

@wagnerst - The PR that introduced this change (#85) has a PR build on MacOS: https://pipelines.actions.githubusercontent.com/UYdpZu1K2Abbco3Gy7dEALkh0aw6QbWDK3pBQmV4Okx7ENc2Ng/_apis/pipelines/1/runs/381/signedlogcontent/3?urlExpires=2022-05-03T03%3A30%3A09.0046715Z&urlSigningMethod=HMACV1&urlSignature=AOgmhzVgg4uFpytZqIKdXtJ6y0RAeMPwYlmdjF0qH4k%3D
This build succeeded. So, I am wondering if there is something specific about the configuration you are using. Can you please share more details about the error and the setup of your build machine?

As @jaccz mentioned, I don't have a MacOS to test. And, I agree if understanding and resolving the issue is going to take time, removing this flag from MacOS config is a workaround.

from pict.

wagnerst avatar wagnerst commented on May 26, 2024

So this is the error I get:

[ 52%] Building CXX object cli/CMakeFiles/pict_cli.dir/mparser.cpp.o
/Users/wagnerst/Stuff/ASTA 2022/pict/cli/mparser.cpp:369:20: error: if statement has empty body [-Werror,-Wempty-body]
if (found) ;
^
/Users/wagnerst/Stuff/ASTA 2022/pict/cli/mparser.cpp:369:20: note: put the semicolon on a separate line to silence this warning
1 error generated.
make[2]: *** [cli/CMakeFiles/pict_cli.dir/mparser.cpp.o] Error 1
make[1]: *** [cli/CMakeFiles/pict_cli.dir/all] Error 2
make: *** [all] Error 2

After running cmake --build build

I have installed the CMake using homebrew.
cmake has the version 3.23.1.
clang is Apple clang version 13.1.6 (clang-1316.0.21.2.3).

Anything else that can be helpful?

from pict.

jaccz avatar jaccz commented on May 26, 2024

from pict.

jaccz avatar jaccz commented on May 26, 2024

Tracked it down. Here's the fix. #91
Silly but it seems to work. If you have a better idea on how this warning can be suppressed, let me know. Whatever the method, it needs to work on all supported compilers and platforms. Yuck.

from pict.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.