<div dir="ltr"><div dir="ltr">Hi Linus,<div><br></div><div>I did check generated toolchain defaults. They seem correct. </div><div>As such I believe issue is with one of the packages. </div><div>Extra information like crash log could help to determine which one.</div><div><br></div><div>Here are the generated toolchain defaults for gimeni:</div><div><br></div><div><div>The following options are target specific:</div><div>  -mabi=                      <span style="white-space:pre">               </span>aapcs-linux</div><div>  -mabort-on-noreturn         <span style="white-space:pre">               </span>[disabled]</div><div>  -mandroid                   <span style="white-space:pre">           </span>[disabled]</div><div>  -mapcs                      <span style="white-space:pre">          </span>[disabled]</div><div>  -mapcs-frame                <span style="white-space:pre">             </span>[disabled]</div><div>  -mapcs-reentrant            <span style="white-space:pre">               </span>[disabled]</div><div>  -mapcs-stack-check          <span style="white-space:pre">                </span>[disabled]</div><div>  -march=                     <span style="white-space:pre">          </span>armv4</div><div>  -marm                       <span style="white-space:pre">              </span>[enabled]</div><div>  -masm-syntax-unified        <span style="white-space:pre">          </span>[disabled]</div><div>  -mbe32                      <span style="white-space:pre">          </span>[enabled]</div><div>  -mbe8                       <span style="white-space:pre">          </span>[disabled]</div><div>  -mbig-endian                <span style="white-space:pre">             </span>[disabled]</div><div>  -mbionic                    <span style="white-space:pre">           </span>[disabled]</div><div>  -mbranch-cost=              <span style="white-space:pre">              </span>-1</div><div>  -mcallee-super-interworking <span style="white-space:pre">             </span>[disabled]</div><div>  -mcaller-super-interworking <span style="white-space:pre">             </span>[disabled]</div><div>  -mcmse                      <span style="white-space:pre">          </span>[disabled]</div><div>  -mcpu=                      <span style="white-space:pre">          </span>fa526</div><div>  -mfix-cortex-m3-ldrd        <span style="white-space:pre">              </span>[disabled]</div><div>  -mflip-thumb                <span style="white-space:pre">             </span>[disabled]</div><div>  -mfloat-abi=                <span style="white-space:pre">             </span>soft</div><div>  -mfp16-format=              <span style="white-space:pre">            </span>none</div><div>  -mfpu=                      <span style="white-space:pre">                </span>auto</div><div>  -mglibc                     <span style="white-space:pre">                </span>[enabled]</div><div>  -mhard-float                <span style="white-space:pre">              </span></div><div>  -mlittle-endian             <span style="white-space:pre">                </span>[enabled]</div><div>  -mlong-calls                <span style="white-space:pre">              </span>[disabled]</div><div>  -mmusl                      <span style="white-space:pre">          </span>[disabled]</div><div>  -mneon-for-64bits           <span style="white-space:pre">               </span>[disabled]</div><div>  -mpic-data-is-text-relative <span style="white-space:pre">             </span>[enabled]</div><div>  -mpic-register=             <span style="white-space:pre">               </span></div><div>  -mpoke-function-name        <span style="white-space:pre">           </span>[disabled]</div><div>  -mprint-tune-info           <span style="white-space:pre">               </span>[disabled]</div><div>  -mpure-code                 <span style="white-space:pre">            </span>[disabled]</div><div>  -mrestrict-it               <span style="white-space:pre">             </span>[disabled]</div><div>  -msched-prolog              <span style="white-space:pre">              </span>[enabled]</div><div>  -msingle-pic-base           <span style="white-space:pre">                </span>[disabled]</div><div>  -mslow-flash-data           <span style="white-space:pre">               </span>[disabled]</div><div>  -msoft-float                <span style="white-space:pre">             </span></div><div>  -mstructure-size-boundary=  <span style="white-space:pre">              </span>8</div><div>  -mthumb                     <span style="white-space:pre">           </span>[disabled]</div><div>  -mthumb-interwork           <span style="white-space:pre">               </span>[disabled]</div><div>  -mtls-dialect=              <span style="white-space:pre">              </span>gnu</div><div>  -mtp=                       <span style="white-space:pre">                </span>soft</div><div>  -mtpcs-frame                <span style="white-space:pre">           </span>[disabled]</div><div>  -mtpcs-leaf-frame           <span style="white-space:pre">               </span>[disabled]</div><div>  -mtune=                     <span style="white-space:pre">          </span></div><div>  -muclibc                    <span style="white-space:pre">             </span>[disabled]</div><div>  -munaligned-access          <span style="white-space:pre">                </span>[disabled]</div><div>  -mvectorize-with-neon-double <span style="white-space:pre">            </span>[disabled]</div><div>  -mvectorize-with-neon-quad  <span style="white-space:pre">            </span>[enabled]</div><div>  -mword-relocations          <span style="white-space:pre">         </span>[disabled]</div></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 1, 2019 at 6:30 PM Boris Krasnovskiy <<a href="mailto:borkra@gmail.com">borkra@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div>

