[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tcc 0.9.21: arm-tcc
From: |
Daniel Glöckner |
Subject: |
Re: [Tinycc-devel] tcc 0.9.21: arm-tcc |
Date: |
Fri, 29 Oct 2004 00:56:58 +0200 |
User-agent: |
Mutt/1.4.2.1i |
On Thu, Oct 28, 2004 at 09:49:27PM +0800, Zhonglin Zhang wrote:
> Hi, how should i use 'arm-lcc' ?
>
> Here are the wrong results !
>
> #arm-tcc t1.c -o t3
> /usr/lib/crt1.o: invalid object file
> /usr/lib/crti.o: invalid object file
> /lib/libc.so.6: bad architecture
> /usr/lib/crtn.o: invalid object file
> tcc: undefined symbol 'printf'
Actually the generated arm-tcc isn't a full cross compiler, because it
searches for header files and libraries in places where the host stores
its own files.
I made changes to CONFIG_TCC_LIBDIR, CONFIG_TCC_CRT_PREFIX,
tcc_add_library_path occurences and tcc_add_sysinclude_path occurences
to resolve conflicts with native files.
Daniel
pgpQspQJcgM6H.pgp
Description: PGP signature