Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375121 - www-plugins/nspluginwrapper-1.4.4 fails parallel build
Summary: www-plugins/nspluginwrapper-1.4.4 fails parallel build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL: https://github.com/davidben/nspluginw...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-13 19:39 UTC by Martin von Gagern
Modified: 2011-07-14 16:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-07-13 19:39:35 UTC
www-plugins/nspluginwrapper-1.4.4 fails to build in parallel.

gcc -std=c99 -m32 -march=amdfam10 -O2 -ggdb -pipe -I/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/lsb-build/headers -nostdinc -fno-builtin -I. -I/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/lsb-build/headers -c -fno-stack-protector /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/lsb-build/stub_libs/libc_main.c -o lsb-build-i386/libc_main.o
Assembler messages:
Fatal error: can't create lsb-build-i386/libc_main.o: No such file or directory

The cause lies here:
https://github.com/davidben/nspluginwrapper/blob/2f2e00a95a21f4c7824964610ad1ca313578dd6c/Makefile#L336
The target $(LSB_OBJ_DIR) is responsible for the creation of the required directory. But the $(LSB_OBJ_DIR)/%.o target doesn't directly depend on it. Only the order in other dependency lists ensures a correct build under -j1 conditions.

Posted this issue upstream as well:
https://github.com/davidben/nspluginwrapper/issues/32

Workaround: MAKEOPTS=-j1 emerge -1 nspluginwrapper
Comment 1 Patrick McLean gentoo-dev 2011-07-14 16:11:30 UTC
Should be fixed.

I am not sure how these keep getting through, I am testing this build with MAKEOPTS="-j12".