Skip to contentSkip to conversation

parisc: suppress error messages for 'make clean'

PATCH In review Masahiro Yamada 3 participants 9 messages Apr 25, 2020 – Jun 13, 2020 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parisc: suppress error messages for 'make clean'

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

---

 arch/parisc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/parisc/Makefile +1 -1
index 628cd8bb7ad8..d82787da43cd 100644
@@ -21,7 +21,7 @@ KBUILD_IMAGE := vmlinuz
 
 NM		= sh $(srctree)/arch/parisc/nm
 CHECKFLAGS	+= -D__hppa__=1
-LIBGCC		= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+LIBGCC		:= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name 2>/dev/null)
 export LIBGCC
 
 ifdef CONFIG_64BIT
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · Masahiro Yamada

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

Quoted 22 lines

---

 arch/parisc/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/parisc/Makefile +1 -2
index 628cd8bb7ad8..d82787da43cd 100644
@@ -21,7 +21,7 @@ KBUILD_IMAGE := vmlinuz
 
 NM             = sh $(srctree)/arch/parisc/nm
 CHECKFLAGS     += -D__hppa__=1
-LIBGCC         = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+LIBGCC         := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name 2>/dev/null)
 export LIBGCC
 
 ifdef CONFIG_64BIT
--

2.25.1

Signature · 2 lines
Best Regards
Masahiro Yamada
maintainer
#2 lore raw

* Masahiro Yamada <[email protected]>:

Quoted 15 lines · Masahiro Yamada
Quoted 14 lines

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 8 lines
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

That patch breaks then building the boot loader/compressor:
...
hppa-linux-gnu-ld -X -e startup --as-needed -T arch/parisc/boot/compressed/vmlinux.lds arch/parisc/boot/compressed/head.o arch/parisc/boot/compressed/real2.o arch/parisc/boot/compressed/firmware.o arch/parisc/boot/compressed/misc.o arch/parisc/boot/compressed/piggy.o -o arch/parisc/boot/compressed/vmlinux
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `dec_vli':
(.text+0x104): undefined reference to `__ashldi3'
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `lzma_len':
(.text+0x2b0): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x344): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x3f8): undefined reference to `$$mulI'

The patch below works, but I wonder if it's possible to avoid to examine LIBGCC twice....?

Helge

arch/parisc/Makefile +1 -2
index 628cd8bb7ad8..aeea20abbf01 100644
@@ -21,8 +21,7 @@ KBUILD_IMAGE := vmlinuz
 
 NM		= sh $(srctree)/arch/parisc/nm
 CHECKFLAGS	+= -D__hppa__=1
-LIBGCC		= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-export LIBGCC
+LIBGCC		:= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 ifdef CONFIG_64BIT
 UTS_MACHINE	:= parisc64
arch/parisc/boot/compressed/Makefile +2 -0
index 1e5879c6a752..b008cf1b5c1e 100644
@@ -22,6 +22,8 @@ ifndef CONFIG_64BIT
 KBUILD_CFLAGS += -mfast-indirect-calls
 endif
 
+LIBGCC  := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+
 OBJECTS += $(obj)/head.o $(obj)/real2.o $(obj)/firmware.o $(obj)/misc.o $(obj)/piggy.o
 
 LDFLAGS_vmlinux := -X -e startup --as-needed -T
#3 lore raw

Hi Helge,

Quoted 37 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 15 lines · Masahiro Yamada
Quoted 14 lines

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 8 lines
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

That patch breaks then building the boot loader/compressor:
...
hppa-linux-gnu-ld -X -e startup --as-needed -T arch/parisc/boot/compressed/vmlinux.lds arch/parisc/boot/compressed/head.o arch/parisc/boot/compressed/real2.o arch/parisc/boot/compressed/firmware.o arch/parisc/boot/compressed/misc.o arch/parisc/boot/compressed/piggy.o -o arch/parisc/boot/compressed/vmlinux
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `dec_vli':
(.text+0x104): undefined reference to `__ashldi3'
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `lzma_len':
(.text+0x2b0): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x344): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x3f8): undefined reference to `$$mulI'

Quoted 4 lines

The patch below works, but I wonder if it's possible to avoid to examine LIBGCC twice....?

Helge

Sorry for the breakage.

How about moving LIBGCC below ?

