[Top][All Lists]

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

[Tinycc-devel] MINGW compilation failure

From: bifferos
Subject: [Tinycc-devel] MINGW compilation failure
Date: Fri, 31 Aug 2007 17:27:46 +0100 (BST)

For me this works for Fabrice's 0.9.23, but fails for

I'm using gcc 3.2.3.  Is this expected to work?

$ tar xf tinycc-3903f30f1241.tar 
$ cd tinycc-3903f30f1241
$ ./configure 
Binary  directory   /c/Program Files/tcc
TinyCC directory    /c/Program Files/tcc
Library directory   /c/Program Files/tcc/lib
Include directory   /c/Program Files/tcc/include
Manual directory    /c/Program Files/tcc/man
Doc directory       /c/Program Files/tcc/doc
Source path      /c/scratch/tcc/tinycc-3903f30f1241
C compiler       gcc
make             make
CPU              x86
Big Endian       no
gprof enabled    no
cross compilers  no
Creating config.mak and config.h

$ make
gcc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 
-march=i386 -falign-functions=0 -fno-strict-aliasing -DTCC_TARGET_PE -o 
tcc.exe tcc.c 
tcc.c: In function `tcc_relocate':
tcc.c:8775: warning: passing arg 4 of `VirtualProtect' from incompatible 
pointer type
i386/i386-asm.c: At top level:
tcc.c:124: warning: `rt_bound_error_msg' defined but not used
gcc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 
-march=i386 -falign-functions=0 -fno-strict-aliasing -o tiny_impdef.exe 
win32/tiny_impdef.c -lkernel32
win32/tiny_impdef.c: In function `main':
win32/tiny_impdef.c:223: warning: unused variable `libname'
./tcc.exe -Bwin32 -O2 -Wall -c -o win32/lib/crt1.o win32/lib/crt1.c
./tcc.exe -Bwin32 -O2 -Wall -c -o win32/lib/wincrt1.o win32/lib/wincrt1.c
win32/lib/wincrt1.c:35: warning: implicit declaration of function 'exit'
./tcc.exe -Bwin32 -O2 -Wall -c -o win32/lib/dllcrt1.o win32/lib/dllcrt1.c
./tcc.exe -Bwin32 -O2 -Wall -c -o win32/lib/dllmain.o win32/lib/dllmain.c
./tcc.exe -Bwin32 -c -o win32/lib/chkstk.o win32/lib/chkstk.S
./tcc.exe -Bwin32 -O2 -Wall -c -o libtcc1.o libtcc1.c
ar rcs libtcc1.a win32/lib/crt1.o win32/lib/wincrt1.o win32/lib/dllcrt1.o 
win32/lib/dllmain.o win32/lib/chkstk.o libtcc1.o
gcc -O2 -g -Wall -fsigned-char -Os -mpreferred-stack-boundary=2 
-march=i386 -falign-functions=0 -fno-strict-aliasing -DLIBTCC -c -o 
libtcc.o tcc.c
tcc.c: In function `tcc_relocate':
tcc.c:8773: `DWORD' undeclared (first use in this function)
tcc.c:8773: (Each undeclared identifier is reported only once
tcc.c:8773: for each function it appears in.)
tcc.c:8773: parse error before "old_protect"
tcc.c:8775: `old_protect' undeclared (first use in this function)
i386/i386-asm.c: At top level:
tcc.c:9320: warning: `tcc_basename' defined but not used
tcc.c:123: warning: `num_callers' defined but not used
tcc.c:124: warning: `rt_bound_error_msg' defined but not used
tcc.c:175: warning: `strstart' defined but not used
make: *** [libtcc.o] Error 1

Yahoo! Answers - Got a question? Someone out there knows the answer. Try it

reply via email to

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