Bug 271373 - emulators/wine-devel: Clang cannot compile unit tests, missing symbol _llabs
Summary: emulators/wine-devel: Clang cannot compile unit tests, missing symbol _llabs
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 01:27 UTC by Damjan Jovanovic
Modified: 2023-07-02 17:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damjan Jovanovic 2023-05-12 01:27:51 UTC
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
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2023-06-15 10:30:19 UTC
(In reply to Damjan Jovanovic from comment #0)
Hi Damjan,

Can you provide a patch for wine-devel that uses that #define so we workaround the problem with clang?