unison-code / unison

Unison's source code
http://unison-code.github.io/
Other
101 stars 17 forks source link

Unable to compile the llvm fork with clang 3.8 sources #61

Closed dgazzoni closed 1 year ago

dgazzoni commented 1 year ago

First of all, sorry for opening this here rather than in the llvm fork, but issues are disabled there.

For the last couple of days I've been trying to build unison and its llvm fork on many different platforms: an Apple M1 running macOS, a Raspberry Pi 4, and two Linux PCs, one with Ubuntu 18.04 and another with Ubuntu 22.04. After much tinkering I got both working on one of the Linux PCs, but it looks like a matching clang version is required to generate IR files for use with the rest of the toolchain. At this point I tried compiling the forked llvm along with the official clang 3.8 sources. That's where I've been stuck for the last day: the clang 3.8 sources produce endless compilation errors. I tried using many different versions of gcc and clang to compile, from old to new, including a Docker container with an old (clang 3.8-era) version of Ubuntu.

Unfortunately at this point I'm running out of ideas. Would it be possible to add a Docker containing with either prebuilt binaries, or compatible versions of the toolchain to make sure the compile succeeds?

Or even better: are there plans to update llvm support to newer versions? These should be easier to build currently.

dgazzoni commented 1 year ago

Sorry, my bad -- skipped a very important part of the documentation, namely running git checkout release_38-unison. Closing.