Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Steffen Nurpmeso
David CARLIER wrote in : |Here a modified version of the patch, tested on OpenBSD (stable), |FreeBSD and DragonFly. I have not tried it (yet), but a couple of years ago i complained on a FreeBSD list why they use strange and heavy compiler specifics even in the most easy kernel (aka /usr/includ

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
Your latest patch gives on OpenBSD: -bash-5.0$ ./configure --cc=clang Binary directory/usr/local/bin TinyCC directory/usr/local/lib/tcc Library directory /usr/local/lib Include directory /usr/local/include Manual directory/usr/local/share/man Info directory /usr/local/share/in

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
Here a modified version of the patch, tested on OpenBSD (stable), FreeBSD and DragonFly. On Thu, 26 Nov 2020 at 16:15, David CARLIER wrote: > > Are they with / without the fix ? Because normally the changes would > address those I saw them too. > > On Thu, 26 Nov 2020 at 16:14, Christian Jullien

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
Are they with / without the fix ? Because normally the changes would address those I saw them too. On Thu, 26 Nov 2020 at 16:14, Christian Jullien wrote: > > Same result, also NetBSD still fails with: > > -bash-5.0$ ./configure > Binary directory/usr/local/bin > TinyCC directory/usr/local

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
Same result, also NetBSD still fails with: -bash-5.0$ ./configure Binary directory/usr/local/bin TinyCC directory/usr/local/lib/tcc Library directory /usr/local/lib Include directory /usr/local/include Manual directory/usr/local/share/man Info directory /usr/local/share/info D

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
I've just tried on the latest FreeBSD x64 and, not related to your patch, it fails as before on: gmake[1]: Entering directory '/usr/home/jullien/tinycc/lib' ../tcc -c libtcc1.c -o libtcc1.o -B.. -I.. ../tcc -c alloca86_64.S -o alloca86_64.o -B.. -I.. ../tcc -c alloca86_64-bt.S -o alloca86_64-bt.o

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Sudipto Mallick
Great achievement On OpenBSD x86_64, applied your patch and tried to compile, to get an error that ucontext_t doesn't have uc_rbp as a member; i think that was a typo and would be: sc_rbp. fixing that, it compiled smoothly tried to compile a c file using this newly built tcc fails with crt0.o etc.

[Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
Hi, here my first contribution, hope it is useful. Kind regards. From d4ad25cefb7c18975c853dc43390108228f95e68 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 26 Nov 2020 11:26:41 + Subject: [PATCH] DragonFlyBSD build fix. generates proper system constant. errno uses TLS thus tccrun

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
Ok I ve tried to test these changes under BSD systems, to make it accepted by the system headers and all. Kind regards. On Thu, 26 Nov 2020 at 13:46, Christian Jullien wrote: > > Yes, it would be fine. > I have direct access to FreeBSD, NetBSD and OpenBSD x64 machines this way I > can check mys

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
Yes, it would be fine. I have direct access to FreeBSD, NetBSD and OpenBSD x64 machines this way I can check myself. -Original Message- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of David CARLIER Sent: Thursday, November 26, 2020 14:43 To: jul

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
I just tried quickly FreeBSD, it fails for similar reasons than DragonFlyBSD minus the TLS one. I purposely focus only on DragonFlyBSD to make review easier do you prefer however an overall fix ? On Thu, 26 Nov 2020 at 13:38, Christian Jullien wrote: > > It's really cool then, have you recently t

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
It's really cool then, have you recently tried other BSD flavors: FreeBSD, OpenBSD and NetBSD? I made few attempts in the past. -Original Message- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of David CARLIER Sent: Thursday, November 26, 2020 14:

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
It works I was able to compile few programs with, tests fail in same way as on Linux (current mob branch). On Thu, 26 Nov 2020 at 12:59, Christian Jullien wrote: > > Thanks but are sure it really works passing all the tests? > Few years ago I tried different BSD versions and, for one reason or an

Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread Christian Jullien
Thanks but are sure it really works passing all the tests? Few years ago I tried different BSD versions and, for one reason or another, they all failed. -Original Message- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of David CARLIER Sent: Thursd

[Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal

2020-11-26 Thread David CARLIER
Hi, here my first contribution, hope it is useful. Kind regards. 0001-DragonFlyBSD-build-fix.patch Description: Binary data ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel