Hallo all,
I was trying to Build LLVM with the cmake option LLVM_ENABLE_MODULES just out of curiosity. I used the RELEASE_400/final tag.
It didn't work as I almost expected.
So I'm wondering if the modulemaps aren't maintained anymore?
If they aren't maintained anymore, why aren't they removed and that cmake option also removed?
AFAIK this should work. At least it worked for me (Built top of trunk llvm using 'clang version 4.0.0 (tags/RELEASE_400/final)' ). Any specific error you are seeing?
I believe there's even a couple of buildbots that use this option (clang-x86_64-linux-selfhost-modules, clang-x86_64-linux-selfhost-modules-2) One of them seems to be red atm because it's out of space, but they are usually green IIRC.
Thanks, Elad
Like Elad mentioned, we have few bots that are currently testing this
configuration.
So I'm wondering if the modulemaps aren't maintained anymore?
Yes, they are. But they only get fixed/updated once an issue is found
or when headers aren't currently figured out via umbrella directives.
Please file bugs (and CC me) if you've found issues.
Hi Timo,
Hallo all,
I was trying to Build LLVM with the cmake option LLVM_ENABLE_MODULES just out of curiosity. I used the RELEASE_400/final tag.
It didn't work as I almost expected.
Could you be more specific?
So I'm wondering if the modulemaps aren't maintained anymore?
There are two bots building llvm with the modulemap-based modules support: http://lab.llvm.org:8011/buildslaves/modules-slave-1 and http://lab.llvm.org:8011/buildslaves/modules-slave-2
Most of the time they are green.
Cheers, Vassil
I have tried it again. I first build a clang 4.0 final from sources and then tried to build it with LLVM_ENABLE_MODULES=ON and still errors.
I put a file as an attachment to this e-mail with the terminal output.
terminal.log (12.6 KB)
Hi Timo,
Hallo all,
I was trying to Build LLVM with the cmake option LLVM_ENABLE_MODULES just out of curiosity. I used the RELEASE_400/final tag.
It didn’t work as I almost expected.
Could you be more specific?
So I’m wondering if the modulemaps aren’t maintained anymore?
There are two bots building llvm with the modulemap-based modules support: http://lab.llvm.org:8011/buildslaves/modules-slave-1 and http://lab.llvm.org:8011/buildslaves/modules-slave-2
These two run Linux, and then there is also one running on macOS in the green dragon Jenkins instance:
http://green.lab.llvm.org/green/job/clang-stage2-cmake-modulesRDA/
– adrian
There was a typo in the initial command from the attachment but I assume you fixed that. It seems you are building with libstdc++. Older versions of libstdc++ don’t work well with modules. Could you tell us which version you are using (echo “” | clang -fsyntax-only -x c++ - -v). Anything later than 6 should work, alternatively you could build llvm against libc++. – Vassil