Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473748 - Making magiclantern with >sys-devel/make-3.81-r2 fails
Summary: Making magiclantern with >sys-devel/make-3.81-r2 fails
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-18 20:53 UTC by Lebedev Roman
Modified: 2013-12-02 07:15 UTC (History)
0 users

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


Attachments
emerge --info from box with =sys-devel/make-3.82-r4 (emerge-1.info,10.46 KB, application/x-info)
2013-06-18 20:53 UTC, Lebedev Roman
Details
emerge --info from box with =sys-devel/make-3.81-r2 (emerge-2.info,9.02 KB, application/x-info)
2013-06-18 20:54 UTC, Lebedev Roman
Details
Makefile v.1 that fails (Makefile,8.74 KB, text/plain)
2013-06-19 12:07 UTC, Lebedev Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lebedev Roman 2013-06-18 20:53:37 UTC
Created attachment 351348 [details]
emerge --info from box with =sys-devel/make-3.82-r4

How to reproduce:
1. cd ~
2. hg clone -r unified https://bitbucket.org/hudson/magic-lantern
3. emerge sys-devel/make version > 3.81-r2
4. cd magic-lantern
5. make
Result:
Makefile.setup:108: *** missing separator.  Stop.
6. emerge =sys-devel/make-3.81-r2
8. make
Result:
make -C  /home/user/magic-lantern/platform/60D.111 
make[1]: Entering directory `/home/user/magic-lantern/platform/60D.111'
[ VERSION  ]   ../../platform/60D.111/version.bin
~/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc-4.7.3    -c -o ../../src/entry.o ../../src/entry.S
/bin/sh: /home/user/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-gcc-4.7.3: No such file or directory
make[1]: *** [../../src/entry.o] Error 127
make[1]: Leaving directory `/home/user/magic-lantern/platform/60D.111'
make: *** [60D] Error 2

This reproduces on both my gentoo boxes.
Also, =sys-devel/remake-3.82.0.9 fails too.
Debian with Make 3.81 is ok, arch linux x64 with Make 3.82-5 is ok too.
Comment 1 Lebedev Roman 2013-06-18 20:54:34 UTC
Created attachment 351350 [details]
emerge --info from box with =sys-devel/make-3.81-r2
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 00:55:46 UTC
There is no package magiclantern or magic-lantern in the tree.
Comment 3 Lebedev Roman 2013-06-19 06:33:40 UTC
Ok, true.
How about: all gentoo versions of sys-devel/make higher than 3.81-r2 fails to parse specific custom makefile?

Make version 3.82 on all other [tested] distros does not fail, so this is not because of the malformed makefile, but gentoo-specific bug in make.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 11:04:26 UTC
We cannot begin to fix it until you point out the (bad?) Makefile that triggers the bug.
Comment 5 Lebedev Roman 2013-06-19 12:07:15 UTC
Created attachment 351372 [details]
Makefile v.1 that fails

I have (correctly) combined Makefiles from that project into one Makefile that shows the problem.

Actual results with sys-devel/make version higher than 3.81-r2:
--------------------------------------------------------------------------------
$ make
Makefile:170: *** missing separator.  Stop.
--------------------------------------------------------------------------------
This stop is the issue, not ok.


Expected results with =sys-devel/make-3.81-r2:
--------------------------------------------------------------------------------
$ make
Makefile:187: /platform/Makefile.platform.map: No such file or directory
make: *** No rule to make target `/platform/Makefile.platform.map'.  Stop.
--------------------------------------------------------------------------------
This stop is ok.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-19 12:25:39 UTC
So the line in question would be:
$(foreach entry, $(_defined_configs), $(eval _CONFIGS-with-$($(entry))+= $(entry)))
Comment 7 SpanKY gentoo-dev 2013-12-02 07:15:50 UTC
it fails with make-4.0, and there are no custom Gentoo patches in there either

you probably want to report the issue here:
  https://savannah.gnu.org/projects/make

that will let the make maintainers themselves tell you what the problem is, or find & fix the bug in make itself.

in either case, let us know back please.