|
From: | Gerrit P. Haase |
Subject: | Re: [Tinycc-devel] How I can compile tcc under cygwin? |
Date: | Fri, 23 Sep 2005 12:57:28 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728 |
PerfectDark wrote:
Tcc compiles under linux perfectly, but compilation process undercygwin failed with message `ldl not found' and strange errors in bcheck.c... After editing tcc.c and removing ldl option I could gettcc.exe and libtcc1.a, but this result may be incorrect. Can someone help me?
$ makegcc -O2 -g -Wall -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -o tcc tcc.c -ldl
tcc.c:46:26: sys/ucontext.h: No such file or directory tcc.c:9471: error: parse error before "ucontext_t" tcc.c: In function `rt_get_caller_pc': tcc.c:9476: error: `level' undeclared (first use in this function) tcc.c:9476: error: (Each undeclared identifier is reported only once tcc.c:9476: error: for each function it appears in.) tcc.c:9482: error: `paddr' undeclared (first use in this function) tcc.c:9482: error: `uc' undeclared (first use in this function) tcc.c:9482: error: `EIP' undeclared (first use in this function) tcc.c:9491: error: `EBP' undeclared (first use in this function) tcc.c: At top level: tcc.c:9515: error: parse error before '*' token tcc.c: In function `rt_error': tcc.c:9521: error: `fmt' undeclared (first use in this function) tcc.c:9526: error: `uc' undeclared (first use in this function) tcc.c: In function `sig_error': tcc.c:9541: error: `ucontext_t' undeclared (first use in this function) tcc.c:9541: error: `uc' undeclared (first use in this function) tcc.c: In function `rt_error': tcc.c:9521: error: `va_start' used in function with fixed args make: *** [tcc] Error 1 Hmmm, can you help me? The file sys/ucontext.h is missing, there is no such file or directory in Cygwin. There is no support for Cygwin in TCC. There is e.g. this in tcc.c: #warning add arch specific rt_get_caller_pc() Gerrit -- =^..^=
[Prev in Thread] | Current Thread | [Next in Thread] |