From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3E70F3851C24; Sun, 22 May 2022 21:14:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3E70F3851C24 From: "i at maskray dot me" To: glibc-bugs@sourceware.org Subject: [Bug build/29167] New: build failures with make --shuffle -j N Date: Sun, 22 May 2022 21:14:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i at maskray dot me X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2022 21:14:17 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29167 Bug ID: 29167 Summary: build failures with make --shuffle -j N Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me CC: carlos at redhat dot com Target Milestone: --- See https://trofi.github.io/posts/238-new-make-shuffle-mode.html for a pend= ing --shuffle option to GNU make to detect brittle dependencies. I have patched my local repo ~/Dev/make with v6-0001-Add-shuffle-argument-support.patch glibc currently has a number of missing dependency issues: % mkdir -p out/play && cd out/play % ../../configure --prefix=3D/tmp/glibc/play --enable-static-pie && ~/Dev/make/out/release/make --shuffle=3D1653253310 -j 20 ... gcc wcstombs.c -c -std=3Dgnu11 -fgnu89-inline -g -O2 -Wall -Wwrite-strings -Wundef -Werror -fmerge-all-constants -frounding-math -fno-stack-protector -fno-common -Wstrict-prototypes -Wold-style-definition -fmath-errno -fpi= e=20=20 -ftls-model=3Dinitial-exec -I../include -I/home/maskray/Dev/glibc/out/play/stdlib -I/home/maskray/Dev/glibc/out/pl= ay=20 -I../sysdeps/unix/sysv/linux/x86_64/64 -I../sysdeps/unix/sysv/linux/x86_64= =20 -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86=20 -I../sysdeps/x86/nptl -I../sysdeps/unix/sysv/linux/wordsize-64=20 -I../sysdeps/x86_64/nptl -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux -I../sysdeps/nptl -I../sysdeps/pthread=20 -I../sysdeps/gnu -I../sysdeps/unix/inet -I../sysdeps/unix/sysv=20 -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix=20 -I../sysdeps/x86_64/64 -I../sysdeps/x86_64/fpu/multiarch=20 -I../sysdeps/x86_64/fpu -I../sysdeps/x86/fpu -I../sysdeps/x86_64/multiarc= h=20 -I../sysdeps/x86_64 -I../sysdeps/x86/include -I../sysdeps/x86=20 -I../sysdeps/ieee754/float128 -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64=20 -I../sysdeps/ieee754/flt-32 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754= =20 -I../sysdeps/generic -I.. -I../libio -I. -D_LIBC_REENTRANT -include /home/maskray/Dev/glibc/out/play/libc-modules.h -DMODULE_NAME=3Dlibc -inclu= de ../include/libc-symbols.h -DPIC -DTOP_NAMESPACE=3Dglibc -o /home/maskray/Dev/glibc/out/play/stdlib/wcstombs.o -MD -MP -MF /home/maskray/Dev/glibc/out/play/stdlib/wcstombs.o.dt -MT /home/maskray/Dev/glibc/out/play/stdlib/wcstombs.o ../sysdeps/unix/sysv/linux/x86_64/getcontext.S:22:10: fatal error: ucontext_i.h: No such file or directory 22 | #include "ucontext_i.h" | ^~~~~~~~~~~~~~ compilation terminated. make[2]: *** [/home/maskray/Dev/glibc/out/play/sysd-rules:41: /home/maskray/Dev/glibc/out/play/stdlib/getcontext.o] Error 1 --shuffle=3D1653253310 make[2]: *** Waiting for unfinished jobs.... ../sysdeps/unix/sysv/linux/x86_64/makecontext.c:29:10: fatal error: ucontext_i.h: No such file or directory 29 | #include "ucontext_i.h" | ^~~~~~~~~~~~~~ In another fresh build with --shuffle=3Dreverse=20 % ~/Dev/make/out/release/make --shuffle=3Dreverse -j 20 ... make[2]: Entering directory '/home/maskray/Dev/glibc/elf' python3 -B ../scripts/dso-ordering-test.py --description-file dso-sort-tests-1.def --objpfx /home/maskray/Dev/glibc/out/reverse/elf/ --output-makefile /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-1.def.generated-make= fileT python3 -B ../scripts/dso-ordering-test.py --description-file dso-sort-tests-2.def --objpfx /home/maskray/Dev/glibc/out/reverse/elf/ --output-makefile /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-2.def.generated-make= fileT mv /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-1.def.generated-make= fileT /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-1.def.generated-make= file mv /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-2.def.generated-make= fileT /home/maskray/Dev/glibc/out/reverse/elf/dso-sort-tests-2.def.generated-make= file make[2]: *** No rule to make target '/home/maskray/Dev/glibc/out/reverse/stamp.oS', needed by '/home/maskray/Dev/glibc/out/reverse/libc_nonshared.a'. Stop. make[2]: Leaving directory '/home/maskray/Dev/glibc/elf' make[1]: *** [Makefile:483: elf/others] Error 2 --shuffle=3Dreverse make[1]: Leaving directory '/home/maskray/Dev/glibc' --=20 You are receiving this mail because: You are on the CC list for the bug.=