New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 723919 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jul 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

clang fails to run on ubuntu 16.04

Project Member Reported by scottmg@chromium.org, May 18 2017

Issue description

I 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

--


 

Comment 1 by h...@chromium.org, May 25 2017

Sorry, I missed this. Is it still causing problems?

Does /work/cr/src/third_party/llvm-bootstrap/./bin/clang -v work?

Could you provide the output from ldd on /work/cr/src/third_party/llvm-bootstrap/./bin/c-index-test and clang?

Comment 2 by thakis@chromium.org, May 25 2017

Labels: clang
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.

Comment 3 by thakis@chromium.org, 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.

Comment 5 by thakis@chromium.org, Jul 24 2017

Cc: -thakis@chromium.org
Labels: -Pri-3 Pri-1
Owner: thakis@chromium.org
Status: Started (was: Untriaged)
Summary: clang fails to run on ubuntu 16.04 (was: tools/clang/scripts/package.py fails on 16.04)
(retitling for new, larger, scope)

Comment 6 by msten...@opera.com, Jul 24 2017

Cc: msten...@opera.com
Similar problems on Debian stretch, FWIW.

Comment 7 by thakis@chromium.org, Jul 24 2017

Issue 748210 has been merged into this issue.

Comment 8 by thakis@chromium.org, 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.
Project Member

Comment 9 by bugdroid1@chromium.org, 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

Status: Fixed (was: Started)
Should be better now, shout if you still see this at trunk.

Comment 11 by msten...@opera.com, Jul 25 2017

Works fine again. Thanks.
Fixed for me too thanks!

Sign in to add a comment