[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc
From: |
Austin English |
Subject: |
Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc |
Date: |
Sat, 9 Jul 2016 18:52:18 -0500 |
On Sat, Jul 9, 2016 at 3:10 PM, David Mertens <address@hidden> wrote:
> Hello everyone,
>
> When run on Mac systems, I get errors about "incompatible redefinition of
> 'va_list'". Looking at the source files involved, I'm pretty sure this
> occurs on x86-64 systems that are neither Windows nor built with gcc. Such
> systems include 64-bit Macs and BSDs using clang. It might also occur on
> Solaris, though I've not received any reports from that system yet.
>
> TCC's handling of variable argument lists are spelled out in stdarg.h, with
> implementation in libtcc1.c. I think that for 64-bit machines, we should
> also check for clang, and then use clang-compatible definitions. I think I
> could just check if __llvm__ and/or __clang__ are defined, and then insert
> the appropriate definitions. Does this sound right? I am a bit out of my
> depth working on such things, so if anybody has any ideas about how to solve
> this, I'm all ears.
>
> I'd be happy to work on a solution, but I don't have access to a Mac machine
> or a BSD system. I'm not interested in going through a full-on BSD
> installation at this time, so if anybody knows where I could find a
> pre-canned BSD virtualbox image with working git and cc, I'd be much
> obliged.
>
> Thanks!
> David
>
> --
> "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
>
You'd want to check for #ifdef __clang__
PC-BSD is easy to get running in virtualbox, and comes with a GUI out
of the box, fyi.
--
-Austin
GPG: 14FB D7EA A041 937B
- [Tinycc-devel] Trouble on x86-64, not windows, not gcc, David Mertens, 2016/07/09
- Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc,
Austin English <=
- Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc, Michael Matz, 2016/07/10
- Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc, Michael Matz, 2016/07/10
- Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc, grischka, 2016/07/10
- Re: [Tinycc-devel] Trouble on x86-64, not windows, not gcc, David Mertens, 2016/07/10