ssrg-vt / popcorn-compiler

Popcorn Linux compiler toolchain for heterogeneous-ISA execution
41 stars 22 forks source link

Installation fixes #50

Closed compor closed 1 year ago

compor commented 2 years ago

This PR is based on issues that came upon a "clean" Ubuntu 21.10 Docker image:

compor commented 2 years ago

@xjtuwxg this is not urgent, but a look into it would be appreciated :)

xjtuwxg commented 2 years ago

Thanks for the pull request. Seems like you want to upgrade the building script to a later Ubuntu version. Do you also have an update on the Dockerfile? Here is a link how to use it. Also, should we choose an LTS Ubuntu version like 20.04 or 22.04 as the base docker image?

I'm having a quick test using your script on a Ubuntu 20.04 base docker image, there seem a lot of warnings during the building process of LLVM/Clang9 (where 18.04 has a perfect building process w/o warnings). But I understand we cannot use the 18.04 docker image forever.

compor commented 2 years ago

Hey @xjtuwxg, thanks for the comments. All your suggestions make sense, so here is the actionable breakdown:

Regarding the warnings, I think this is due to a newer GCC version which probably has improved checks for the code quality. I cannot guarantee a timeline for this, since I'm a bit busy this period, so I'd suggest leaving this PR open and I'll ping you to have another look once I address the above points.

compor commented 1 year ago

Hi again @xjtuwxg,

As per above, here's a more refined breakdown:

Let me know what you think. Maybe the extra CMake CXX flags in e8bbb2bebcb5fd2f2a85505f7489013c06133489 for the aforementioned warnings could be guarded by a version check, e.g., to revisit them if the LLVM is greater than 9.1. Not sure if that is something desirable in this project.