arch/parisc/Makefile +0 -3
index d82787da43cd..6b37aa37a365 100644
@@ -21,8 +21,6 @@ KBUILD_IMAGE := vmlinuz
 
 NM             = sh $(srctree)/arch/parisc/nm
 CHECKFLAGS     += -D__hppa__=1
-LIBGCC         := $(shell $(CC) $(KBUILD_CFLAGS)
-print-libgcc-file-name 2>/dev/null)
-export LIBGCC
 
 ifdef CONFIG_64BIT

UTS_MACHINE := parisc64
@@ -114,6 +112,10 @@ KBUILD_CFLAGS += $(cflags-y)
kernel-y := mm/ kernel/ math-emu/

core-y += $(addprefix arch/parisc/, $(kernel-y))
+
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name 2>/dev/null) +export LIBGCC
+
libs-y += arch/parisc/lib/ $(LIBGCC)

drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/

Quoted 28 lines
arch/parisc/Makefile +1 -2
index 628cd8bb7ad8..aeea20abbf01 100644
@@ -21,8 +21,7 @@ KBUILD_IMAGE := vmlinuz
 
 NM             = sh $(srctree)/arch/parisc/nm
 CHECKFLAGS     += -D__hppa__=1
-LIBGCC         = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-export LIBGCC
+LIBGCC         := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
 ifdef CONFIG_64BIT
 UTS_MACHINE    := parisc64
arch/parisc/boot/compressed/Makefile +2 -0
index 1e5879c6a752..b008cf1b5c1e 100644
@@ -22,6 +22,8 @@ ifndef CONFIG_64BIT
 KBUILD_CFLAGS += -mfast-indirect-calls
 endif
 
+LIBGCC  := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+
 OBJECTS += $(obj)/head.o $(obj)/real2.o $(obj)/firmware.o $(obj)/misc.o $(obj)/piggy.o
 
 LDFLAGS_vmlinux := -X -e startup --as-needed -T
Signature · 2 lines
Best Regards
Masahiro Yamada
maintainer
#4 lore raw

* Masahiro Yamada <[email protected]>:

Quoted 43 lines

Hi Helge,

Quoted 40 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 15 lines · Masahiro Yamada
Quoted 14 lines

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 8 lines
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

That patch breaks then building the boot loader/compressor:
...
hppa-linux-gnu-ld -X -e startup --as-needed -T arch/parisc/boot/compressed/vmlinux.lds arch/parisc/boot/compressed/head.o arch/parisc/boot/compressed/real2.o arch/parisc/boot/compressed/firmware.o arch/parisc/boot/compressed/misc.o arch/parisc/boot/compressed/piggy.o -o arch/parisc/boot/compressed/vmlinux
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `dec_vli':
(.text+0x104): undefined reference to `__ashldi3'
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `lzma_len':
(.text+0x2b0): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x344): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x3f8): undefined reference to `$$mulI'

The patch below works, but I wonder if it's possible to avoid to examine LIBGCC twice....?

Quoted 6 lines
Quoted 1 line

Helge

Sorry for the breakage.

How about moving LIBGCC below ?

Good idea.
The patch below does work for me.
We do not need $KBUILD_CFLAGS to get the libgcc.a filename, so we do not need to pipe the output to /dev/null either. Can you try if that works, and if yes, can you apply it?

Helge

arch/parisc/Makefile +2 -2
index 628cd8bb7ad8..fadbbd010337 100644
@@ -21,8 +21,6 @@ KBUILD_IMAGE := vmlinuz
 
 NM		= sh $(srctree)/arch/parisc/nm
 CHECKFLAGS	+= -D__hppa__=1
-LIBGCC		= $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-export LIBGCC
 
 ifdef CONFIG_64BIT
 UTS_MACHINE	:= parisc64
@@ -110,6 +108,8 @@ cflags-$(CONFIG_PA8X00)		+= -march=2.0 -mschedule=8000
 head-y			:= arch/parisc/kernel/head.o
 
 KBUILD_CFLAGS	+= $(cflags-y)
+LIBGCC		:= $(shell $(CC) -print-libgcc-file-name)
+export LIBGCC
 
 kernel-y			:= mm/ kernel/ math-emu/
 
#5 lore raw

Hi Helge,

Quoted 48 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 46 lines

Hi Helge,

Quoted 41 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 15 lines · Masahiro Yamada
Quoted 14 lines

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 8 lines
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

