tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] TCC on OS X


From: Aaron Gough
Subject: Re: [Tinycc-devel] TCC on OS X
Date: Tue, 14 Sep 2010 18:59:20 -0400

Hey Thomas,
Sorry for the confusion. As I understand it OS X 10.6 is a 64 bit OS that reports itself as i386 for compatibility. The OS has both 32 and 64 bit versions of most libraries and headers.

I'm going to try installing TCC tonight on OS X 10.5 which is purely 32 bit, to see if that works correctly.

In the meantime I have tried manually changing the config.mak and config.h files to force a 32 bit build for the x86_64 architecture. I have no idea whether this is heading in the right direction or not, but I certainly get a different error message now, so I see that as encouraging... :-p

config.mak (changes only)
CLFAGS=-O2 -m32
ARCH=x86-64

config.h (changes only)
#define HOST_X86_64 1

The error I get now is:
$ make
gcc -o tcc tcc.c -DTCC_TARGET_X86_64 -O2 -m32 -g -Wall -fno-strict-aliasing -Wno-pointer-sign -lm -ldl
In file included from tcc.c:21:
libtcc.c: In function ‘rt_get_caller_pc’:
libtcc.c:1481: error: request for member ‘gregs’ in something not a structure or union
libtcc.c:1481: error: ‘EIP’ undeclared (first use in this function)
libtcc.c:1481: error: (Each undeclared identifier is reported only once
libtcc.c:1481: error: for each function it appears in.)
libtcc.c:1490: error: request for member ‘gregs’ in something not a structure or union
libtcc.c:1490: error: ‘EBP’ undeclared (first use in this function)
make: *** [tcc] Error 1

Could you send me an attached file with the result of echo "" | cpp -dM please?
I have attached the result to this email.

Thanks again for your help.
- Aaron

---
Aaron Gough
Web Developer

+1-647-746-7083
www.thingsaaronmade.com


Attachment: system_info.cpp
Description: Binary data


reply via email to

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