New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scripts/diffconfig.sh: cannot parse config.buildinfo from buildbot #9297
Comments
Enabled CONFIG_ALL_KMODS and ran make kernel_menuconfig against bcm2710 to update defconfig. Some of the removed symbols are present in target/linux/generic/config-5.10 while others were removed by the make target. Signed-off-by: John Audia <graysky@archlinux.us> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (wrapped)
Does the issue persist after |
Ah, so that is an extra step indeed. It is also noisy/verbose. Is that to be expected?
And
Despite the "no such file" output, it did create
|
The |
I reported this on #openwrt-devel yesterday, but looking at the logs other people ran into it too, so we're definitely not the only ones. E.g. my report on IRC and a later one. |
What about following fix? @cotequeiroz @aparcar diff --git a/include/toplevel.mk b/include/toplevel.mk
index 1e543ebcb98f..ce744bc92ccf 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -101,7 +101,7 @@ ifneq ($(DISTRO_PKG_CONFIG),)
scripts/config/%onf: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
endif
scripts/config/%onf: CFLAGS+= -O2
-scripts/config/%onf:
+scripts/config/%onf: FORCE
@$(_SINGLE)$(SUBMAKE) $(if $(findstring s,$(OPENWRT_VERBOSE)),,-s) \
-C scripts/config $(notdir $@) Seems to work as expected: $ rm .config; touch scripts/config/conf.c; make defconfig V=s 2>&1 | grep ^cc
cc -O2 -c -o conf.o conf.c
cc conf.o confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o symbol.o util.o -o conf
$ rm .config; make defconfig V=s 2>&1 | grep ^cc Reproducer is reverting and re-applying of 009293c. |
Functional Changes ---------- ------- - make 'imply' not impose any restrictions: allow symbols implied by y to become m - change "modules" from sub-option to first-level attribute Bugfixes -------- - nconf: fix core dump when searching in empty menu - nconf: stop endless search loops - xconfig: fix content of the main widget - xconfig: fix support for the split view mode Other Changes ----- ------- - highlight xconfig 'comment' lines with '***' - xconfig: navigate menus on hyperlinks - xconfig: drop support for Qt4 - improve host ncurses detection Update the 'option modules' usage to just 'modules' in Config.in. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
@ynezz works for me, if it doesn't slow down things, let's do it. |
This was transient, and occurred after of the scrips/config update when you already have the old version built. If you start from a clean clone, you don't get the error. @Borromini is right that a warning about this situation should have been made--or better yet, fixed it--and I apologize for the inconvenience. @ynezz's fix works in the following case:
However, there's still a glitch that needs to be fixed. If instead of
This was happening before 009293c, but has not been caught until now.
Select libopenssl and save. You can use
Notice the absence of --- a/scripts/diffconfig.sh
+++ b/scripts/diffconfig.sh
@@ -8,6 +8,7 @@ grep '^CONFIG_DEVEL=y' .config >> tmp/.diffconfig.head
grep '^CONFIG_TOOLCHAINOPTS=y' .config >> tmp/.diffconfig.head
grep '^CONFIG_BUSYBOX_CUSTOM=y' .config >> tmp/.diffconfig.head
grep '^CONFIG_TARGET_PER_DEVICE_ROOTFS=y' .config >> tmp/.diffconfig.head
+make -s ./scripts/config/conf
./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage1 Config.in >/dev/null
./scripts/kconfig.pl '>+' tmp/.diffconfig.stage1 .config >> tmp/.diffconfig.head
./scripts/config/conf --defconfig=tmp/.diffconfig.head -w tmp/.diffconfig.stage2 Config.in >/dev/null Edit: to be clear: The fix needs both patches (@ynezz's and mine) to work. |
@ynezz, if you want to push the fix to diffconfig.sh along with yours, here's the commit: |
@cotequeiroz Thanks! |
Toplevel Make is not aware about changes in the `scripts/config/*conf` targets and this is causing issues for during update to that part of build tree, where one needs to handle this manually by either force rebuilding the targets or running `make config-clean`. Fix this by forcing the rebuild if necessary. Fixes: openwrt#9297 Signed-off-by: Petr Štetiar <ynezz@true.cz>
@cotequeiroz seems like c0849c1 has likely introduced regression with config.buildinfo as it has wrong content now:
|
This reverts commit c0849c1 as it seems to introduce regression in config.buildinfo files produced at least by buildbots: $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2 make[3]: Entering directory '/builder/shared-workdir/build' make[3]: Leaving directory '/builder/shared-workdir/build' References: #9297 (comment) Signed-off-by: Petr Štetiar <ynezz@true.cz>
Yeah, old versions of I have a few ideas about how to proceed:
Notice that I'm aborting if I would rather not proceed than risking to write a bad file that is apparently OK, which is a possible scenario of passing new Aborting at the stage where I had the |
This reverts commit c0849c1 as it seems to introduce regression in config.buildinfo files produced at least by buildbots: $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2 make[3]: Entering directory '/builder/shared-workdir/build' make[3]: Leaving directory '/builder/shared-workdir/build' References: openwrt/openwrt#9297 (comment) Signed-off-by: Petr Štetiar <ynezz@true.cz>
This reverts commit c0849c1 as it seems to introduce regression in config.buildinfo files produced at least by buildbots: $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2 make[3]: Entering directory '/builder/shared-workdir/build' make[3]: Leaving directory '/builder/shared-workdir/build' References: openwrt#9297 (comment) Signed-off-by: Petr Štetiar <ynezz@true.cz>
This reverts commit c0849c1 as it seems to introduce regression in config.buildinfo files produced at least by buildbots: $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2 make[3]: Entering directory '/builder/shared-workdir/build' make[3]: Leaving directory '/builder/shared-workdir/build' References: openwrt/openwrt#9297 (comment) Signed-off-by: Petr Štetiar <ynezz@true.cz>
Toplevel Make is not aware about changes in the `scripts/config/*conf` targets and this is causing issues for during update to that part of build tree, where one needs to handle this manually by either force rebuilding the targets or running `make config-clean`. Fix this by forcing the rebuild if necessary. Fixes: openwrt#9297 Signed-off-by: Petr Štetiar <ynezz@true.cz>
This reverts commit c0849c1 as it seems to introduce regression in config.buildinfo files produced at least by buildbots: $ curl -s https://downloads.openwrt.org/snapshots/targets/ath79/generic/config.buildinfo | head -2 make[3]: Entering directory '/builder/shared-workdir/build' make[3]: Leaving directory '/builder/shared-workdir/build' References: openwrt#9297 (comment) Signed-off-by: Petr Štetiar <ynezz@true.cz>
Should be fixed, thanks. |
Something is causing
scripts/diffconfig.sh
to fail. You can reproduce this by getting the build bot config and running the script on it.The text was updated successfully, but these errors were encountered: