tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Re: Tinycc-devel Digest, Vol 75, Issue 3


From: Robert Starr
Subject: [Tinycc-devel] Re: Tinycc-devel Digest, Vol 75, Issue 3
Date: Wed, 8 Jul 2009 07:23:25 +0300



On Sun, Jul 5, 2009 at 7:00 PM, <address@hidden> wrote:

Subject: Re: [Tinycc-devel] tcc-0.9.25 woes on 64 bit Red Hat system
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII

Hi,

> Made fine, but test3 fails.

Yeah, missing alloca was already fixed in mob branch. Please use this
if you need this.

http://repo.or.cz/w/tinycc.git?a=shortlog;h=refs/heads/mob

> Then, I try building a shared object,
>
> % tcc foo.c -o libfoo.so -shared
> /usr/lib/crti.o: invalid object file
> /lib/libc.so.6: bad architecture
> /usr/lib/crtn.o: invalid object file
% cat foo.c
int
foo(int x) {
    return x + 3;
}

I know what the bad arch thing is, but am not sure how to get around it. I am on a 64 bit machine, but /usr/lib is being forced, and even setting LD_LIBRARY_PATH makes no difference.

% LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH tcc foo.c -o libfoo.so -shared
/usr/lib/crti.o: invalid object file
/lib/libc.so.6: bad architecture
/usr/lib/crtn.o: invalid object file

 


I'd like to investigate these files. Could you show the result of file
command and readelf -h command for these files? Or, it would be nicer
if you can upload or send these files.

Thanks,




------------------------------

_______________________________________________
Tinycc-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/tinycc-devel


End of Tinycc-devel Digest, Vol 75, Issue 3
*******************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]