That patch breaks then building the boot loader/compressor:
...
hppa-linux-gnu-ld -X -e startup --as-needed -T arch/parisc/boot/compressed/vmlinux.lds arch/parisc/boot/compressed/head.o arch/parisc/boot/compressed/real2.o arch/parisc/boot/compressed/firmware.o arch/parisc/boot/compressed/misc.o arch/parisc/boot/compressed/piggy.o -o arch/parisc/boot/compressed/vmlinux
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `dec_vli':
(.text+0x104): undefined reference to `__ashldi3'
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `lzma_len':
(.text+0x2b0): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x344): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x3f8): undefined reference to `$$mulI'

The patch below works, but I wonder if it's possible to avoid to examine LIBGCC twice....?

Helge

Quoted 7 lines
Quoted 3 lines

Sorry for the breakage.

How about moving LIBGCC below ?

Good idea.
The patch below does work for me.
We do not need $KBUILD_CFLAGS to get the libgcc.a filename,

I not not sure about this change.

Generally speaking, the path to libgcc.a is affected by compiler flags, especially, bit size flags, endian flags, etc.

For example, my distro gcc is biarch for i386/x86_64.

$ gcc -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a
$ gcc -m64 -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a
$ gcc -m32 -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/32/libgcc.a

One real example in Linux is arch/arc/Makefile. ARC supports both big endian and little endian.

If you drop cflags-y from line 59
of arch/arc/Makefile, vmlinux fails to link due to endian mismatch.

I am not familiar with parisc.
Also, as it turned out,
this change is not so trivial.

I think the best approach is to leave this up to you since you are the parisc maintainer.

I will drop this patch from my kbuild tree, then you will apply what you think is best to your tree.

What do you think?

Quoted 28 lines

so we do not need to pipe the output to /dev/null either. Can you try if that works, and if yes, can you apply it?

Helge

arch/parisc/Makefile +2 -2
index 628cd8bb7ad8..fadbbd010337 100644
@@ -21,8 +21,6 @@ KBUILD_IMAGE := vmlinuz
 
 NM             = sh $(srctree)/arch/parisc/nm
 CHECKFLAGS     += -D__hppa__=1
-LIBGCC         = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-export LIBGCC
 
 ifdef CONFIG_64BIT
 UTS_MACHINE    := parisc64
@@ -110,6 +108,8 @@ cflags-$(CONFIG_PA8X00)             += -march=2.0 -mschedule=8000
 head-y                 := arch/parisc/kernel/head.o
 
 KBUILD_CFLAGS  += $(cflags-y)
+LIBGCC         := $(shell $(CC) -print-libgcc-file-name)
+export LIBGCC
 
 kernel-y                       := mm/ kernel/ math-emu/
 
Signature · 2 lines
Best Regards
Masahiro Yamada
maintainer
#6 lore raw
Quoted 82 lines · Masahiro Yamada

Hi Helge,

Quoted 48 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 46 lines

Hi Helge,

Quoted 41 lines · Helge Deller

* Masahiro Yamada <[email protected]>:

Quoted 15 lines · Masahiro Yamada
Quoted 14 lines

'make ARCH=parisc clean' emits a tons of error messages as follows:

  $ make ARCH=parisc clean
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
  gcc: error: unrecognized command line option '-mno-space-regs'
  gcc: error: unrecognized command line option '-mfast-indirect-calls'; did you mean '-mforce-indirect-call'?
  gcc: error: unrecognized command line option '-mdisable-fpregs'
  gcc: error: missing argument to '-Wframe-larger-than='
    ...
Quoted 8 lines
Quoted 6 lines

You can supporess them except '-Wframe-larger-than' by setting correct CROSS_COMPILE=, but we should not require any compiler for cleaning.

This $(shell ...) is evaluated so many times because LIBGCC is exported. Use the ':=' operator to evaluate it just once, and sink the stderr.

Applied to linux-kbuild.

