[Bug 271373] emulators/wine-devel: Clang cannot compile unit tests, missing symbol _llabs

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 12 May 2023 01:27:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271373

            Bug ID: 271373
           Summary: emulators/wine-devel: Clang cannot compile unit tests,
                    missing symbol _llabs
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: damjan.jov@gmail.com

Not currently a problem in the Port as we pass "--disable-tests" to
./configure, but without that switch Wine won't build with Clang, because some
unit tests require the compiler to have a built-in "llabs", and Clang doesn't
provide it:

lld-link: error: undefined symbol: __declspec(dllimport) _llabs

Upstream issue was closed invalid in 2011:
https://github.com/llvm/llvm-project/issues/9928

This unrelated project had an internal workaround, not using llabs on MSVC <
18:
https://github.com/Blosc/c-blosc/issues/95
https://github.com/Blosc/c-blosc/commit/825036288fdcc4581749502040b39b18ec3b615c

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