Built C-Native Compiler Issue: Failed To Get Process Times
Posted: Sat Oct 12, 2013 3:37 pm
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?
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?