Opened 10 years ago
Closed 10 years ago
#3747 closed task (fixed)
Glibc 2.21 does not like parallel build
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 7.7 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
When using "make -j" to build Glibc 2.21, it will sometimes fail to build. Here's the relevant part of the compile log:
make[2]: Entering directory '/usr/src/glibc/xxxbuild/glibc-2.21/elf' .././scripts/mkinstalldirs /usr/src/glibc/xxxbuild/glibc-build/elf .././scripts/mkinstalldirs /usr/src/glibc/xxxbuild/glibc-build/elf .././scripts/mkinstalldirs /usr/src/glibc/xxxbuild/glibc-build/elf echo '#define RUNTIME_LINKER "/lib/ld-linux-x86-64.so.2"' \ > /usr/src/glibc/xxxbuild/glibc-build/elf/runtime-linker.T mkdir -p -- /usr/src/glibc/xxxbuild/glibc-build/elf mkdir -p -- /usr/src/glibc/xxxbuild/glibc-build/elf /bin/sh: /usr/src/glibc/xxxbuild/glibc-build/elf/runtime-linker.T: No such file or directory
The creation of "runtime-linker.T" can occur before the "elf" directory actually exists, causing a no such file error. Obviously the fix would be to ensure the "elf" directory is created first, but I wouldn't know exactly how to fix the Makefile to ensure that happens. Until a patch can be found for this issue, a temporary fix would be to add a note that Glibc should be built with "make -j1".
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Added a note to glibc that -j1 may be needed during make phase.
Fixed at revision 10846.
It's a race condition then. I've built it with -j10 without a problem. My log has:
What happens if instead of 'mkdir -v ../glibc-build', you change it to 'mkdir -v ../glibc-build/elf' ?