<div lang="EN-US">
<div class="gmail-m_7993004021501858614x_WordSection1">
<p class="gmail-m_7993004021501858614x_MsoNormal">Hi Linus,</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">I do not see anything wrong for your target. And I do not have any Gemini devices.</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">Crash during init that you can see, is pretty far along in the boot process, so toolchain likely correct.
</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">Maybe an issue with some packages…</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">You can run “ <span style="font-size:10pt;font-family:Consolas;color:rgb(68,68,68);background:rgb(247,247,247)">
gcc -Q --help=target” on the compiled cross toolchain and check if default settings are correct, or post the output.</span></p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">Can you send us the crash log?</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
<p class="gmail-m_7993004021501858614x_MsoNormal">Thank you,<br>
Boris Krasnovskiy</p>
<p class="gmail-m_7993004021501858614x_MsoNormal"> </p>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_7993004021501858614x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Linus Walleij <<a href="mailto:linus.walleij@linaro.org" target="_blank">linus.walleij@linaro.org</a>><br>
<b>Sent:</b> Wednesday, May 1, 2019 6:08:11 PM<br>
<b>To:</b> Boris Krasnovskiy; OpenWrt Development List<br>
<b>Subject:</b> Commit 8dcc1087602e breaks FA526 (Gemini) compile</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt">
<div class="gmail-m_7993004021501858614PlainText">Hi Boris & friends,<br>
<br>
commit 8dcc1087602e2dd606e4f6e81a06aee62cfd4f4c<br>
"toolchain: ARM: Fix toolchain compilation for gcc 8.x"<br>
regresses the Gemini (FA526-based).<br>
<br>
I cannot quite see how. I noticed init crashed with the latest<br>
OpenWrt codebase and bisected it down to this commit.<br>
<br>
Before the commit include/<a href="http://target.mk" target="_blank">target.mk</a> has:<br>
<br>
ifneq ($(findstring arm,$(ARCH)),)<br>
 ....<br>
 CPU_CFLAGS_fa526 = -mcpu=fa526<br>
 ....<br>
 ifeq ($(CONFIG_SOFT_FLOAT),)<br>
    ....<br>
<br>
After in toolchain/gcc/<a href="http://common.mk" target="_blank">common.mk</a> we have:<br>
<br>
ifeq ($(CONFIG_arm),y)<br>
CC_CONFIGURE+= \<br>
       --with-cpu=$(word 1, $(subst +," ,$(CONFIG_CPU_TYPE)))<br>
 ....<br>
 ifneq ($(CONFIG_SOFT_FLOAT),y)<br>
    GCC_CONFIGURE+= \<br>
               --with-fpu=$(word 2, $(subst +, ",$(CONFIG_CPU_TYPE)))<br>
               --with-float=hard<br>
<br>
It's a bit terse so I cannot really make this out :/<br>
<br>
Relevant stuff from my .config is:<br>
CONFIG_CPU_TYPE="fa526"<br>
CONFIG_arm=y<br>
CONFIG_ARCH="arm"<br>
CONFIG_SOFT_FLOAT=y<br>
<br>
Any hints?<br>
<br>
Yours,<br>
Linus Walleij<br>
</div>
</span></font>
</div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Thank you,<br>Boris Krasnovskiy</div>