https://bugzilla.novell.com/show_bug.cgi?id=780612 https://bugzilla.novell.com/show_bug.cgi?id=780612#c0 Summary: KBUILD: attempting execve("fixdep") before chmod("fixdep", 0755) completes Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i686 OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: from-suse@I-love.SAKURA.ne.jp QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1 Under parallel build, one make process sometimes tries to call execve("scripts/basic/fixdep") before chmod("scripts/basic/fixdep", 0755) requested by ld (invoked by gcc from the other make process) completes. As a result, build fails due to "Permission denied" error. As far as I tested, this is SUSE specific bug, for I don't see this problem when compiling vanilla kernels without using rpmbuild. Reproducible: Sometimes Steps to Reproduce: (1) Install openSUSE 12.2 with minimum packages. (2) Install packages needed for compiling kernel. rpm -ivh http://download.opensuse.org/source/distribution/12.2/repo/oss/suse/src/kern... rpm -ivh http://download.opensuse.org/source/distribution/12.2/repo/oss/suse/nosrc/ke... zypper install rpm-build sparse fdupes (3) Try to compile kernel with "make -j2". rpmbuild -bb --target i686 --define '%_smp_mflags -j2' /usr/src/packages/SPECS/kernel-default.spec Actual Results: If it raced, it will generate like below output. (...snipped...) + test -e /usr/src/packages/BUILD/kernel-default-3.4.6/kabi/i386/symtypes-default + true + make -j2 all CONFIG_DEBUG_SECTION_MISMATCH=y + tee buildlog make[3]: Nothing to be done for `all'. HOSTCC arch/x86/tools/relocs GEN /usr/src/packages/BUILD/kernel-default-3.4.6/linux-obj/Makefile CHK include/linux/version.h CHK include/generated/utsrelease.h HOSTCC scripts/basic/fixdep /bin/sh: scripts/basic/fixdep: Permission denied make[3]: *** [arch/x86/tools/relocs] Error 1 make[2]: *** [archscripts] Error 2 make[2]: *** Waiting for unfinished jobs.... /bin/sh: scripts/basic/fixdep: Permission denied make[3]: *** [scripts/basic/fixdep] Error 1 make[2]: *** [scripts_basic] Error 2 make[1]: *** [sub-make] Error 2 make: *** [all] Error 2 + test 2 -eq 0 + test 00 -gt 0 + exit 1 error: Bad exit status from /var/tmp/rpm-tmp.Jvpp8f (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Jvpp8f (%build) Expected Results: If it did not race, it will generate like below output. (...snipped...) + test -e /usr/src/packages/BUILD/kernel-default-3.4.6/kabi/i386/symtypes-default + true + make -j2 all CONFIG_DEBUG_SECTION_MISMATCH=y + tee buildlog make[3]: Nothing to be done for `all'. HOSTCC arch/x86/tools/relocs Using /usr/src/packages/BUILD/kernel-default-3.4.6/linux-3.4 as source for kernel GEN /usr/src/packages/BUILD/kernel-default-3.4.6/linux-obj/Makefile CHK include/linux/version.h CHK include/generated/utsrelease.h HOSTCC scripts/basic/fixdep CC kernel/bounds.s GEN include/generated/bounds.h CC arch/x86/kernel/asm-offsets.s GEN include/generated/asm-offsets.h CALL /usr/src/packages/BUILD/kernel-default-3.4.6/linux-3.4/scripts/checksyscalls.sh HOSTCC scripts/genksyms/genksyms.o HOSTCC scripts/genksyms/lex.lex.o HOSTCC scripts/genksyms/parse.tab.o HOSTLD scripts/genksyms/genksyms CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost (...snipped...) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.