You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regression: sccache-dist build fails on assembler including files #2700
I have a setup with sccache-dist to build gecko, and recently after upgrading to sccache v0.15.0 I started to hit build failures:
0:03.39 W sccache: Job failed on server 192.168.1.112:10501:
0:03.40 W clang: warning: argument unused during compilation: '-D DEBUG=1' [-Wunused-command-line-argument]
0:03.40 W clang: warning: argument unused during compilation: '-D ICU_DATA_FILE="/home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat"' [-Wunused-command-line-argument]
0:03.40 W clang: warning: argument unused during compilation: '-D ICU_DATA_SYMBOL=icudt78_dat' [-Wunused-command-line-argument]
0:03.40 E /home/alex/firefox/gecko-cinnabar/config/external/icu/data/icu_data.S:28:9: error: Could not find incbin file '/home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat'
0:03.40 E .incbin "/home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat"
0:03.40 E ^
0:03.40 sccache: Compiler killed by signal 1
I could narrow it down to #2545, and making a local revert of the feature unblocks the build
As I can see in the log, you try to include file /home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat, which is not presented on your disk. Am I correct?
Does it works without sccache run?
Can you provide the whole command line to that sccache/clang call, please?
Is it reproduced with local sccache only (without distributed compiling)?
As I can see in the log, you try to include file /home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat, which is not presented on your disk. Am I correct?
I believe the error is coming from the server side, because client side it's there.
Does it works without sccache run?
It think it works with sccache without dist, it's the setup on CI so I suspect it would have been caught
Can you provide the whole command line to that sccache/clang call, please?
Line 923 in c0db872
run_input_output(cmd, None).await
This code is used for both gcc & clang, and this is the right place for files with preprocessing support, IMO.
But we still need to think about the already preprocessed files/files, that doesn't support preprocessing...
I think the correct fix would be to just package the file, but I do not remember if absolute paths are a problem or are being rewritten properly? Here it's passed as -DICU_DATA_FILE=... so it may explode?
I don't think it's either used to track the dependencies (i.e. it may not generate the cache miss because of the data file change) or support paths rewriting at all.
As I can see, we must do some manual sources processing after preprocessing (or for the input file one, if the preprocessing is not required) and only after that do caching to support incbin.
For now the fastest way will be just try to search .incbin in the input/preprocessor output and mark it as a reason for non-cacheable call at all
Activity
lissyx commentedon May 7, 2026
@AJIOB I see on #2556 you mentionned #2557, but I think it is on current
v0.15.0tag, so maybe something else needs to be done there?AJIOB commentedon May 7, 2026
Hi @lissyx ,
As I can see in the log, you try to include file
/home/alex/firefox/gecko-cinnabar/config/external/icu/data/icudt78l.dat, which is not presented on your disk. Am I correct?Does it works without sccache run?
Can you provide the whole command line to that sccache/clang call, please?
Is it reproduced with local sccache only (without distributed compiling)?
lissyx commentedon May 7, 2026
I believe the error is coming from the server side, because client side it's there.
It think it works with sccache without dist, it's the setup on CI so I suspect it would have been caught
I'm not sure how I can capture this?
lissyx commentedon May 7, 2026
I think that is the relevant trace log:
lissyx commentedon May 7, 2026
Likely it missed
.incbinthereAJIOB commentedon May 7, 2026
Possibly yes.
IMO, the client should preprocess the result & get the preprocessed output to the distributed compiling only.
Looks like we need to recheck the https://github.com/mozilla/sccache/blob/main/src/compiler/c.rs#L793 and provide better solution.
Can you try to disable the preprocessor cache mode for distributed compiling, please? I hope it helps to you.
lissyx commentedon May 7, 2026
Preprocessor is not the issue here, disabling does not improve. We still attempt distributed compile but fail because the missing bit
lissyx commentedon May 7, 2026
This quick hack seems to be enough for now:
AJIOB commentedon May 7, 2026
Thanks. I'll try to investigate it locally.
Also, feel free to create the fix PR & provide the test for your case. Possibly the integration one
lissyx commentedon May 7, 2026
Yep if I find some time today or next week, but at least I have something working and a workaround shared, so others have a way out as well
lissyx commentedon May 11, 2026
@AJIOB I pushed #2703, if you are willing to review
AJIOB commentedon May 11, 2026
One more question about your original issue: can you use relative path as an
.incbininput? Does it solve your problem?P.S. The problem looks like the same we have with an
#include "/some/absolute/path"directiveAJIOB commentedon May 11, 2026
One more note for possible fix:
We can post-process the preprocessor output here:
sccache/src/compiler/gcc.rs
Line 923 in c0db872
This code is used for both gcc & clang, and this is the right place for files with preprocessing support, IMO.
But we still need to think about the already preprocessed files/files, that doesn't support preprocessing...
lissyx commentedon May 11, 2026
I think the correct fix would be to just package the file, but I do not remember if absolute paths are a problem or are being rewritten properly? Here it's passed as
-DICU_DATA_FILE=...so it may explode?AJIOB commentedon May 11, 2026
I don't think it's either used to track the dependencies (i.e. it may not generate the cache miss because of the data file change) or support paths rewriting at all.
As I can see, we must do some manual sources processing after preprocessing (or for the input file one, if the preprocessing is not required) and only after that do caching to support incbin.
For now the fastest way will be just try to search
.incbinin the input/preprocessor output and mark it as a reason for non-cacheable call at allAJIOB commentedon May 11, 2026
P.S. In the common way, we cannot just rewrite all
-Dflags, that contains absolute path as value.lissyx commentedon May 11, 2026
Yes; that was my memory ...