buildbot codesign fails due to presence of dylibs in binary folder (probably) #90418
Labels
No Label
legacy module
Development Management
legacy module
Platforms, Builds, Tests & Devices
legacy module
Python API
legacy module
Rendering & Cycles
legacy project
3.3
legacy project
Development Management
legacy project
Documentation
legacy project
Infrastructure: Blender Buildbot
legacy project
Infrastructure: Websites
legacy project
Platform: macOS
legacy project
Platforms, Builds, Tests & Devices
legacy project
Platform: Windows
legacy project
Python API
legacy project
Render & Cycles
Priority::Low
Priority::Normal
Priority::Unbreak Now!
Status::Archived
Status::Confirmed
Status::Duplicate
Status::Needs Information from Developers
Status::Needs Triage
Status::Resolved
Type::Bug
Type::Report
Type::To Do
No Milestone
No project
No Assignees
6 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: archive/blender-buildbot#90418
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Buildbot macOS worker
Blender Version
Worked: blender/blender@a25a1f39aa
First bad commit: blender/blender@652fbc2005
Short description of error
https://builder.blender.org/admin/#/builders/9/builds/1202/steps/11/logs/stdio
Exact steps for others to reproduce the error
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @ankitm
blender/blender#90517 was marked as duplicate of this issue
blender/blender#90505 was marked as duplicate of this issue
@ponderz We can probably mitigate it by changing the library location from
Blender.app/Contents/MacOS/libomp.dylib
toBlender.app/Contents/Resources/lib/libomp.dylib
if it cannot be fixed on buildbot side.That's the fallback.
https://builder.blender.org/admin/#/builders/58/builds/401/steps/11/logs/stdio
Okay yeah we can do that. I don't have a preference eitherway. Just two variable changes.
https://developer.blender.org/rB3985822f48d3c48f5bc9ddfa1bedf620f8df4895
Added subscriber: @Pyer
Added subscriber: @mano-wii
Added subscriber: @Nurb2Kea
Is this still an issue?
blender/blender@ff594715b8 fixed some things in the libraries and may have fixed this problem too.
yes
that commit only changes library version, not its location or codesign code on buildbot.
master and cycles-x still won't start at all on macos 11.5.1 on different machines!
Added subscriber: @brecht
With a test build with the Arm libraries, I did not see this issue.
https://builder.blender.org/admin/#/builders/58/builds/401/steps/11/logs/stdio
However if moving the library back to the
Resources
folder fixes it and tests keep working and finding the correctlibomp.dylib
(and not another one found on the system), then it's fine to commit that fix I think.macOS 11.5.1 Intel i7 8 core
Tried to put back the Library from the last working version into the package contens of the versions (see below), but didn't work.
blender-3.0.0-alpha+cycles-x.499008939a48-darwin.x86_64-release
blender-3.0.0-alpha+master.57281b73c451-darwin.x86_64-release
Couldn't find an error log because it isn't starting at all on two differnent machines, but I could get the problem details from apple error message. see below!
@Nurb2Kea, it's best to wait until this task is solved, and then check if you still have the problem. The current build is from August 3, we first have to get a new build working and then we can if it works correctly for everyone or not. What you found may be unrelated to this task.
This issue was referenced by blender/blender@b83ee724a4
Changed status from 'Confirmed' to: 'Resolved'
Changed status from 'Resolved' to: 'Confirmed'
I still see the same error on buildbot for x86_64, but not Arm.
https://builder.blender.org/admin/#/builders/9/builds/1297
And
libomp.dylib
is now getting installed in bothMacOS
andResources/lib
, is that intentional?No
Suggest cleaning the build folder
As I also commented on the commit, the logs show the codesign to be fine. Any build before this one had the codesign issue.
https://builder.blender.org/admin/#/builders/58/builds/460
It seems indeed that a clean build solves both issues.
https://builder.blender.org/admin/#/builders/9/builds/1299/steps/11/logs/stdio
However a subsequent automatic build still fails, since presumably that runs on a different machine.
https://builder.blender.org/admin/#/builders/9/builds/1300/steps/11/logs/stdio
@ponderz, is there a way to clear the macOS build folder on all machines for daily and experimental builds?
In principle this should not be needed, but for some there is something in the build folder that sticks around when it shouldn't.
Few ways to do this:
I started 4 clean builds on the PROD Buildbot.
All good now.
Only issue is if any of the experimental branches that did not update from master yet, and continue to build will re-introduce the problem on the machine.
Changed status from 'Confirmed' to: 'Resolved'
thanks!
d36cf98aa8/security/mac/hardenedruntime/codesign.bash (L115)
A fix on the server side could be signing dylibs before Blender executable.
We already do that.
Any reason why we have the
libomp.dylib
in 2 different places ?That is a leftover of stale cmake scripts.
Recent builds don't do that
https://builder.blender.org/admin/#/builders/9/builds/1376/steps/8/logs/stdio