Maybe I was not clear, I'm testing it on a windows 7 32 bits, bellow is a
test for gcc on that machine it generates 32 bits code by default, it seems
that your explanation do not apply here, also the tcc generated when
executed without parameters do show the help screen.
-----
#include <stdio.h>
int main(int argc, char *argv[]){
printf("int size = %d, void* size = %d", sizeof(int), sizeof(void*));
}
----
$ gcc -o size size.c
$ size
int size = 4, void* size = 4
----


On Mon, Apr 7, 2014 at 2:42 AM, Michael Matz <[email protected]> wrote:

> Hi,
>
> On Sun, 6 Apr 2014, Domingo Alvarez Duarte wrote:
>
>  On win32 with mingw64 I'm getting this error:---------
>> gcc -o i386-win32/tiny_libmaker.exe ../win32/tools/tiny_libmaker.c -I..
>>  -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare
>> -Wno-unused-result -fPIC -DTCC_TARGET_I386 -DTCC_TARGET_PE
>> ../win32/tools/tiny_libmaker.c:1:0: warning: -fPIC ignored for target
>> (all
>> code is position independent) [enabled by default]
>>  /*
>>  ^
>>
>
> That's a silly warning, but doesn't seem to be the hint for the cause of
> trouble.  You can set "PICFLAGS=" for the two win32 targets in lib/Makefile
> to get rid of the warning.  I don't think it would change anything, though.
>  Has that win32 with mingw64 combination ever worked for you (with same
> configure and environment)?
>
>
>  i386-win32/tiny_libmaker.exe rcs ../libtcc1.a i386-win32/libtcc1.o
>> i386-win32/alloca86.o i386-win32/alloca86-bt.o i386-win32/bcheck.o
>> i386-win32/crt1.o i386-win32/wincrt1.o i386-win32/dllcrt1.o
>> i386-win32/dllmain.o i386-win32/chkstk.o
>> Unsupported Elf Class: i386-win32/alloca86.o
>>
>
> alloca86.S is a 32bit assembler source, but you may have compiled it into
> a 64bit ELF file (when using gccs default options without -m32).  That
> would cause this error if tiny_libmaker is compiled with -DTCC_TARGET_I386
> (as it seems it is above).  You probably want to add some -m32 somewhere in
> lib/Makefile for this combination.
>
>
> Ciao,
> Michael.
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to