|
From: | Chris Marshall |
Subject: | Re: [Tinycc-devel] tcc port to cygwin |
Date: | Fri, 20 May 2016 11:10:05 -0400 |
the cygwin setup program is too smart for me to make it think I'm doing a clean install.Then you install and iterate until things work. Unfortunately, I would help you with this butIn the past, when I've had problems, I search for the problem file or whatever using this page:Sorry I can't be more specific but the cygwin setup.exe is not really easy to determine what is needed.Off the top of my head, the specifics would be gmake/make, gcc, and maybe git + your choice of editor.I think if you select the Devel all you'll get alot of things which should be enough.Hi David-
Ack! I was only looking at the tccpp.c since the problem was with the includes.
https://cygwin.com/cgi-bin2/package-grep.cgiIf you determine the needed packages, that would be great to know---personally and forany potential Alien::TCC stuff on cygwin.--ChrisOn Fri, May 20, 2016 at 9:17 AM, David Mertens <address@hidden> wrote:Hello Chris,According to ack, "skip(')')" shows up all over the place in tccgen.c. What does line 196 of your sys/reent.h look like?Also, if I started from a pristine Windows installation with a core Cygwin installation, which Cygwin packages would I need to install to get to where you are?DavidOn Fri, May 20, 2016 at 8:24 AM, Chris Marshall <address@hidden> wrote:_______________________________________________Atttached is a first cut port of the TinyCC build to the cygwin platform.
The mains problems seem to be from managing the different include files.
I hand added some defines to libtcc1.c for __INTPTR_TYPE__ and a few
others to get that to build.
However, it is now failing to build bcheck.c with:
> ../tcc -B.. -c bcheck.c -o x86_64/bcheck.o -I.. -Wall -g -O0 -Wdeclaration-after-statement -Wno-deprecated-declarations -Wno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-uninitialized -fno-strict-aliasing -fPIC -DTCC_TARGET_X86_64
> In file included from bcheck.c:20:
> In file included from /usr/include/stdlib.h:18:
> /usr/include/sys/reent.h:196: error: ')' expected (got "*")
> Makefile:116: recipe for target 'x86_64/bcheck.o' failed
> make[1]: *** [x86_64/bcheck.o] Error 1
Looking at the origin of the error message in the skip() routine
in tccpp.c, I could not find any place that skip() was called with
an argument of ')'. Is there some other place that message
could be coming from. Seems like it might be a possible
problem in the preprocessing....
--Chris
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
--"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." -- Brian Kernighan
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Prev in Thread] | Current Thread | [Next in Thread] |