[BUG] POWER: undefined reference to `_restgpr_25_x'
Wolfgang Denk
wd at denx.de
Mon Dec 16 14:10:07 CET 2019
Dear Heinrich,
In message <a1f758e3-303e-ce3f-c2d7-8a7e4d425535 at gmx.de> you wrote:
>
> with powerpc64-linux-gnu-gcc, version 9.2.1, big endian I see the errors
> below when compiling P2041RDB_defconfig.
I'm not sure if it's a good idea (and supposed to work) to use a 64
bit compiler for a 32 bit application. It might be missing some of
the needed gcc libraries.
> I needed the following changes to be able to compile at all:
>
> diff --git a/Makefile b/Makefile
> index 0766f78dcb..71f98a2615 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -412,7 +412,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__
> -Dunix -D__unix__ \
>
> KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
>
> -KBUILD_CFLAGS := -Wall -Wstrict-prototypes \
> +KBUILD_CFLAGS := -Wall -Wstrict-prototypes
> -Wno-error=address-of-packed-member \
> -Wno-format-security \
> -fno-builtin -ffreestanding $(CSTD_FLAG)
> KBUILD_CFLAGS += -fshort-wchar -fno-strict-aliasing
This patch is linewrapped, right?
I can't see how adding -Wno-error=address-of-packed-member would be
related to fixing undefined reference to `_restgpr_31_x' errors.
> diff --git a/examples/Makefile b/examples/Makefile
> index d440bc5655..825954c185 100644
> --- a/examples/Makefile
> +++ b/examples/Makefile
> @@ -6,6 +6,6 @@ ifdef FTRACE
> subdir-ccflags-y += -finstrument-functions -DFTRACE
> endif
>
> -subdir-y += standalone
> +#subdir-y += standalone
This is apparently unrelated, too ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
PUBLIC NOTICE AS REQUIRED BY LAW: Any Use of This Product, in Any
Manner Whatsoever, Will Increase the Amount of Disorder in the
Universe. Although No Liability Is Implied Herein, the Consumer Is
Warned That This Process Will Ultimately Lead to the Heat Death of
the Universe.
More information about the U-Boot
mailing list