clang fails to run on ubuntu 16.04 |
|||||
Issue descriptionI tried running tools/clang/scripts/package.py on my (non-goobuntu) Ubuntu 16.04 install ... Expected Passes : 23514 Expected Failures : 69 Unsupported Tests : 8326 Unexpected Failures: 289 FAILED: CMakeFiles/check-all cd /work/cr/src/third_party/llvm-bootstrap && /usr/bin/python2.7 /work/cr/src/third_party/llvm/utils/lit/lit.py -sv --param clang_site_config=/work/cr/src/third_party/llvm-bootstrap/tools/clang/test/lit.site.cfg --param lld_site_config=/work/cr/src/third_party/llvm-bootstrap/tools/lld/test/lit.site.cfg --param lld_unit_site_config=/work/cr/src/third_party/llvm-bootstrap/tools/lld/test/Unit/lit.site.cfg --param llvm_site_config=/work/cr/src/third_party/llvm-bootstrap/test/lit.site.cfg --param llvm_unit_site_config=/work/cr/src/third_party/llvm-bootstrap/test/Unit/lit.site.cfg /work/cr/src/third_party/llvm-bootstrap/tools/clang/test /work/cr/src/third_party/llvm-bootstrap/tools/lld/test /work/cr/src/third_party/llvm-bootstrap/test ninja: build stopped: subcommand failed. The failures seem to be of the form -- Exit Code: 2 Command Output (stderr): -- /work/cr/src/third_party/llvm-bootstrap/./bin/c-index-test: /work/cr/src/third_party/llvm-build-tools/gcc485precise/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.5/../../../../lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.55) FileCheck error: '-' is empty. FileCheck command line: /work/cr/src/third_party/llvm-bootstrap/./bin/FileCheck /work/cr/src/third_party/llvm/tools/clang/test/VFS/real-path-found-first.m --
,
May 25 2017
It's only causing problems when trying to run update.py on a new Linux (which currently nobody's trying, but people will eventually do -- scottmg tried for a bit, so I asked him to file a bug, since others will eventually have this problem). I think the problem is that c-index-test depends on system libicuuc.so.55, which in turn depends on libstdc++.so, but on a newer one than the one we bundle. Maybe we can just stop bundling libstdc++. Or bundle a newer one.
,
Jul 24 2017
It sounds like this is a problem with the `clang` binary after the last roll, meaning we currently can't build on Ubuntu 16.04. That's no good. The root cause for this is probably https://bugs.llvm.org/show_bug.cgi?id=33908 ; in the meantime I'm going to remove our libstdc++ bundling since it's currently not needed. If we need it again later, we should consider statically linking libstdc++ (but that's annoying since we ship a bunch of binaries), or something.
,
Jul 24 2017
,
Jul 24 2017
(retitling for new, larger, scope)
,
Jul 24 2017
Similar problems on Debian stretch, FWIW.
,
Jul 24 2017
Issue 748210 has been merged into this issue.
,
Jul 24 2017
For people who are seeing this: you can run `rm third_party/llvm-build/Release+Asserts/lib/libstdc++.so.6` to work around this until the change above has made it through the cq.
,
Jul 25 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d1b349921b612c35fa6c8d67443bd8155b790b5b commit d1b349921b612c35fa6c8d67443bd8155b790b5b Author: Nico Weber <thakis@chromium.org> Date: Tue Jul 25 00:58:59 2017 clang: Rebuild binaries. Two changes: 1.) Stop bundling libstdc++.so. This was needed when the bots were still on trusty. Now that they're all on precise, the system libstdc++ is new enough to run clang. The motivation is that clang currently transitively depends on system libicuuc, which depends on a newer libstdc++ than the one we bundle. So currently, clang fails to start on Ubuntu 16+. 2.) Built libclang_rt.ios.a with arm64 code too. TBR=hans Bug: 723919 , 747726 Change-Id: Ie123a2f6c80d539e4a246c5c0073d8560a66b5ba Reviewed-on: https://chromium-review.googlesource.com/582976 Commit-Queue: Nico Weber <thakis@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#489167} [modify] https://crrev.com/d1b349921b612c35fa6c8d67443bd8155b790b5b/base/BUILD.gn [modify] https://crrev.com/d1b349921b612c35fa6c8d67443bd8155b790b5b/build/config/sanitizers/BUILD.gn [modify] https://crrev.com/d1b349921b612c35fa6c8d67443bd8155b790b5b/tools/clang/scripts/package.py [modify] https://crrev.com/d1b349921b612c35fa6c8d67443bd8155b790b5b/tools/clang/scripts/update.py
,
Jul 25 2017
Should be better now, shout if you still see this at trunk.
,
Jul 25 2017
Works fine again. Thanks.
,
Jul 25 2017
Fixed for me too thanks! |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by h...@chromium.org
, May 25 2017