Build Fail

Questions about Wine on macOS.
Locked
teafox
Newbie
Newbie
Posts: 2
Joined: Fri Apr 15, 2022 3:06 am

Build Fail

Post by teafox »

Hello,
While building Wine (git) on macOS 12.3, I got an error:

Code: Select all

checking for working -mabi=ms... no
configure: error: The compiler doesn't support -mabi=ms. Use gcc instead of clang, or install mingw-w64.
command: (from the wiki, but with --enable-win64)

Code: Select all

./configure CC="clang" CXX="clang++" --enable-win64
bison, flex, mingw-w64, pkgconfig and xquartz are all installed with brew
the same error appears without CC="clang" CXX="clang++" too
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Build Fail

Post by Gcenx »

The provided section isn’t helpful.

Please provide the entire config.log along with that system your running this on. Aka Apple Silicon native or Apple Silicon Rosetta2/Intel mac etc.
teafox
Newbie
Newbie
Posts: 2
Joined: Fri Apr 15, 2022 3:06 am

Re: Build Fail

Post by teafox »

Thank you for your help, but it worked now. The command used was:

Code: Select all

./configure CC="clang -m64" CXX="clang++" --enable-win64
(-m64 was added).
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Build Fail

Post by DarkShadow44 »

That -m64 should not be neccessary, it's also in the wrong place.
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: Build Fail

Post by Gcenx »

DarkShadow44 wrote: Sat Apr 23, 2022 8:36 pm That -m64 should not be neccessary, it's also in the wrong place.
If the OP is running on an M1 Mac and hadn’t started configure/make via rosetta2 then passing -m64 would make sense.

While not recommended you can set arch flags directly on CC/CXX env (at least with clang), this could cause link problems but as the OPs SDK contains aarch64/x86_64 slices this might still work.
Locked