From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Seiderer Date: Sat, 18 Nov 2017 22:32:06 +0100 Subject: [Buildroot] Cannot rebuild autobuild In-Reply-To: References: <20171113102757.ir7so5o7h7zopcvq@dell5510> <20171113144231.gddccsqlelrhrokw@dell5510> <20171114234409.114f002f@gmx.net> <20171115125857.dcy6j7qvjt32ww43@dell5510> <61134b08-bb0a-4665-4b68-3ea2e4063563@mind.be> <20171116001919.67e98b4b@gmx.net> <58b8ef53-75b6-fc8b-8d37-e21570ae4e3b@mind.be> <20171116072948.smctbcvxwkxgqoah@x230> Message-ID: <20171118223206.069b771a@gmx.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello Arnout, On Thu, 16 Nov 2017 14:43:48 +0100, Arnout Vandecappelle wrote: > On 16-11-17 08:29, Petr Vorel wrote: > > Hi, > > > > ... > >>> make[1]: *** No rule to make target 'toolchain-external-custom', needed by '.../build-prebuild-toolchain-001/build/toolchain-external/.stamp_configured'. Stop. > >>> make: *** [Makefile:16: _all] Error 2 > > > >>> The error occurs before the prebuild toolchain is downloaded/extracted... > > > >> That is really weird, the toolchain-external-custom dependencies should be > >> defined no matter what... Could you pastebin the output make 'make -qp' somewhere? > > Here it is: > > http://sipe.cz/buildroot/out.log (68M) > > http://sipe.cz/buildroot/out.log.tar.gz (9MB) > > Oh boy... > > The problem is that on Tumbleweed the order of inclusion seems to be different, > which causes toolchain-external-package not to be defined at the time that > toolchain-external-custom.mk is included (same for all other external toolchains). > > Makefile:492:include toolchain/*/*.mk > > This causes inclusion of > toolchain/toolchain-external/toolchain-external.mk:28:include > toolchain/toolchain-external/*/*.mk > and > toolchain/toolchain-external/pkg-toolchain-external.mk:592:toolchain-external-package > = ... > > If the *.mk is expanded in alphabetical order, pkg-toolchain-external.mk will > always come before toolchain-external.mk. Otherwise it is possible (depending on > the state of hash tables or inode numbers or whatever) that > toolchain-external-custom.mk gets included first. According to this [1] it is a change from the used gnu-make version (on Tumpbleweed GNU Make 4.2.1 is used)? Regards, Peter [1] https://stackoverflow.com/questions/40558385/gnu-make-wildcard-no-longer-gives-sorted-output-is-there-any-control-switch > > The short-term solution is of course $(sort $(wildcard ...)) > > But for the long term, I think it's better to move pkg-*.mk to support/misc (or > maybe to support/make) and organise the order of inclusion from there. > > Any takers? Yann? > > Regards, > Arnout >