Update:  As per advice from another post, I ran tcc -vvv scm.c.  The output
displayed paths that were from my build machine that did not exist on my
device.

So, I re-ran configure with the following parameters:

***********************************
sudo sh /project/tcc-0.9.26/configure --prefix=/usr --enable-cross
--cross-prefix=/project/arm-cc/bin/arm-linux-androideabi-
--sysroot=$SYSROOT --sysincludepaths=/project/arm-cc/sysroot/usr/include
--libpaths=/project/arm-cc/sysroot/usr/lib:/project/arm-cc/arm-linux-androideabi/lib
--extra-cflags=-mfloat-abi=softfp --extra-ldflags='-Wl,-fix-cortex-a8
-Wl,-rpath-link=-ctro.o ctri1.o
-Wl,-rpath=-signal.h,stio.h,stdlib.h,stdint.h,string.h,strings.h
-Wl,-lsupc++' --cpu=armv7-a --with-libgcc
--crtprefix=/project/arm-cc/sysroot/usr/lib
--elfinterp=/project/arm-cc/bin/arm-linux-androideabi-elfreadelf
***************************************

I made the same changes to config.mak and config.h as I did in my original
email and then ran make.  A tcc binary was created along with *.o files.  I
tarballed the build directory, uploaded it to my device and ran make
install, which failed.

Running make -n -d install shows that it is trying to copy i386 files and
make win32 directories...which isn't what I want to happen.

Where am I going wrong?  I suspect the 'configure' is incorrect but I'm not
sure.  Is there additional documentation for the configure parameters?


On Thu, Aug 29, 2013 at 5:16 AM, Cayce Pollard <[email protected]>wrote:

> Hello,
> I'm testing the tinycc binary I built for my Android device by attempting
> to build SCM (a lightweight Scheme interpreter) on it.
>
> Running make scmlit (after running configure as per instructions) produces
> the following error:
>
> scm.c:24: error: include file 'signal.h' not found.
>
> Is this a limitation of the Android OS or did I make a mistake in building
> tinycc for Android?
>
> Here's the configure options I used for the build:
> sh /project/tcc-0.9.26/configure --prefix=/usr --enable-cross
> --cross-prefix=/project/arm-cc/bin/arm-linux-androideabi-
> --sysroot=$SYSROOT --sysincludepaths=/project/arm-cc/sysroot/usr/include
> --libpaths=/project/arm-cc/sysroot/usr/lib:/project/arm-cc/arm-linux-androideabi/lib
> --extra-cflags=-mfloat-abi=softfp --extra-ldflags='-Wl,-fix-cortex-a8
> -Wl,-rpath-link=/project/arm-cc/sysroot/usr/lib -Wl,-lsupc++' --cpu=armv7-a
> --with-libgcc --crtprefix=/project/arm-cc/sysroot/usr/lib
> --elfinterp=/project/arm-cc/bin/arm-linux-androideabi-readelf
> --cc=/project/arm-cc/bin/arm-linux-androideabi-gcc-4.7
>
> In config.h I made this change (in parens):
> #define TCC_ARM_VERSION (*7)*
> *
> *
> And in config.mak I made this change (again in parens):
> CC=/project/arm-cc/bin/arm-linux-androideabi-gcc-(*4.7)*
> *
> *
>
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to