Closed Bug 1736502 Opened 3 years ago Closed 2 years ago

Perma clang-trunk CheckIncludeFile.c:1:10: fatal error: malloc/malloc.h: No such file or directory and other failures

Categories

(Firefox Build System :: Toolchains, defect, P5)

defect

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: glandium)

Details

(Keywords: intermittent-failure)

Attachments

(1 file)

Filed by: csabou [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=355236376&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/UynxIUZSRCaRcXEcj3dHqA/runs/0/artifacts/public/logs/live_backing.log


[task 2021-10-19T02:12:30.862Z] Contents of b'/builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeError.log' follow
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the include file malloc/malloc.h exists failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_bbc0d && [1/2] Building C object CMakeFiles/cmTC_bbc0d.dir/CheckIncludeFile.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: CMakeFiles/cmTC_bbc0d.dir/CheckIncludeFile.c.o 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] /usr/bin/gcc    -o CMakeFiles/cmTC_bbc0d.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] CheckIncludeFile.c:1:10: fatal error: malloc/malloc.h: No such file or directory
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]     1 | #include <malloc/malloc.h>
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]       |          ^~~~~~~~~~~~~~~~~
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] compilation terminated.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the include file valgrind/valgrind.h exists failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_89067 && [1/2] Building C object CMakeFiles/cmTC_89067.dir/CheckIncludeFile.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: CMakeFiles/cmTC_89067.dir/CheckIncludeFile.c.o 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] /usr/bin/gcc    -o CMakeFiles/cmTC_89067.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] CheckIncludeFile.c:1:10: fatal error: valgrind/valgrind.h: No such file or directory
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]     1 | #include <valgrind/valgrind.h>
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]       |          ^~~~~~~~~~~~~~~~~~~~~
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] compilation terminated.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the include file mach/mach.h exists failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_535bb && [1/2] Building C object CMakeFiles/cmTC_535bb.dir/CheckIncludeFile.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: CMakeFiles/cmTC_535bb.dir/CheckIncludeFile.c.o 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] /usr/bin/gcc    -o CMakeFiles/cmTC_535bb.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] CheckIncludeFile.c:1:10: fatal error: mach/mach.h: No such file or directory
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]     1 | #include <mach/mach.h>
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]       |          ^~~~~~~~~~~~~
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] compilation terminated.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the include file histedit.h exists failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_14991 && [1/2] Building C object CMakeFiles/cmTC_14991.dir/CheckIncludeFile.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: CMakeFiles/cmTC_14991.dir/CheckIncludeFile.c.o 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] /usr/bin/gcc    -o CMakeFiles/cmTC_14991.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] CheckIncludeFile.c:1:10: fatal error: histedit.h: No such file or directory
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]     1 | #include <histedit.h>
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]       |          ^~~~~~~~~~~~
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] compilation terminated.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the include file CrashReporterClient.h exists failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_de350 && [1/2] Building C object CMakeFiles/cmTC_de350.dir/CheckIncludeFile.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: CMakeFiles/cmTC_de350.dir/CheckIncludeFile.c.o 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] /usr/bin/gcc    -o CMakeFiles/cmTC_de350.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] CheckIncludeFile.c:1:10: fatal error: CrashReporterClient.h: No such file or directory
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]     1 | #include <CrashReporterClient.h>
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z]       |          ^~~~~~~~~~~~~~~~~~~~~~~
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] compilation terminated.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Determining if the function pfm_initialize exists in the pfm failed with the following output:
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] Run Build Command(s):/usr/bin/ninja cmTC_9744f && [1/2] Building C object CMakeFiles/cmTC_9744f.dir/CheckFunctionExists.c.o
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] [2/2] Linking C executable cmTC_9744f
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.862Z] FAILED: cmTC_9744f 
[task 2021-10-19T02:12:30.862Z] 
[task 2021-10-19T02:12:30.863Z] : && /usr/bin/gcc -DCHECK_FUNCTION_EXISTS=pfm_initialize -Wl,-Bsymbolic-functions -fuse-ld=gold -Wl,--gc-sections -Wl,--icf=safe CMakeFiles/cmTC_9744f.dir/CheckFunctionExists.c.o -o cmTC_9744f  -lpfm  -lm && :
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] /usr/bin/ld.gold: error: cannot find -lpfm
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] CMakeFiles/cmTC_9744f.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pfm_initialize'
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] collect2: error: ld returned 1 exit status
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] ninja: build stopped: subcommand failed.
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] Change Dir: /builds/worker/fetches/llvm-project/build/stage1/build/CMakeFiles/CMakeTmp
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] Run Build Command(s):/usr/bin/ninja cmTC_d370d && [1/2] Building C object CMakeFiles/cmTC_d370d.dir/src.c.o
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] [2/2] Linking C executable cmTC_d370d
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] FAILED: cmTC_d370d 
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] : && /usr/bin/gcc -DCMAKE_HAVE_LIBC_PTHREAD -Wl,-Bsymbolic-functions -fuse-ld=gold -Wl,--gc-sections -Wl,--icf=safe CMakeFiles/cmTC_d370d.dir/src.c.o -o cmTC_d370d  -lm && :
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] CMakeFiles/cmTC_d370d.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_create'
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] CMakeFiles/cmTC_d370d.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_detach'
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] CMakeFiles/cmTC_d370d.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_cancel'
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] CMakeFiles/cmTC_d370d.dir/src.c.o:src.c:function main: error: undefined reference to 'pthread_join'
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] collect2: error: ld returned 1 exit status
[task 2021-10-19T02:12:30.863Z] 
[task 2021-10-19T02:12:30.863Z] ninja: build stopped: subcommand failed.

