The default bug view has changed. See this FAQ.

Builds fail with file not recognized: File truncated

RESOLVED FIXED

Status

Release Engineering
Buildduty
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: Tomcat, Assigned: glandium)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(3 attachments)

(Reporter)

Description

3 years ago
we get it seems build failures due to failures like in https://tbpl.mozilla.org/php/getParsedLog.php?id=46750499&tree=B2g-Inbound

    INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")

../../content/svg/content/src/SVGStyleElement.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[5]: *** [libxul.so] Error 1
make[4]: *** [toolkit/library/target] Error 2
make[4]: *** Waiting for unfinished jobs....
testDefineGetterSetterNonEnumerable.o

slave is slave: bld-linux64-spot-1024
(Reporter)

Comment 1

3 years ago
also note, retrigger on different slaves for the same push finish then as expected
Reporting here a question asked in #releng by mshal:

glandium: any idea if imgStatusTracker.o might be stored as an empty file in sccache? Or maybe it pulled something from the cache but failed to write it out? https://tbpl.mozilla.org/php/getParsedLog.php?id=46753651&full=1&branch=mozilla-inbound#error0

The question above refers to these logged lines:

INPUT("StaticXULComponentsEnd/StaticXULComponentsEnd.o")

../../image/src/imgStatusTracker.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[5]: *** [libxul.so] Error 1
make[4]: *** [toolkit/library/target] Error 2
Flags: needinfo?(mh+mozilla)
Note that in this particular example, imgStatusTracker.o appears to have compiled successfully during the build:

python2.7 /builds/slave/m-in-linux32_g-000000000000000/build/sccache/sccache.py /tools/gcc-4.7.3-0moz1/bin/g++ -o imgStatusTracker.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /builds/slave/m-in-linux32_g-000000000000000/build/config/gcc_hidden.h -DOS_POSIX=1 -DOS_LINUX=1 -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL  -DSTATIC_EXPORTABLE_JS_API -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/builds/slave/m-in-linux32_g-000000000000000/build/image/src -I. -I/builds/slave/m-in-linux32_g-000000000000000/build/obj-firefox/ipc/ipdl/_ipdlheaders -I/builds/slave/m-in-linux32_g-000000000000000/build/ipc/chromium/src -I/builds/slave/m-in-linux32_g-000000000000000/build/ipc/glue -I/builds/slave/m-in-linux32_g-000000000000000/build/content/base/src -I/builds/slave/m-in-linux32_g-000000000000000/build/content/svg/content/src -I/builds/slave/m-in-linux32_g-000000000000000/build/image/decoders -I/builds/slave/m-in-linux32_g-000000000000000/build/layout/svg -I/builds/slave/m-in-linux32_g-000000000000000/build/netwerk/base/src -I../../dist/include  -I/builds/slave/m-in-linux32_g-000000000000000/build/obj-firefox/dist/include/nspr -I/builds/slave/m-in-linux32_g-000000000000000/build/obj-firefox/dist/include/nss       -fPIC   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MP -MF .deps/imgStatusTracker.o.pp  -Wall -Wpointer-arith -Woverloaded-virtual -Werror=return-type -Werror=int-to-pointer-cast -Werror=type-limits -Wempty-body -Wsign-compare -Wno-invalid-offsetof -Wcast-align -DMOZ_ENABLE_JS_DUMP -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe  -DNDEBUG -DTRIMMED -g -freorder-blocks -Os  -fomit-frame-pointer  -I/builds/slave/m-in-linux32_g-000000000000000/build/obj-firefox/dist/include/cairo    /builds/slave/m-in-linux32_g-000000000000000/build/image/src/imgStatusTracker.cpp
(Assignee)

Comment 4

3 years ago
This might actually be the same as bug 1016473, but in a different form because of the fix for that bug, but reading the code, I can see how the fix is not complete.
Flags: needinfo?(mh+mozilla)
(Assignee)

Comment 5

3 years ago
Created attachment 8479536 [details] [diff] [review]
Correctly handle bad cache data
Assignee: nobody → mh+mozilla
Attachment #8479536 - Flags: review?(mshal)
(Assignee)

Comment 6

3 years ago
Created attachment 8479542 [details]
sccache.tar.bz2 for tooltool
Attachment #8479542 - Flags: checked-in+
(Assignee)

Comment 7

3 years ago
Created attachment 8479543 [details] [diff] [review]
Update sccache to 7c87f05
Attachment #8479543 - Flags: review?(mshal)

Updated

3 years ago
Attachment #8479536 - Flags: review?(mshal) → review+

Updated

3 years ago
Attachment #8479543 - Flags: review?(mshal) → review+
https://tbpl.mozilla.org/php/getParsedLog.php?id=46863701&tree=Mozilla-Inbound
(Assignee)

Comment 9

3 years ago
https://github.com/glandium/sccache/commit/7c87f05506348b7512705794cc240db4442c3e30
(Assignee)

Comment 10

3 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fa8bfc00fe3
(Reporter)

Comment 11

3 years ago
https://hg.mozilla.org/mozilla-central/rev/9fa8bfc00fe3
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.