Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647982

Summary: dev-lang/mercury-13.05.2 : gmake[1]: *** No rule to make target 1 . Stop.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Keri Harris <keri>
Status: RESOLVED FIXED    
Severity: normal CC: pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 654178, 648224    
Attachments: emerge-info.txt
dev-lang:mercury-13.05.2:20180217-213803.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2018-02-18 08:57:32 UTC
scripts/Mmake.vars:674: warning: undefined variable 'DESTDIR'
Mmake.common:135: warning: undefined variable 'DESTDIR'
gmake[1]: *** No rule to make target '1'.  Stop.
gmake[1]: Leaving directory '/var/tmp/portage/dev-lang/mercury-13.05.2/work/mercury-srcdist-13.05.2'
make: *** [Makefile:75: 1] Error 2
emake failed

=== This is an issue at stable ===


  -------------------------------------------------------------------

  This is an stable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_stable_20180212-193640

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   jython2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
2)	JamVM JDK 2.0.0 [jamvm]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
  [2]   jamvm 

emerge -qpv dev-lang/mercury
[ebuild  N    ] dev-lang/mercury-14.01.1  USE="readline -debug -emacs -erlang -examples -java -mono (-profile) -threads -trail"
Comment 1 Toralf Förster gentoo-dev 2018-02-18 08:57:35 UTC
Created attachment 519940 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-18 08:57:38 UTC
Created attachment 519942 [details]
dev-lang:mercury-13.05.2:20180217-213803.log
Comment 3 Toralf Förster gentoo-dev 2018-02-18 08:57:41 UTC
Created attachment 519944 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-02-18 08:57:44 UTC
Created attachment 519946 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-02-18 08:57:47 UTC
Created attachment 519948 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-18 08:57:50 UTC
Created attachment 519950 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-02-18 08:57:53 UTC
Created attachment 519952 [details]
temp.tbz2
Comment 8 Pacho Ramos gentoo-dev 2018-02-20 09:05:31 UTC
please retry with 14.01.1
Comment 9 Toralf Förster gentoo-dev 2018-03-07 18:30:44 UTC
(In reply to Pacho Ramos from comment #8)
mr-fox /tmp/issues/20180306-201418_dev-lang_mercury-14.01.1 # cat issue 
scripts/Mmake.vars:674: warning: undefined variable 'DESTDIR'
Mmake.common:135: warning: undefined variable 'DESTDIR'
gmake[1]: *** No rule to make target '1'.  Stop.
gmake[1]: Leaving directory '/var/tmp/portage/dev-lang/mercury-14.01.1/work/mercury-srcdist-14.01.1'
make: *** [Makefile:29: all] Error 2
 * ERROR: dev-lang/mercury-14.01.1::gentoo failed (compile phase):
Comment 10 Pacho Ramos gentoo-dev 2018-04-13 18:29:50 UTC
Can you  provide the updated build.log?

This looks strange:
make -j 1 PARALLEL=-j 1 

It seems "${MAKEOPTS}" ends up being "-j 1" instead of "-j1" in your case (in my case it works ok)
Comment 11 Toralf Förster gentoo-dev 2018-04-13 18:38:23 UTC
(In reply to Pacho Ramos from comment #10)
I create the appropriate file as follows :

  cat << EOF                      > ./etc/portage/env/noconcurrent
MAKEOPTS="-j 1"
NINJAFLAGS="-j 1"
EGO_BUILD_FLAGS="-p 1"
GOMAXPROCS="1"
GO19CONCURRENTCOMPILATION=0
RUSTFLAGS="-C codegen-units=1"
RUST_TEST_THREADS=1
RUST_TEST_TASKS=1
EOF

which works fine for almost all packages except few ones
Comment 12 Pacho Ramos gentoo-dev 2018-04-13 18:52:36 UTC
Oh, I didn't even know that was supported :/, maybe you could open a tracker bug for that kind of issues as I wonder it's being tested (most of us I think that pass the number fused to the -j option)
Comment 13 Toralf Förster gentoo-dev 2018-04-13 20:15:34 UTC
hhm, 

manpage says '-j [jobs], --jobs[=jobs]'
Comment 14 Pacho Ramos gentoo-dev 2018-04-13 20:22:04 UTC
Yes, I checked manpage... that is the reason I suggested to open a tracker to catch that packages that are showing this issue in your tinderbox to fix them finally ;)
Comment 15 Keri Harris gentoo-dev 2018-07-17 15:22:13 UTC
This is now fixed in git. Thanks for reporting this bug.