Dear Andrew,<br><br>1, You can get android's C toolchain there:<br><pre><code>git clone <a href="https://android.googlesource.com/platform/prebuilt">https://android.googlesource.com/platform/prebuilt</a><br></code><code>/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/</code><br>
(FROM: <a href="http://source.android.com/source/building-kernels.html">http://source.android.com/source/building-kernels.html</a>)<br><br>2, >try building your toolchain with relative paths<br>HOW to?<br>(You can modify my script <span class="label_list">direct</span>)<br>
</pre><br><br><div class="gmail_quote">On Thu, May 24, 2012 at 7:36 PM, Andrew Bradford <span dir="ltr"><<a href="mailto:andrew@bradfordembedded.com" target="_blank">andrew@bradfordembedded.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 24 May 2012 13:03:12 +0800<br>
lee sudo <<a href="mailto:desoxydate@gmail.com">desoxydate@gmail.com</a>> wrote:<br>
<br>
> It works well after put it all back where it was as you said.<br>
<br>
Good.<br>
<br>
> But I find some cross toolchains (e.g. cross toolchain in android source<br>
> code) could work well after change its path(anywhere).<br>
<br>
I'm not familiar with Android's C toolchain. Can you point me towards<br>
where I can get one already compiled like you are using? I'm curious to<br>
see what their GCC setup is.  That might shed some light.  I don't have<br>
time to build yet another toolchain, thus the ask for a binary, I can<br>
get the info I want out of a binary.<br>
<br>
> This is the script i tested lasy night, it works well and finally succeed.<br>
> And i cross compile kernel3.0.23 a moment ago, it also works well.<br>
<br>
I believe you should be able to compile the Linux kernel even if GCC<br>
can't find any of the libraries.  It's a kernel and all "library" calls<br>
made in it exist as source within it.  You don't need things like libc<br>
or mpfr to build Linux.  It's everything that runs on Linux that<br>
probably will want the libs.<br>
<br>
> If i change its path from "/home/sudolee/cross/cross_toolchain" to<br>
> "/home/sudolee/cross_toolchain/", this issue occured.<br>
<br>
For now, I'm going to chalk this one up to you should just keep your<br>
toolchain where you built it.  Don't move it.<br>
<br>
It's like if you go to the doctor complaining, "Every time I stab<br>
myself in the face with this knife, it hurts."  The doctor will tell<br>
you, "Stop stabbing yourself in the face with a knife!"<br>
<br>
If you want, try building your toolchain with relative paths.  I've not<br>
tried this, so no assurances it'll work, but that's the only easy way I<br>
can think of to make a toolchain that doesn't mind being moved.  I'm<br>
not sure if when building, the relative path to the libraries should be<br>
in the context of the build dir or the resulting dir...<br>
<span class="HOEnZb"><font color="#888888"><br>
-Andrew<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div>Thanks & BR,</div><div>sudolee<br></div><br>