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

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

            Bug ID: 284438
           Summary: devel/llvm18:  -march=x86-64 -fms-compatibility -
                    "error: expected ';' at end of declaration list"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: freebsd@sysctl.cz
          Assignee: brooks@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)

Hi,
this is strange behavior clang.
here is app with flangs :
https://github.com/Martinfx/FreeBSD-Ports/blob/master/xray-16/Makefile#L57

FAILED: Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx.pch 
/usr/bin/c++ -DDEBUG -DMIXED -D_CPPUNWIND -D_MT
-I/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/xrLuaFix
-I/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/xrLuaFix/lfs/src
-I/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/src
-I/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/tracy/public
-I/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/LuaJIT/src
-isystem /usr/local/include/SDL2 -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -march=x86-64 -fms-compatibility
-isystem /usr/local/include -O2 -pipe -fstack-protector-strong -isystem
/usr/local/include -fno-strict-aliasing -march=x86-64 -fms-compatibility
-isystem /usr/local/include -fPIC -fdelayed-template-parsing
-Wno-unused-command-line-argument -Wno-inconsistent-missing-override
-stdlib=libc++ -lcxxrt -Wno-attributes -Wl,--no-undefined -mfpmath=sse -msse3
-Og -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang
-include -Xclang
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/.build/Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx
-x c++-header -MD -MT
Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx.pch -MF
Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx.pch.d -o
Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx.pch -c
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/.build/Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx.cxx
In file included from <built-in>:1:
In file included from
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/.build/Externals/xrLuaFix/CMakeFiles/xrLuaFix.dir/cmake_pch.hxx:5:
In file included from
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/xrLuaFix/pch.hpp:3:
In file included from
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/LuaJIT/src/lua.hpp:4:
In file included from
/usr/home/maxfx/Documents/FreeBSD-Ports/xray-16/work/xray-16-3fb66c7c52ca331615080d17753072062ad955ef/Externals/LuaJIT/src/lua.h:12:
In file included from /usr/include/stdarg.h:5:
In file included from /usr/include/x86/stdarg.h:31:
In file included from /usr/include/sys/_stdarg.h:35:
/usr/include/sys/_types.h:184:24: error: expected ';' at end of declaration
list
  184 |         long long __max_align1 __aligned(_Alignof(long long));
      |                               ^
/usr/include/sys/_types.h:186:26: error: expected ';' at end of declaration
list
  186 |         long double __max_align2 __aligned(_Alignof(long double));
      |                                 ^
2 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1

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