Looks like this is not push related as it fails on older pushes like this one where it was manually added. Can't run it on a push where it was green because I get this error in the console Task `Bqklzth9QV6Pe838e60tBA` Can't be rescheduled past it's deadline of 2021-10-18T02:02:30.029Z.
It's not worker related because it fails on several ones:

It looks more towards an infra error or with the setup of the job itself. First failed here.

Andi, please have a look over these failures. Thank you.

Flags: needinfo?(bpostelnicu)

The real error is earlier:

[task 2021-10-19T02:12:28.814Z] CMake Error at projects/compiler-rt/cmake/Modules/AddCompilerRT.cmake:3 (include):
[task 2021-10-19T02:12:28.814Z]   include could not find load file:
[task 2021-10-19T02:12:28.814Z] 
[task 2021-10-19T02:12:28.814Z]     /builds/worker/fetches/llvm-project/llvm/projects/compiler-rt/../cmake/Modules/HandleCompilerRT.cmake
[task 2021-10-19T02:12:28.814Z] Call Stack (most recent call first):
[task 2021-10-19T02:12:28.814Z]   projects/compiler-rt/lib/CMakeLists.txt:4 (include)

This is probably caused by these upstream changes: https://reviews.llvm.org/rG0eed292fbae22a8856682b07e1cb968424b49941
We're victim of our continued use of the pre-monorepo ways of setting things up.

Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(bpostelnicu)
Resolution: --- → FIXED

Andi, this issue has appeared again, looks to be the same issue.
Could you please take a look?

Status: RESOLVED → REOPENED
Flags: needinfo?(bpostelnicu)
Resolution: FIXED → ---

I'm discussion with the author of the patch that caused the regression to see what we can do to fix it.

Flags: needinfo?(bpostelnicu)

Short of solving this by fully embracing the monorepo build and removing
the projects/ workarounds (which will also require a compat more with
older clang versions we still build with the same script), we can solve
the bustage with a small hack.

Assignee: nobody → mh+mozilla

Note this yields, so upstream changes since the bustage have busted the clang-plugin:

error: 'error' diagnostics expected but not seen:
  File /builds/worker/checkouts/gecko/build/clang-plugin/tests/TestGlobalClass.cpp Line 19: variable of type 'Global [2]' only valid as global
error: 'error' diagnostics seen but not expected:
  File /builds/worker/checkouts/gecko/build/clang-plugin/tests/TestGlobalClass.cpp Line 19: variable of type 'Global[2]' only valid as global
error: 'note' diagnostics expected but not seen:
  File /builds/worker/checkouts/gecko/build/clang-plugin/tests/TestGlobalClass.cpp Line 19: 'Global [2]' is a global type because it is an array of global type 'Global'
error: 'note' diagnostics seen but not expected:
  File /builds/worker/checkouts/gecko/build/clang-plugin/tests/TestGlobalClass.cpp Line 19: 'Global[2]' is a global type because it is an array of global type 'Global'
4 errors generated.
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/c8b2765f771c
Work around clang trunk changes that break our clang-trunk build. r=andi
Status: REOPENED → RESOLVED
Closed: 3 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch

Andi, this issue has appeared again, looks to be the same issue.
Could you please take a look?

Status: RESOLVED → REOPENED
Flags: needinfo?(bpostelnicu)
Resolution: FIXED → ---
Target Milestone: 96 Branch → ---

Mike, could you take care of this?

Flags: needinfo?(bpostelnicu) → needinfo?(mh+mozilla)

Please file a new bug because it's not the same thing. (how come it's been flagged on autoland too? Backfilling these jobs doesn't do anything useful)

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Flags: needinfo?(mh+mozilla)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: