Bug 2070151 - Windows target not available for cross-compiling
Summary: Windows target not available for cross-compiling
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: wine
Version: rawhide
Hardware: aarch64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-30 13:50 UTC by Michael Cronenworth
Modified: 2022-04-03 21:20 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-03 21:20:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael Cronenworth 2022-03-30 13:50:41 UTC
Description of problem:
The latest version of wine (https://winehq.org) requires a LLVM/Clang cross-compiler to build Windows PE binaries on the ARM64 arch.

When the configure test executes it fails:

checking for clang... clang
checking whether clang works... yes
checking whether the cross-compiler supports -target aarch64-windows -fuse-ld=lld -Wl,-subsystem:console... no
...snip...
configure: error: PE cross-compilation is required for ARM64, please install clang/llvm-dlltool/lld, or llvm-mingw.



Version-Release number of selected component (if applicable):
clang                                  aarch64  13.0.1-1.fc37
llvm                                   aarch64  13.0.1-1.fc37

How reproducible: Always


Steps to Reproduce:
1. Compile for "-target aarch64-windows"
2.
3.

Actual results: Failure


Expected results: PE binary


Additional info:


https://koji.fedoraproject.org/koji/buildinfo?buildID=1940475

https://source.winehq.org/git/wine.git/blob/HEAD:/configure.ac

Comment 1 Mamoru TASAKA 2022-03-30 14:39:17 UTC
configure:10766: checking whether the cross-compiler supports -target aarch64-windows -fuse-ld=lld -Wl,-subsystem:console
configure:10782: clang -o conftest.exe -g -O2 -D__WINE_PE_BUILD -Wall -nostartfiles -nodefaultlibs -target aarch64-windows -fuse-ld=lld -Wl,-subsystem:console   conftest.c  >&5
clang-13: error: unable to execute command: Executable "lld-link" doesn't exist!
clang-13: error: linker command failed with exit code 1 (use -v to see invocation)

After adding BuildRequires: lld
checking whether the cross-compiler supports -target aarch64-windows -fuse-ld=lld -Wl,-subsystem:console... yes

Comment 2 Michael Cronenworth 2022-04-03 21:20:05 UTC
ARM64 is now building. ARM 32-bit is going to be dropped.


Note You need to log in before you can comment on or make changes to this bug.