Hello!

I'm trying to update the FreeBSD port of tcc to version 0_9_27 (currently on 
0_9_26).
I'm facing problems building tcc on FreeBSD on the new version.
FreeBSD currently uses this mirror of tinycc https://github.com/TinyCC/tinycc
When I download the tag release 0_9_27 and try to build it on my machine I get 
the following error message
```gcc -o tcc tcc.o libtcc.a -lmgmake[1]: Entering directory 
'/usr/home/lockna/Downloads/tinycc-release_0_9_27/lib'
../tcc -c libtcc1.c -o libtcc1.o -B..
../tcc -c alloca86_64.S -o alloca86_64.o -B..
../tcc -c alloca86_64-bt.S -o alloca86_64-bt.o -B..
../tcc -c va_list.c -o va_list.o -B..
../tcc -c bcheck.c -o bcheck.o -B..
In file included from bcheck.c:20:
In file included from /usr/include/stdlib.h:37:
/usr/include/sys/_types.h:56: error: #error unsupported long size
gmake[1]: *** [Makefile:64: bcheck.o] Error 1
gmake[1]: Leaving directory 
'/usr/home/lockna/Downloads/tinycc-release_0_9_27/lib'
gmake: *** [Makefile:230: libtcc1.a] Error 2```

The errors gets thrown because of the following code lines
```
#if __SIZEOF_LONG__ == 8typedef long                    __int64_t;
typedef unsigned long           __uint64_t;
#elif __SIZEOF_LONG__ == 4
__extension__
typedef long long               __int64_t;
__extension__
typedef unsigned long long      __uint64_t;
#else
#error unsupported long size
#endif
```
I tried patching it with setting  __SIZEOF_LONG__ in libtcc.c. But only more 
errors are coming up this way.

Meanwhile the other mirror of 
https://github.com/Tiny-C-Compiler/tinycc-mirror-repository has a release 
0_9_27 which can be build perfectly fine on FreeBSD.
Why are the mirrors not the same? 
Or how else could I get it to build on FreeBSD again?
If this is the wrong place for this question, pardon me!
Thanks

Attachment: publickey - [email protected] - 0x37F00BAA.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to