Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280546 - =net-fs/samba-3.0.33 does not compile on multicore
Summary: =net-fs/samba-3.0.33 does not compile on multicore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-06 11:19 UTC by mehrunes
Modified: 2009-08-07 07:11 UTC (History)
0 users

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


Attachments
emerge --info (emerge--info,4.07 KB, text/plain)
2009-08-06 11:23 UTC, mehrunes
Details
failed emerge log, take 0 (inet_box-failed.take.0.log,48.92 KB, text/plain)
2009-08-06 11:24 UTC, mehrunes
Details
failed emerge log, take 1 (slightly different) (inet_box-failed.take.1.log,49.21 KB, text/plain)
2009-08-06 11:25 UTC, mehrunes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mehrunes 2009-08-06 11:19:41 UTC
samba does not compile on multi-CPU system with MAKEOPTS="-j -l3" 

Probably bad upstream makefile

Posssibly directory "bin" not created prior to accessing it

Possibly adding " mkdir bin" after line 883 in Makefile.in might help

Reproducible: Always

Steps to Reproduce:
1. Use 64-bit AMD or Intel with 2 or more CPUs
2. Set MAKEOPTS="-j -l3"
3. emerge net-fs/samba

Actual Results:  
compilation fails

Expected Results:  
compilation successful

too long, usin attachments
Comment 1 mehrunes 2009-08-06 11:23:18 UTC
Created attachment 200369 [details]
emerge --info
Comment 2 mehrunes 2009-08-06 11:24:20 UTC
Created attachment 200370 [details]
failed emerge log, take 0
Comment 3 mehrunes 2009-08-06 11:25:41 UTC
Created attachment 200371 [details]
failed emerge log, take 1 (slightly different)

common error: ld asked to write to nonexistent dir
Comment 4 Víctor Ostorga (RETIRED) gentoo-dev 2009-08-06 15:06:40 UTC
As said in bug 257861

>This is a known issue, samba is not a friend of parallel make, make starts
>linking before all dependencies are met, just watch bugs:
>
>https://bugzilla.samba.org/show_bug.cgi?id=3322
>https://bugzilla.samba.org/show_bug.cgi?id=6278
>
>A workaround is to limit the number of jobs, such as MAKEOPTS="-j13 -l3" or
>MAKEOPTS="-j2 -l3" instead of MAKEOPTS="-j -l3"
>
>This way it builds fine using multiple specified jobs
Comment 5 mehrunes 2009-08-07 07:11:10 UTC
ah, sorry, i did not look inside samba ebuilds changelog before posting the bug

samba-3.2.13-r2 compiled ok on my 16-proc

i mark this bug as fixed