Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 136374
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Marcus D. Hanwell <cryos@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Magnus Anderson <magnus@sonic2000.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
boinc.error boinc make error text/plain Magnus Anderson 2006-06-11 03:44 0000 1.66 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 136374 depends on: Show dependency tree
Bug 136374 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-11 03:43 0000
sci-misc/boinc needs to use MAKETOPS="-j1" to compile correctly.

Refering to the attachment for the error it fails with.

------- Comment #1 From Magnus Anderson 2006-06-11 03:44:31 0000 -------
Created an attachment (id=88890) [details]
boinc make error

The error boinc will fail with when compiled with more than one thread

------- Comment #2 From Marcus D. Hanwell 2006-07-10 06:16:59 0000 -------
Meant to resolve to fixed...

------- Comment #3 From Marcus D. Hanwell 2006-07-10 06:18:29 0000 -------
Sorry - wrong bug doh... I have just added 5.5.6 to portage and it builds fine
here with -j5 on GCC 4.1.1. Please test and let me know if it works OK for you.

------- Comment #4 From Ferris McCormick 2006-07-13 08:31:57 0000 -------
I can't build boinc-5.5.6 on sparc/gcc-3.3.5, but the problem does not seem to
be compiler related.  With MAKEOPTS='-j4' and using distcc, the following
sequence appears in the make in the sea directory:
mkdir -p BOINC
cp <file1>.png BOINC
cp <file2>.png BOINC
cp <file3>.png BOINC
and the performance of this particular system (U2(2x400)) is such that it tries
to do the copies before the mkdir actually completes.

Similar problem when making sea on a dual processor amd64, MAKEOPTS='-j3',
gcc-3.4.6-r1

However, on my sparc SB1000(1x900, 1x750) system, MAKEOPTS='-j3', gcc-3.4.6-r2,
the build is successful.

So, on multiprocessor systems, the make in the sea directory can fail because
the make can try to copy files into a directory before the mkdir succeeds. 
Notice that the SB1000 is not SMP because the CPUs have different speeds, and
it could well be that the mkdirs were assigned to the faster CPU.

------- Comment #5 From Marcus D. Hanwell 2006-07-15 14:54:47 0000 -------
I have seen this once in about 30 compiles of it I have done on my dual core
AMD64 system (4400+). I don't know why it is so rare on my system, possibly my
hard drive is pretty fast or I don't have a clue. I am not sure upon how best
to deal with this - ideally patching it but for now I can always force -j1... I
hate doing that but if it is causing issues it may be the best solution until
the problem is fixed properly.

Would this cure the issue for you Ferris? It seems pretty rare on my system but
I can see others are experiencing problems with it. A patch would be even
better if anyone has one!

------- Comment #6 From Ferris McCormick 2006-07-15 16:19:06 0000 -------
Yes, that would solve it for me.  But as I said, my problem is just that I need
-j1 and it is not compiler related.  It's that on a multiprocessor, both a mdir
and a cp into that dir start simultaneously, so the cp fails on some systems.

At least, that's what the output from the build loks like.  (For me, the
summary would stop with the '-j1' :).)

------- Comment #7 From Marcus D. Hanwell 2006-07-15 16:25:59 0000 -------
I have just added -j1 to the 5.5.6 ebuild. Hopefully this should cure the issue
for most people. I would prefer to patch it but I just don't have time and am
not certain how to fix it just yet.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug