Closed Bug 1896313 Opened 1 year ago Closed 1 year ago

sccache: error: failed to execute compile (caused by: error reading compile response from server) (caused by: io error: unexpected end of file)

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jwatt, Unassigned)

Details

Attachments

(1 file)

Just ran a mach bootstrap and I'm now getting:

 0:10.12 Using host sysroot in /Users/jwatt/.mozbuild/MacOSX14.4.sdk
 0:10.12 checking the target C compiler version... 17.0.6
 0:10.16 checking the target C compiler works... no
 0:10.16 DEBUG: Creating `/var/folders/8l/gngw3t4x34jcd1xfgqx2sr5c0000gn/T/conftest.qwcrjizt.c` with content:
 0:10.16 DEBUG: | int
 0:10.16 DEBUG: | main(void)
 0:10.16 DEBUG: | {
 0:10.16 DEBUG: |
 0:10.16 DEBUG: |   ;
 0:10.16 DEBUG: |   return 0;
 0:10.16 DEBUG: | }
 0:10.17 DEBUG: Executing: `/Users/jwatt/.mozbuild/sccache/sccache /Users/jwatt/.mozbuild/clang/bin/clang -isysroot /Users/jwatt/.mozbuild/MacOSX14.4.sdk -mmacosx-version-min=10.15 -std=gnu99 /var/folders/8l/gngw3t4x34jcd1xfgqx2sr5c0000gn/T/conftest.qwcrjizt.c -c`
 0:10.17 DEBUG: The command returned non-zero exit status 2.
 0:10.17 DEBUG: Its error output was:
 0:10.17 DEBUG: | sccache: error: failed to execute compile
 0:10.17 DEBUG: | sccache: caused by: error reading compile response from server
 0:10.17 DEBUG: | sccache: caused by: io error: unexpected end of file
 0:10.17 ERROR: Failed compiling a simple C source with the target C compiler
*** Fix above errors and then restart with "./mach build"

Change your mozconfig to use --with-ccache=sccache (without a path)

Thank you, that gets my Mac build working again.

I was using the absolute path because at some points in the past I've been using custom sccache builds. It might be nice if this could be made to work again at some point, but it's not blocking me right now.

Using an absolute path works... but it won't update sccache on its own. IOW, your sccache was outdated.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: