Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147725 - games-sports/xmoto-0.2.1 fails with MAKEOPTS="-j2" or higher.
Summary: games-sports/xmoto-0.2.1 fails with MAKEOPTS="-j2" or higher.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-15 13:54 UTC by Kyle Hunter
Modified: 2010-01-06 18:36 UTC (History)
1 user (show)

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


Attachments
xmoto-0.2.1.ebuild - Forces MAKEOPTS="-j1" (xmoto-0.2.1.ebuild,845 bytes, text/plain)
2006-09-15 13:55 UTC, Kyle Hunter
Details
xmoto-0.2.1.diff (xmoto-0.2.1.diff,314 bytes, patch)
2006-09-15 14:05 UTC, Paul Bredbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle Hunter 2006-09-15 13:54:01 UTC
Hello, I use GCC 4.1.1 and xmoto-0.2.1 fails if I compile it with MAKEOPTS="-j2" or higher, I must use MAKEOPTS="-j1" or it fails to build

Making all in extra
make[1]: Entering directory `/var/tmp/portage/xmoto-0.2.1/work/xmoto-0.2.1/extra'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/xmoto-0.2.1/work/xmoto-0.2.1/extra'
make[1]: Entering directory `/var/tmp/portage/xmoto-0.2.1/work/xmoto-0.2.1'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/var/tmp/portage/xmoto-0.2.1/work/xmoto-0.2.1'

!!! ERROR: games-sports/xmoto-0.2.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called games_src_compile
  games.eclass, line 136:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 Kyle Hunter 2006-09-15 13:55:47 UTC
Created attachment 97080 [details]
xmoto-0.2.1.ebuild - Forces MAKEOPTS="-j1"
Comment 2 Paul Bredbury 2006-09-15 14:05:41 UTC
Created attachment 97081 [details, diff]
xmoto-0.2.1.diff

I confirm this problem and the solution, on x86 (athlon-xp) with gcc-3.4.5-r1 (old, I know). Here's the required patch.
Comment 3 Tristan Heaven (RETIRED) gentoo-dev 2006-09-15 14:42:37 UTC
That's not the solution, just a workaround.
Comment 4 Paul Bredbury 2006-09-15 14:51:17 UTC
(In reply to comment #3)
> That's not the solution, just a workaround.

Yup. A workaround which fixes a problem. Something which fixes a problem is a solution. You don't just keep the problem going until you've come up with the *perfect* "solution", because that's stupid, when there are reasonable measures in-between. Are you saying that this solution is reasonable or unreasonable?
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2006-09-15 14:57:39 UTC
ebuilds aren't to touch MAKEOPTS
Comment 6 Tristan Heaven (RETIRED) gentoo-dev 2006-09-15 15:09:40 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > That's not the solution, just a workaround.
> 
> Yup. A workaround which fixes a problem. Something which fixes a problem is a
> solution. You don't just keep the problem going until you've come up with the
> *perfect* "solution", because that's stupid, when there are reasonable measures
> in-between. Are you saying that this solution is reasonable or unreasonable?

I'm saying workarounds avoid problems not fix them.
Comment 7 Paul Bredbury 2006-09-15 15:20:54 UTC
(In reply to comment #5)
> ebuilds aren't to touch MAKEOPTS

There's lots that *do* "touch MAKEOPTS", from my quick grep query. Should I raise a separate bug with a list of them? Is it better to use "emake -j1" in the ebuild? Thanks for explaining *nothing*.

If you could provide a *reason*, then that would help people like me (who want to contribute, and *have* contributed) a hell of a lot to understand what on Earth is going on here. Rather than just stating facts as if they are obvious, when they are totally non-obvious.
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-15 16:43:31 UTC
sorry, I had parallel make disabled and did not notice this while bumping :(

I have worked around it with emake -j1. This of course is no solution. The solution is to patch the makefiles so that they properly work in parallel.

no idea either why makeopts is evil, mr_bones? Will see what I can do about the makefiles now.
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-15 17:48:00 UTC
upstream moved the xmoto target to the subdir but still wants the result in the top directory. But the rule here is broken

xmoto: src/xmoto
       ln -sf src/xmoto xmoto

make: *** No rule to make target `src/xmoto'.  Stop.

but cd src; make xmoto works. Since I do not know another way to do it I will probably ask upstream to revert the change. Any better ideas?
Comment 10 SpanKY gentoo-dev 2006-09-15 22:42:35 UTC
Comment on attachment 97081 [details, diff]
xmoto-0.2.1.diff

because other package maintainers do such garbage is no excuse

at any rate; fix the package properly, dont be lazy and force -j1
Comment 11 Paul Bredbury 2006-09-15 23:39:06 UTC
(In reply to comment #10)
> fix the package properly

Yeah, great. Until the "ideal" fix, are you going to ignore the "pragmatic" fix of "-j1", for some strange reason of idealism over reality?
Comment 12 Tristan Heaven (RETIRED) gentoo-dev 2006-09-16 02:04:37 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > fix the package properly
> 
> Yeah, great. Until the "ideal" fix, are you going to ignore the "pragmatic" fix
> of "-j1", for some strange reason of idealism over reality?
> 

"I have worked around it with emake -j1."
Comment 13 SpanKY gentoo-dev 2006-09-16 15:15:50 UTC
workarounds have a tendency to become permanent fixes

fix it once; dont work around it many times
Comment 14 Stefan Schweizer (RETIRED) gentoo-dev 2006-09-16 15:29:06 UTC
I mailed upstream about this. They are informed of the issue. Will keep you updated.
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2006-12-24 06:50:13 UTC
no longer fails in 0.2.4