secure-software-engineering / phasar

A LLVM-based static analysis framework.
Other
920 stars 140 forks source link

Homebrew formula #601

Closed mcandre closed 9 months ago

mcandre commented 1 year ago

Is your feature request related to a problem? Please describe.

I would love a Homebrew formula for phasar, in order to make it easier to install for newbies on macOS!

Describe the solution you'd like

Publish a Homebrew formula for phasar for macOS users.

Describe alternatives you've considered

Publish a DMG-archived PKG installer for macOS users.

Additional context

A Chocolatey package (Windows), an APT repository (Debian/Ubuntu), \an RPM repository (RHEL), and PKGIN (FreeBSD) would also be welcome.

janniclas commented 1 year ago

Hey @mcandre, currently, building PhASAR on Macs with the new M Chip Architecture is impossible. Until this changes, we won't be able to provide a Homebrew formula for Macs.

fabianbs96 commented 1 year ago

Hi @mcandre, if you want to use phasar on a mac anyway, we have support for Docker. You can find more information at https://github.com/secure-software-engineering/phasar/wiki/OS-Support#macos.

As an outlook to the future, I can tell you that we are working on conan support (#516) that will simplify the whole process of building phasar and managing its dependencies.

Does that answer your question for now?

mcandre commented 8 months ago

Yes, I publish a number of Docker images.

While I do love Docker, I do not love having to depend on it for local development.

fabianbs96 commented 8 months ago

Hi @mcandre, I can totally understand that local development with Docker is not ideal. Last time, we tried out phasar on MAC, we needed to use a very recent version of clang for the compilation to succeed. This required us to maintain two versions of LLVM on the system: Clang-17 for compilation and LLVM-14 to link against. As maintaining two LLVM versions can be quite cumbersome, we refrain from recommending this as "official solution". However, you can try out, whether it works for you. Unfortunately, I cannot offer you more help, as I am not an Apple user myself

mcandre commented 8 months ago

That's fair. Apple doesn't make it easy.

I have done my best to publish tools for streamlining cross platform development. It's an uphill battle.