I've built a cross-native (?) compiler for the KBOX environment running on my NookHD tablet using the gcc 4.7 and binutils 2.23 sources downloaded from the Android NDK toolchain sources, and using the cross toolchain made using the Android NDK script.
After running make DESTDIR=/staged/install/dir install for binutils and make DESTDIR=/staged/install/dir install-host for gcc-4.7, I tarred the /install directory, transferred it to my Nook and copied it to the location I specified in --prefix. I then wrote "hello world" and used it to test the new toolchain.
I got a bunch of missing header errors, which I fixed. The remaining error is as follows:
arm-linux-eabi-gcc: fatal error: failed to get process times: No such file or directory.
Google did not bring up much other than the source for gcc.c, but I grepped that for the error which is returned by function (?) called report_times if !pex_get_times. The pex_get_times and report_times function is contained in libiberty.
My questions are:
1. If there is a way to disable building libiberty, can I safely exclude it from the build?
2. Am I correct in assuming libiberty is the source of the problem or should I be looking elsewhere?
EDIT: Immediately after posting I realized that it was/is likely the pex_get_times function that's the problem; android probably doesn't support reporting process times. So my third question:
3. Is there a way to safely disable reporting process time without disabling libiberty build...assuming this is the source of the error I'm getting?
Built C-Native Compiler Issue: Failed To Get Process Times
-
- Posts: 18
- Joined: Sun Oct 06, 2013 5:52 pm
-
- Posts: 18
- Joined: Sun Oct 06, 2013 5:52 pm
Re: Built C-Native Compiler Issue: Failed To Get Process Tim
UPDATE: Figured out how to disable libiberty build for gcc with help from this link: http://www.linuxfromscratch.org/lfs/vie ... 6/gcc.html
Will see if this fixes the problem.
EDIT: Nope, that did not work. Back to my original question, only for binutils, as I was able to disable gcc libiberty build. Additionally, is there a command line option for disabling report_times?
Will see if this fixes the problem.
EDIT: Nope, that did not work. Back to my original question, only for binutils, as I was able to disable gcc libiberty build. Additionally, is there a command line option for disabling report_times?