dozniak wrote:MonaLisaOverdrive wrote:What in the source told you that it would need to be built natively instead of for the host system? Was it the >mpz/fac_ui.h?
For me, natively means "for the host system". The fact that compile script tries to run it during build is a clear indication it should be built for the host system.
Now I'm confused again:
My build system (CentOS) and my host system (Android ARM) are different. I'm building a toolchain ON CentOS that will run ON Android ARM...i.e. cross compiling. The target is also Android ARM, so only build and host are different.
In the case above, do I still need a native gcc for build (CentOS)? Or, do I just need a cross-compile gcc for build?
sortie wrote:The <stdio.h> header is basically the most common and iconic header of the C programming language, as it allows easily writing a Hello World program using printf. If your C compiler is installed correctly, it should just be able to use that header (otherwise, arguably, your C compiler isn't installed). If you fail to install a local gcc that can compile trivial programs - that's not a question for this forum, that's something you'd need to consult your distribution's documentation for.
I installed the RedHat developer gcc toolset because the CentOS 6.2 repos only had gcc 4.4.7. Relevant link:
https://access.redhat.com/site/document ... r_Toolset/
It is installed in /opt/..., but I've symlinked gcc in /usr/bin...which is where the GMP configure script looks for the build GCC by default.
I also verified that the kernel-headers and kernel-devel installed package versions matched the kernel version I'm running. I also ran 'yum info lib*-devel | less' to look for a libc package...nada
sortie wrote:That said - the part where you cross-compile GCC is kinda relevant (although, an Android development community would likely be more appropriate).
I actually hit up the Android devel communities over at stackoverflow...no luck so far over the past two days. I'll keep trying, but for now I want to make sure I've got the correct tools installed for what I'm trying to do. I don't think that's specific to Android, but I could be wrong.
sortie wrote:@dozniak: You say "host" system, when you really mean "build system". The goal here is that build=linux-gnu host=andorid target=android.
Clarification: I already have a GCC toolchain installed that runs on my build system (CentOS) but targets the host system (Android ARM). What I'm trying to determine is if I need to keep the GCC toolchain I *just* installed, which runs on build (CentOS) and targets build (CentOS).
He needs to install the build compiler such that local programs can be built during the cross-compilation of GCC to android (cross-compiling the compiler).
She, actually. Eh...tomato, tomahto...