[OpenWrt-Devel] Commit 8dcc1087602e breaks FA526 (Gemini) compile

Boris Krasnovskiy borkra at gmail.com
Wed May 1 20:53:34 EDT 2019


Hi Linus,

I did check generated toolchain defaults. They seem correct.
As such I believe issue is with one of the packages.
Extra information like crash log could help to determine which one.

Here are the generated toolchain defaults for gimeni:

The following options are target specific:
  -mabi=                      aapcs-linux
  -mabort-on-noreturn          [disabled]
  -mandroid                    [disabled]
  -mapcs                      [disabled]
  -mapcs-frame                [disabled]
  -mapcs-reentrant            [disabled]
  -mapcs-stack-check          [disabled]
  -march=                      armv4
  -marm                        [enabled]
  -masm-syntax-unified        [disabled]
  -mbe32                      [enabled]
  -mbe8                        [disabled]
  -mbig-endian                [disabled]
  -mbionic                    [disabled]
  -mbranch-cost=              -1
  -mcallee-super-interworking [disabled]
  -mcaller-super-interworking [disabled]
  -mcmse                      [disabled]
  -mcpu=                      fa526
  -mfix-cortex-m3-ldrd        [disabled]
  -mflip-thumb                [disabled]
  -mfloat-abi=                soft
  -mfp16-format=              none
  -mfpu=                      auto
  -mglibc                      [enabled]
  -mhard-float
  -mlittle-endian              [enabled]
  -mlong-calls                [disabled]
  -mmusl                      [disabled]
  -mneon-for-64bits            [disabled]
  -mpic-data-is-text-relative [enabled]
  -mpic-register=
  -mpoke-function-name        [disabled]
  -mprint-tune-info            [disabled]
  -mpure-code                  [disabled]
  -mrestrict-it                [disabled]
  -msched-prolog              [enabled]
  -msingle-pic-base            [disabled]
  -mslow-flash-data            [disabled]
  -msoft-float
  -mstructure-size-boundary=  8
  -mthumb                      [disabled]
  -mthumb-interwork            [disabled]
  -mtls-dialect=              gnu
  -mtp=                        soft
  -mtpcs-frame                [disabled]
  -mtpcs-leaf-frame            [disabled]
  -mtune=
  -muclibc                    [disabled]
  -munaligned-access          [disabled]
  -mvectorize-with-neon-double [disabled]
  -mvectorize-with-neon-quad  [enabled]
  -mword-relocations          [disabled]



On Wed, May 1, 2019 at 6:30 PM Boris Krasnovskiy <borkra at gmail.com> wrote:

> Hi Linus,
>
>
>
> I do not see anything wrong for your target. And I do not have any Gemini
> devices.
>
>
>
> Crash during init that you can see, is pretty far along in the boot
> process, so toolchain likely correct.
>
>
>
> Maybe an issue with some packages…
>
>
>
> You can run “ gcc -Q --help=target” on the compiled cross toolchain and
> check if default settings are correct, or post the output.
>
>
>
> Can you send us the crash log?
>
>
>
> Thank you,
> Boris Krasnovskiy
>
>
> ------------------------------
> *From:* Linus Walleij <linus.walleij at linaro.org>
> *Sent:* Wednesday, May 1, 2019 6:08:11 PM
> *To:* Boris Krasnovskiy; OpenWrt Development List
> *Subject:* Commit 8dcc1087602e breaks FA526 (Gemini) compile
>
> Hi Boris & friends,
>
> commit 8dcc1087602e2dd606e4f6e81a06aee62cfd4f4c
> "toolchain: ARM: Fix toolchain compilation for gcc 8.x"
> regresses the Gemini (FA526-based).
>
> I cannot quite see how. I noticed init crashed with the latest
> OpenWrt codebase and bisected it down to this commit.
>
> Before the commit include/target.mk has:
>
> ifneq ($(findstring arm,$(ARCH)),)
>  ....
>  CPU_CFLAGS_fa526 = -mcpu=fa526
>  ....
>  ifeq ($(CONFIG_SOFT_FLOAT),)
>     ....
>
> After in toolchain/gcc/common.mk we have:
>
> ifeq ($(CONFIG_arm),y)
> CC_CONFIGURE+= \
>        --with-cpu=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE)))
>  ....
>  ifneq ($(CONFIG_SOFT_FLOAT),y)
>     GCC_CONFIGURE+= \
>                --with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE)))
>                --with-float=hard
>
> It's a bit terse so I cannot really make this out :/
>
> Relevant stuff from my .config is:
> CONFIG_CPU_TYPE="fa526"
> CONFIG_arm=y
> CONFIG_ARCH="arm"
> CONFIG_SOFT_FLOAT=y
>
> Any hints?
>
> Yours,
> Linus Walleij
>


-- 
Thank you,
Boris Krasnovskiy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190501/c4dae6e2/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list