Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678354 - dev-embedded/sdcc-3.8.0-r1 - src_compile(): make -j5 -s // make[1]: *** No targets specified and no makefile found. Stop.
Summary: dev-embedded/sdcc-3.8.0-r1 - src_compile(): make -j5 -s // make[1]: *** No t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-19 08:02 UTC by email200202
Modified: 2019-02-19 21:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,22.96 KB, text/plain)
2019-02-19 08:02 UTC, email200202
Details
emerge --info '=dev-embedded/sdcc-3.8.0-r1::gentoo' (file_678354.txt,6.84 KB, text/plain)
2019-02-19 08:04 UTC, email200202
Details
emerge -pqv '=dev-embedded/sdcc-3.8.0-r1::gentoo' (file_678354.txt,282 bytes, text/plain)
2019-02-19 08:08 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2019-02-19 08:02:46 UTC
Created attachment 565820 [details]
build.log

ev-embedded/sdcc-3.8.0-r1 build failed with the message:

>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-embedded/sdcc-3.8.0-r1/work/sdcc-3.8.0 ...
make -j5 -s 
make[1]: *** No targets specified and no makefile found.  Stop.
make: *** [Makefile:147: sdcc-sdbinutils] Error 2
make: *** Waiting for unfinished jobs....
sdcclib.c: In function ‘AddList’:
sdcclib.c:666:42: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 1023 [-Wformat-overflow=]
                     sprintf(CmdLine, "%s %s", as, SrcName);
                                          ^~       ~~~~~~~
In file included from /usr/include/stdio.h:873,
                 from sdcclib.c:21:
/usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 1024
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sdcclib.c:655:42: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 1023 [-Wformat-overflow=]
                     sprintf(CmdLine, "%s %s", cc, SrcName);
                                          ^~       ~~~~~~~
In file included from /usr/include/stdio.h:873,
                 from sdcclib.c:21:
/usr/include/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output 2 or more bytes (assuming 4097) into a destination of size 1024
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 * ERROR: dev-embedded/sdcc-3.8.0-r1::gentoo failed (compile phase):
 *   emake failed
 *
Comment 1 email200202 2019-02-19 08:04:50 UTC
Created attachment 565822 [details]
emerge --info '=dev-embedded/sdcc-3.8.0-r1::gentoo'
Comment 2 email200202 2019-02-19 08:08:33 UTC
Created attachment 565824 [details]
emerge -pqv '=dev-embedded/sdcc-3.8.0-r1::gentoo'
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-19 08:25:30 UTC
(In reply to email200202 from comment #0)
> Created attachment 565820 [details]
> build.log
> 
> ev-embedded/sdcc-3.8.0-r1 build failed with the message:
> 
> >>> Source configured.
> >>> Compiling source in /var/tmp/portage/dev-embedded/sdcc-3.8.0-r1/work/sdcc-3.8.0 ...
> make -j5 -s 
> make[1]: *** No targets specified and no makefile found.  Stop.
> make: *** [Makefile:147: sdcc-sdbinutils] Error 2

The overflow warning is a red herring. It complains about missing USE=sdbinutils.
Try USE="sdbinutils pic16" emerge -v1 sdcc.
Comment 4 Ian Stakenvicius (RETIRED) gentoo-dev 2019-02-19 20:24:13 UTC
REQUIRED_USE may be necessary to ensure sdbinutils is enabled when its needed...?
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2019-02-19 21:11:31 UTC
There is already a bunch of REQUIRED_USEs:
    https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild#n36
Looking at the Makefile I think it's just an unconditional dep on any target. 

I'll spend some time staring at Makefile and enable unconditionally if I'll not be able to find out any hidden conditional logic.
Comment 6 Larry the Git Cow gentoo-dev 2019-02-19 21:56:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db0c635fbd9f7999131347f630d6b21d41a762d0

commit db0c635fbd9f7999131347f630d6b21d41a762d0
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-02-19 21:56:18 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-02-19 21:56:18 +0000

    dev-embedded/sdcc: require sdbinutils for every port, bug #678354
    
    Top-level Makefile unconditionally pulls in sdcc-binutils as a dependency.
    If being opted out explicitly the build always fails as:
        make -j5 -s
        make[1]: *** No targets specified and no makefile found.  Stop.
        make: *** [Makefile:147: sdcc-sdbinutils] Error 2
    
    Fix it by effectively requiring IUSE=sdbinutils for each port.
    
    Reported-by: email200202@yahoo.com
    Closes: https://bugs.gentoo.org/678354
    Package-Manager: Portage-2.3.61, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-embedded/sdcc/sdcc-3.8.0-r1.ebuild | 14 +++++++-------
 dev-embedded/sdcc/sdcc-9999.ebuild     | 14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)