That patch breaks then building the boot loader/compressor:
...
hppa-linux-gnu-ld -X -e startup --as-needed -T arch/parisc/boot/compressed/vmlinux.lds arch/parisc/boot/compressed/head.o arch/parisc/boot/compressed/real2.o arch/parisc/boot/compressed/firmware.o arch/parisc/boot/compressed/misc.o arch/parisc/boot/compressed/piggy.o -o arch/parisc/boot/compressed/vmlinux
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `dec_vli':
(.text+0x104): undefined reference to `__ashldi3'
hppa-linux-gnu-ld: arch/parisc/boot/compressed/misc.o: in function `lzma_len':
(.text+0x2b0): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x344): undefined reference to `$$mulI'
hppa-linux-gnu-ld: (.text+0x3f8): undefined reference to `$$mulI'

The patch below works, but I wonder if it's possible to avoid to examine LIBGCC twice....?

Helge

Quoted 7 lines
Quoted 3 lines

Sorry for the breakage.

How about moving LIBGCC below ?

Good idea.
The patch below does work for me.
We do not need $KBUILD_CFLAGS to get the libgcc.a filename,

I not not sure about this change.
Generally speaking, the path to libgcc.a is affected by compiler flags, especially, bit size flags, endian flags, etc.

For example, my distro gcc is biarch for i386/x86_64.

$ gcc -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a
$ gcc -m64 -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a
$ gcc -m32 -print-libgcc-file-name
/usr/lib/gcc/x86_64-linux-gnu/9/32/libgcc.a

One real example in Linux is arch/arc/Makefile.
ARC supports both big endian and little endian.

If you drop cflags-y from line 59
of arch/arc/Makefile, vmlinux fails to link
due to endian mismatch.

Quoted 6 lines

I am not familiar with parisc.
Also, as it turned out,
this change is not so trivial.

I think the best approach is to leave this up to you since you are the parisc maintainer.

Yes, I knew about the possible biarch options.
On parisc that's not relevant yet.

Quoted 5 lines

I will drop this patch from my kbuild tree,
then you will apply what you think is best
to your tree.

What do you think?

Sure, I'll take it through the parisc tree.

Thanks!
Helge

Quoted 30 lines
Quoted 28 lines

so we do not need to pipe the output to /dev/null either. Can you try if that works, and if yes, can you apply it?

Helge

arch/parisc/Makefile +2 -2
index 628cd8bb7ad8..fadbbd010337 100644
@@ -21,8 +21,6 @@ KBUILD_IMAGE := vmlinuz
 
 NM             = sh $(srctree)/arch/parisc/nm
 CHECKFLAGS     += -D__hppa__=1
-LIBGCC         = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
-export LIBGCC
 
 ifdef CONFIG_64BIT
 UTS_MACHINE    := parisc64
@@ -110,6 +108,8 @@ cflags-$(CONFIG_PA8X00)             += -march=2.0 -mschedule=8000
 head-y                 := arch/parisc/kernel/head.o
 
 KBUILD_CFLAGS  += $(cflags-y)
+LIBGCC         := $(shell $(CC) -print-libgcc-file-name)
+export LIBGCC
 
 kernel-y                       := mm/ kernel/ math-emu/
 
#7 lore raw
Quoted 5 lines · Helge Deller
Quoted 3 lines · Masahiro Yamada

Hi Helge,

On Sun, May 10, 2020 at 2:39 AM Helge Deller <[email protected]> wrote:

Quoted 7 lines
Quoted 5 lines

I will drop this patch from my kbuild tree,
then you will apply what you think is best
to your tree.

What do you think?

Sure, I'll take it through the parisc tree.

Is this already in 5.7.2? I get these:

pioneer /usr/src/linux-5.7.1-gentoo # make distclean
gcc: error: missing argument to '-Wframe-larger-than='
gcc: error: missing argument to '-Wframe-larger-than='
CLEAN arch/parisc/kernel
gcc: error: missing argument to '-Wframe-larger-than='
gcc: error: missing argument to '-Wframe-larger-than='

Eike

maintainer
#8 lore raw
Quoted 10 lines · Rolf Eike Beer
Quoted 9 lines · Helge Deller
Quoted 8 lines · Masahiro Yamada

Hi Helge,

On Sun, May 10, 2020 at 2:39 AM Helge Deller <[email protected]> wrote:

I will drop this patch from my kbuild tree,
then you will apply what you think is best
to your tree.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

What do you think?

Sure, I'll take it through the parisc tree.

Is this already in 5.7.2?

No, because it went into 5.8 kernel and not backwards into 5.7.x:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0d341e0ddb1a3444716420ad9151949c02adbe4e

Helge

Quoted 8 lines

I get these:

pioneer /usr/src/linux-5.7.1-gentoo # make distclean
gcc: error: missing argument to '-Wframe-larger-than='
gcc: error: missing argument to '-Wframe-larger-than='
CLEAN arch/parisc/kernel
gcc: error: missing argument to '-Wframe-larger-than='
gcc: error: missing argument to '-Wframe-larger-than='