Skip to contentSkip to conversation

allmodconfig not working with dummy-tools

DISCUSSION Michal Suchánek 2 participants 4 messages Apr 1, 2021 – Apr 8, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

Hello,

running allmodconfig with dumy-tools I get:

which: no elfedit in (./scripts/dummy-tools) scripts/dummy-tools/gcc: unknown assembler invoked scripts/Kconfig.include:50: Sorry, this assembler is not supported. scripts/kconfig/Makefile:77: recipe for target 'allmodconfig' failed make[1]: *** [allmodconfig] Error 1
Makefile:648: recipe for target 'allmodconfig' failed
make: *** [allmodconfig] Error 2

I use allmodconfig to enable any unknown options on new kernel version automaticallly so it can be build-tested.

Can this be fixed or is there some other way of automatically udating the config after new options are added?

Thanks

Michal

#1 lore raw
Quoted 16 lines · Michal Suchánek

Hello,

running allmodconfig with dumy-tools I get:

which: no elfedit in (./scripts/dummy-tools) scripts/dummy-tools/gcc: unknown assembler invoked scripts/Kconfig.include:50: Sorry, this assembler is not supported. scripts/kconfig/Makefile:77: recipe for target 'allmodconfig' failed make[1]: *** [allmodconfig] Error 1
Makefile:648: recipe for target 'allmodconfig' failed
make: *** [allmodconfig] Error 2

I use allmodconfig to enable any unknown options on new kernel version automaticallly so it can be build-tested.

Quoted 6 lines

Can this be fixed or is there some other way of automatically udating the config after new options are added?

Thanks

Michal

Thanks for the report.
I squashed the following. Please wait for tomorrow's linux-next.

scripts/dummy-tools/gcc +6 -0
index 39e65fee59bd..f6d543725f1e 100755
@@ -67,6 +67,12 @@ if arg_contain -E "$@"; then
  fi
 fi
 
+# To set CONFIG_AS_IS_GNU
+if arg_contain -Wa,--version "$@"; then
+ echo "GNU assembler (scripts/dummy-tools) 2.50"
+ exit 0
+fi
+
 if arg_contain -S "$@"; then
  # For scripts/gcc-x86-*-has-stack-protector.sh
  if arg_contain -fstack-protector "$@"; then
Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

Hello,

thanks for the fix.

Quoted 10 lines · Masahiro Yamada

On Thu, Apr 1, 2021 at 9:39 PM Michal Suchánek <[email protected]> wrote:
I squashed the following. Please wait for tomorrow's linux-next.

scripts/dummy-tools/gcc +0 -0
index 39e65fee59bd..f6d543725f1e 100755
@@ -67,6 +67,12 @@ if arg_contain -E "$@"; then
  fi
 fi

scripts/dummy-tools/gcc if arg_contain -E "$@"; then · line 78

Quoted 10 lines
scripts/dummy-tools/gcc +6 -0
 
+# To set CONFIG_AS_IS_GNU
+if arg_contain -Wa,--version "$@"; then
+ echo "GNU assembler (scripts/dummy-tools) 2.50"
+ exit 0
+fi
+
 if arg_contain -S "$@"; then
  # For scripts/gcc-x86-*-has-stack-protector.sh
  if arg_contain -fstack-protector "$@"; then

Looks like this did not make it to linux-next (0104 does not have it, 0204 does not exist).

Nonetheless, applying the fixup resolves the problem.

Thanks

Michal

#3 lore raw
Quoted 16 lines · Michal Suchánek

Hello,

thanks for the fix.

Quoted 11 lines · Masahiro Yamada

On Thu, Apr 1, 2021 at 9:39 PM Michal Suchánek <[email protected]> wrote:
I squashed the following. Please wait for tomorrow's linux-next.

scripts/dummy-tools/gcc +0 -0
index 39e65fee59bd..f6d543725f1e 100755
@@ -67,6 +67,12 @@ if arg_contain -E "$@"; then
  fi
 fi
 
Quoted 12 lines

scripts/dummy-tools/gcc if arg_contain -E "$@"; then · line 78

Quoted 9 lines
scripts/dummy-tools/gcc +6 -0
+# To set CONFIG_AS_IS_GNU
+if arg_contain -Wa,--version "$@"; then
+ echo "GNU assembler (scripts/dummy-tools) 2.50"
+ exit 0
+fi
+
 if arg_contain -S "$@"; then
  # For scripts/gcc-x86-*-has-stack-protector.sh
  if arg_contain -fstack-protector "$@"; then

Looks like this did not make it to linux-next (0104 does not have it, 0204 does not exist).

The fixup still applies locally so it loooks like it is still not upstream.

Quoted 2 lines

Nonetheless, applying the fixup resolves the problem.

Mostly, I still get:

which: no elfedit in (./scripts/dummy-tools)

Quoted 4 lines

Thanks

Michal