Closed Bug 1584175 Opened 5 years ago Closed 5 years ago

.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)

defect

Tracking

(firefox-esr60 unaffected, firefox-esr68 unaffected, firefox69 unaffected, firefox70 unaffected, firefox71 fixed)

RESOLVED FIXED
mozilla71
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.

Did we change to clang-tidy 9.0 before we changed to clang 9.0? What's going on here?

Flags: needinfo?(bpostelnicu)

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?

maybe we don’t have to strip it when we build the clang-tidy package.

Flags: needinfo?(bpostelnicu)
Assignee: nobody → bpostelnicu

Yep, this is a regression caused by bug 1573211.

Regressed by: 1573211
Priority: -- → P1

Since we've upgraded to clang 9, clang-format changed and now uses dynamic libraries
for the clang tooling lib that it uses.

(In reply to Andi-Bogdan Postelnicu [:andi] from comment #5)

try job

I'd been curious to know the size increase from not (almost) completely removing lib/.

(In reply to Nathan Froyd [:froydnj] from comment #7)

(In reply to Andi-Bogdan Postelnicu [:andi] from comment #5)

try job

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.

Attachment #9095537 - Attachment description: Bug 1584175 - Add lib/ directory to the clang-tidy artifact. r=sylvestre → Bug 1584175 - Add lib/libclang-cpp.* to the clang-tidy artifact. r=sylvestre

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?

Ignore me plz, that got fixed after backingout bug 1573211

Pushed by bpostelnicu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2c6f2f6d173
Add lib/libclang-cpp.* to the clang-tidy artifact. r=froydnj,dmajor
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: