.mozbuild/clang-tools/clang-tidy/bin/clang-format: error while loading shared libraries: libclang-cpp.so.9: cannot open shared object file: No such file or directory
Categories
(Firefox Build System :: Bootstrap Configuration, defect, P1)
Tracking
(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox69 unaffected, firefox70 unaffected, firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | unaffected |
firefox69 | --- | unaffected |
firefox70 | --- | unaffected |
firefox71 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: andi)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
$ ./mach clang-format -c HEAD
0:00.31 Error determining the version clang-tidy/format binary, please see the attached exception:
/home/mirko/.mozbuild/clang-tools/clang-tidy/bin/clang-format: error while loading shared libraries: libclang-cpp.so.9: cannot open shared object file: No such file or directory
0:00.32 You're using an old version of clang-format binary. Please update to a more recent one by running: './mach bootstrap'
./mach bootstrap
didn't help. Happened a few minutes ago on Ubuntu 18.04.
![]() |
||
Comment 1•5 years ago
|
||
Did we change to clang-tidy 9.0 before we changed to clang 9.0? What's going on here?
Comment 2•5 years ago
|
||
For a few hours, yeah
https://bugzilla.mozilla.org/show_bug.cgi?id=1583138#c3 landed "Tue, 24 Sep 2019 21:52:37""
https://bugzilla.mozilla.org/show_bug.cgi?id=1573211#c4 landed "Wed, 25 Sep 2019 21:56:53 "
But here, libclang-cpp.so.9 is a new lib, maybe not installed?
Assignee | ||
Comment 3•5 years ago
|
||
maybe we don’t have to strip it when we build the clang-tidy package.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Yep, this is a regression caused by bug 1573211.
Updated•5 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
Since we've upgraded to clang 9, clang-format changed and now uses dynamic libraries
for the clang tooling lib that it uses.
![]() |
||
Comment 7•5 years ago
|
||
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #5)
I'd been curious to know the size increase from not (almost) completely removing lib/
.
Assignee | ||
Comment 8•5 years ago
•
|
||
(In reply to Nathan Froyd [:froydnj] from comment #7)
(In reply to Andi-Bogdan Postelnicu [:andi] from comment #5)
I'd been curious to know the size increase from not (almost) completely removing
lib/
.
That try job will tell us. Nathan please feel free to review the patch if you have time.
(In reply to Sylvestre Ledru [:Sylvestre] from comment #2)
For a few hours, yeah
https://bugzilla.mozilla.org/show_bug.cgi?id=1583138#c3 landed "Tue, 24 Sep 2019 21:52:37""
https://bugzilla.mozilla.org/show_bug.cgi?id=1573211#c4 landed "Wed, 25 Sep 2019 21:56:53 "But here, libclang-cpp.so.9 is a new lib, maybe not installed?
FWIW the first commit did not change any versions. It just made the clang-tidy checkers be ready for either version.
Updated•5 years ago
|
Comment 10•5 years ago
|
||
I am getting this error in MacOS
Error determining the version clang-tidy/format binary, please see the attached exception:
dyld: Library not loaded: @rpath/libclang-cpp.dylib
Referenced from: /Users/tnguyen/.mozbuild/clang-tools/clang-tidy/bin/clang-format
Reason: image not found
I guess that is related to this bug?
Comment 11•5 years ago
•
|
||
Ignore me plz, that got fixed after backingout bug 1573211
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•3 years ago
|
Description
•