[Bug 284438] -march=x86-64 -fms-compatibility - "error: expected ';' at end of declaration list"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Jan 2025 23:11:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284438

Brooks Davis <brooks@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|devel/llvm18:               |-march=x86-64
                   |-march=x86-64               |-fms-compatibility -
                   |-fms-compatibility -        |"error: expected ';' at end
                   |"error: expected ';' at end |of declaration list"
                   |of declaration list"        |
                 CC|                            |brooks@FreeBSD.org

--- Comment #3 from Brooks Davis <brooks@FreeBSD.org> ---
Reading that issue upstream maintainer doesn't appear to use clang at all and
is speculating.

Passing -fms-compatibility disables the definition of __GNUC__ among other
things which (until a fairly recent current) needs to be defined for quite a
lot of the macros in sys/cdefs.h to be defined.  It's safe to say that
compiling with -fms-compatibility isn't supported at this time (likely not
ever).

You might try using gcc with USE_GCC=yes.

-- 
You are receiving this mail because:
You are the assignee for the bug.