Closed
Bug 1208279
Opened 10 years ago
Closed 10 years ago
TaskCluster Linux64 static analysis builds share a cached object directory with gcc builds
Categories
(Firefox Build System :: Task Configuration, task)
Firefox Build System
Task Configuration
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ehsan.akhgari, Assigned: dustin)
References
Details
Attachments
(1 file)
These builds are currently perma red on inbound, see a sample log here: <https://s3-us-west-2.amazonaws.com/taskcluster-public-artifacts/EkLgoZzOTkabLAH-NbfChg/0/public/logs/live_backing.log>
The interesting bits are:
16:24:18 INFO - checking for gcc... (cached) /usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/gcc
16:24:18 INFO - checking whether the C compiler (/usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/gcc -L/home/worker/workspace/build/src/gtk3/usr/local/lib ) works... yes
16:24:18 INFO - checking whether the C compiler (/usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/gcc -L/home/worker/workspace/build/src/gtk3/usr/local/lib ) is a cross-compiler... no
16:24:18 INFO - checking whether we are using GNU C... (cached) yes
16:24:18 INFO - checking whether /usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/gcc accepts -g... (cached) yes
16:24:18 INFO - checking for c++... (cached) /usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/g++
16:24:18 INFO - checking whether the C++ compiler (/usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/g++ -L/home/worker/workspace/build/src/gtk3/usr/local/lib ) works... yes
16:24:18 INFO - checking whether the C++ compiler (/usr/bin/ccache /home/worker/workspace/build/src/gcc/bin/g++ -L/home/worker/workspace/build/src/gtk3/usr/local/lib ) is a cross-compiler... no
16:24:18 INFO - checking whether we are using GNU C++... (cached) yes
And later on:
16:24:20 INFO - configure: error: Can't use clang plugin without clang.
The problem is that we're doing an incremental build over an object directory which has been using gcc as the compiler, so things are all confused.
I can "fix" this by making these builds clobber builds, but is there a better way to deal with this?
Flags: needinfo?(dustin)
| Assignee | ||
Comment 1•10 years ago
|
||
Ah, just use a different cache name in the task description. testing/taskcluster/tasks/builds/opt_linux64.yml has
task:
# same as clobber, but with a cached workspace
scopes:
- 'docker-worker:cache:build-linux64-c6-workspace'
payload:
cache:
build-linux64-c6-workspace: '/home/worker/workspace'
which is specifying the cache named build-linux64-c6-workspace. So you'll need to instead inherit from opt_linux64_clobber.yml and then use a cache with a different name (st-an specific), and update the scopes to allow that cache.
Flags: needinfo?(dustin)
| Assignee | ||
Comment 2•10 years ago
|
||
In fact, this is polluting caches the other way 'round too (bug 1208356).
| Assignee | ||
Comment 3•10 years ago
|
||
Bug 1208279: use a different cache for static analysis builds; r?ehsan
| Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8666014 [details]
MozReview Request: Bug 1208279: use a different cache for static analysis builds; r?ehsan
I'm hoping "don't ask me for review" doesn't apply in this case :)
Attachment #8666014 -
Flags: review?(ehsan)
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → dustin
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Comment hidden (Legacy TBPL/Treeherder Robot) |
| Reporter | ||
Comment 13•10 years ago
|
||
Comment on attachment 8666014 [details]
MozReview Request: Bug 1208279: use a different cache for static analysis builds; r?ehsan
https://reviewboard.mozilla.org/r/20405/#review18331
Awesome, thanks for the quick fix!
Attachment #8666014 -
Flags: review?(ehsan) → review+
Comment 14•10 years ago
|
||
Comment 15•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: TaskCluster → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•