Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106921 - httperf build fails: needs libstat.a with parallel make (e.g. -j2)
Summary: httperf build fails: needs libstat.a with parallel make (e.g. -j2)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Aaron Walker (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-09-22 13:30 UTC by Mark Dominik Bürkle
Modified: 2005-09-26 09:58 UTC (History)
1 user (show)

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


Attachments
patch the ebuild to include MAKEOPTS="-j1" (httperf-0.8.diff,313 bytes, patch)
2005-09-22 13:33 UTC, Mark Dominik Bürkle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2005-09-22 13:30:17 UTC
When make.conf contains "parallel make" configuration, e.g. 
 
MAKEOPTS="-j2" 
 
then the build fails, because make "doesn't know" that dependency. 
Might be a make bug, but a workaround is easily possible. 

Reproducible: Always
Steps to Reproduce:
1. have MAKEOPTS="-j2" in make.conf 
2. emerge httperf 
  
Actual Results:  
... 
ranlib libgen.a 
make[1]: Leaving directory `/var/tmp/portage/httperf-0.8/work/httperf-0.8/gen' 
making all in stat 
make[1]: Entering directory 
`/var/tmp/portage/httperf-0.8/work/httperf-0.8/stat' 
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -I../lib -I../gen  -DNDEBUG -D_GNU_SOURCE 
-D_XOPEN_SOURCE -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 
-fomit-frame-pointer -ffast-math -pipe -Wall basic.c 
gcc -c -DHAVE_CONFIG_H -I. -I. -I./lib -DNDEBUG -D_GNU_SOURCE -D_XOPEN_SOURCE 
-march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 -fomit-frame-pointer 
-ffast-math -pipe -Wall timer.c 
make: *** No rule to make target `stat/libstat.a', needed by `httperf'.  Stop. 
make: *** Waiting for unfinished jobs.... 
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -I../lib -I../gen  -DNDEBUG -D_GNU_SOURCE 
-D_XOPEN_SOURCE -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 
-fomit-frame-pointer -ffast-math -pipe -Wall sess_stat.c 
gcc -c -DHAVE_CONFIG_H -I.. -I. -I.. -I../lib -I../gen  -DNDEBUG -D_GNU_SOURCE 
-D_XOPEN_SOURCE -march=pentium4 -mmmx -msse -msse2 -mfpmath=sse -O3 
-fomit-frame-pointer -ffast-math -pipe -Wall print_reply.c 
ar r libstat.a basic.o sess_stat.o print_reply.o 
ar: creating libstat.a 
ranlib libstat.a 
make[1]: Leaving directory 
`/var/tmp/portage/httperf-0.8/work/httperf-0.8/stat' 
 
!!! ERROR: app-benchmarks/httperf-0.8 failed. 
!!! Function src_compile, Line 36, Exitcode 2 
!!! emake failed 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 
httperf # vi httperf-0.8.ebuild 
 

Expected Results:  
compile cleanly 

including a line of  
  
MAKEOPTS="-j1"  
  
in httperf-0.8.ebuild fixes this.  
Simply copying the ebuild to local portage-overlay dir...  
 
A note about the severity: for people having "-j2"+ settings, it's acutally a 
Blocker...
Comment 1 Mark Dominik Bürkle 2005-09-22 13:33:29 UTC
Created attachment 69025 [details, diff]
patch the ebuild to include MAKEOPTS="-j1"

Though it might be a workaround against a make bug (is it?), I didn't put that
into the comment right above that line... You might wish to do so.
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-09-26 09:58:42 UTC
Fixed, thanks.