wine 6.9 build fail

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mangodan2003
Level 1
Level 1
Posts: 9
Joined: Thu May 20, 2021 4:53 am

wine 6.9 build fail

Post by mangodan2003 »

I am trying to build wine 6.9 with wow64 support in order to try and implement what is currently only a stub in gdiplus pen and preventing me from being able to run SigmaStudio.

I initially tried the build on a Ubuntu 20.04 but the 32bit part fails at the configure stage with some strange problem regarding how it tries to find libgcc.a, and as was low on disk space anyway I decided to try on another host. This one is a uptodate Gentoo system. The 64 bit build seemed to go ok I think, it was hard to really be sure as my ssh session seemed to go a bit weird and left me with a garbled console. anyway the wine binaries existed so i carried on with the 32bit part of the build. This got past where the Ubuntu system got to by some margin but failed after some time with errors that are not at all familiar to me and indeed it seems to google also. Can anybody shed some light on the following?

Code: Select all

../wine64-build/tools/winegcc/winegcc -o dlls/acledit/acledit.dll --wine-objdir . --winebuild \
  ../wine64-build/tools/winebuild/winebuild -b i686-windows --lib-suffix=.cross.a -Wl,--wine-builtin \
  -shared ../wine-source/dlls/acledit/acledit.spec -mno-cygwin -Wb,--prefer-native \
  dlls/acledit/main.cross.o dlls/ucrtbase/libucrtbase.cross.a 
acledit.pbaK1k.s:152:2: error: unknown directive
        .rva .L__wine_spec_exp_names
        ^
acledit.pbaK1k.s:156:2: error: unknown directive
        .rva .L__wine_spec_exports_funcs 
        ^
acledit.pbaK1k.s:157:2: error: unknown directive
        .rva .L__wine_spec_exp_name_ptrs
        ^
acledit.pbaK1k.s:158:2: error: unknown directive
        .rva .L__wine_spec_exp_ordinals
        ^
acledit.pbaK1k.s:161:2: error: unknown directive
        .rva ___wine_stub_EditAuditInfo
        ^
acledit.pbaK1k.s:162:2: error: unknown directive
        .rva ___wine_stub_EditOwnerInfo
        ^
acledit.pbaK1k.s:163:2: error: unknown directive
        .rva ___wine_stub_EditPermissionInfo
        ^
acledit.pbaK1k.s:164:2: error: unknown directive
        .rva _FMExtensionProcW@12
        ^
acledit.pbaK1k.s:165:2: error: unknown directive
        .rva _DllMain@12
        ^
acledit.pbaK1k.s:166:2: error: unknown directive
        .rva ___wine_stub_SedDiscretionaryAclEditor
        ^
acledit.pbaK1k.s:167:2: error: unknown directive
        .rva ___wine_stub_SedSystemAclEditor
        ^
acledit.pbaK1k.s:168:2: error: unknown directive
        .rva ___wine_stub_SedTakeOwnership
        ^
acledit.pbaK1k.s:171:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 12
        ^
acledit.pbaK1k.s:172:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 20
        ^
acledit.pbaK1k.s:173:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 34
        ^
acledit.pbaK1k.s:174:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 48
        ^
acledit.pbaK1k.s:175:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 67
        ^
acledit.pbaK1k.s:176:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 84
        ^
acledit.pbaK1k.s:177:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 110
        ^
acledit.pbaK1k.s:178:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 129
        ^
acledit.pbaK1k.s:190:2: error: unknown directive
        .rva .L__wine_spec_relay_descr
        ^
winebuild: /usr/lib/llvm/6/bin/clang failed with status 1
winegcc: ../wine64-build/tools/winebuild/winebuild failed
make: *** [Makefile:1598: dlls/acledit/acledit.dll] Error 2
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: wine 6.9 build fail

Post by Gcenx »

mangodan2003 wrote: Sun May 23, 2021 12:24 pm I am trying to build wine 6.9 with wow64 support in order to try and implement what is currently only a stub in gdiplus pen and preventing me from being able to run SigmaStudio.

I initially tried the build on a Ubuntu 20.04 but the 32bit part fails at the configure stage with some strange problem regarding how it tries to find libgcc.a, and as was low on disk space anyway I decided to try on another host. This one is a uptodate Gentoo system. The 64 bit build seemed to go ok I think, it was hard to really be sure as my ssh session seemed to go a bit weird and left me with a garbled console. anyway the wine binaries existed so i carried on with the 32bit part of the build. This got past where the Ubuntu system got to by some margin but failed after some time with errors that are not at all familiar to me and indeed it seems to google also. Can anybody shed some light on the following?

Code: Select all

../wine64-build/tools/winegcc/winegcc -o dlls/acledit/acledit.dll --wine-objdir . --winebuild \
  ../wine64-build/tools/winebuild/winebuild -b i686-windows --lib-suffix=.cross.a -Wl,--wine-builtin \
  -shared ../wine-source/dlls/acledit/acledit.spec -mno-cygwin -Wb,--prefer-native \
  dlls/acledit/main.cross.o dlls/ucrtbase/libucrtbase.cross.a 
acledit.pbaK1k.s:152:2: error: unknown directive
        .rva .L__wine_spec_exp_names
        ^
acledit.pbaK1k.s:156:2: error: unknown directive
        .rva .L__wine_spec_exports_funcs 
        ^
acledit.pbaK1k.s:157:2: error: unknown directive
        .rva .L__wine_spec_exp_name_ptrs
        ^
acledit.pbaK1k.s:158:2: error: unknown directive
        .rva .L__wine_spec_exp_ordinals
        ^
acledit.pbaK1k.s:161:2: error: unknown directive
        .rva ___wine_stub_EditAuditInfo
        ^
acledit.pbaK1k.s:162:2: error: unknown directive
        .rva ___wine_stub_EditOwnerInfo
        ^
acledit.pbaK1k.s:163:2: error: unknown directive
        .rva ___wine_stub_EditPermissionInfo
        ^
acledit.pbaK1k.s:164:2: error: unknown directive
        .rva _FMExtensionProcW@12
        ^
acledit.pbaK1k.s:165:2: error: unknown directive
        .rva _DllMain@12
        ^
acledit.pbaK1k.s:166:2: error: unknown directive
        .rva ___wine_stub_SedDiscretionaryAclEditor
        ^
acledit.pbaK1k.s:167:2: error: unknown directive
        .rva ___wine_stub_SedSystemAclEditor
        ^
acledit.pbaK1k.s:168:2: error: unknown directive
        .rva ___wine_stub_SedTakeOwnership
        ^
acledit.pbaK1k.s:171:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 12
        ^
acledit.pbaK1k.s:172:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 20
        ^
acledit.pbaK1k.s:173:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 34
        ^
acledit.pbaK1k.s:174:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 48
        ^
acledit.pbaK1k.s:175:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 67
        ^
acledit.pbaK1k.s:176:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 84
        ^
acledit.pbaK1k.s:177:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 110
        ^
acledit.pbaK1k.s:178:2: error: unknown directive
        .rva .L__wine_spec_exp_names + 129
        ^
acledit.pbaK1k.s:190:2: error: unknown directive
        .rva .L__wine_spec_relay_descr
        ^
winebuild: /usr/lib/llvm/6/bin/clang failed with status 1
winegcc: ../wine64-build/tools/winebuild/winebuild failed
make: *** [Makefile:1598: dlls/acledit/acledit.dll] Error 2
Is the code output really from a Gentoo system? as winegcc is wrapping llvm/clang-6 here.

packages.gentoo currently has 10.0.1, 11.1.0 and 12.0.0-rc1 listed as the available versions, you more than lightly need a more modern version of llvm/clang to compile wine. Or swap to using a modern version of gcc as that's whats more commonly used to compile wine outside of cross-compiling/macOS.
mangodan2003
Level 1
Level 1
Posts: 9
Joined: Thu May 20, 2021 4:53 am

Re: wine 6.9 build fail

Post by mangodan2003 »

aha, that sounds likely. I updated all the packages just the other day but actually i have not checked or changed things with eselect recently. However i have been using ebuild compile on wine 6.0 so am not actually stuck at present either.
Thanks
mangodan2003
Level 1
Level 1
Posts: 9
Joined: Thu May 20, 2021 4:53 am

Re: wine 6.9 build fail

Post by mangodan2003 »

gcc was set to 9.3.0 and I have just set 10.2.0. I have clang 11 installed , not sure why its picking up 6, cant just see an option to in eselect to set the default for clang as is done for gcc. I'll look again later.
Thanks
Gcenx
Level 6
Level 6
Posts: 709
Joined: Mon Dec 25, 2017 12:11 pm

Re: wine 6.9 build fail

Post by Gcenx »

To me it’s strange that it defaulted to clang and it’s not that I’m that familiar with Gentoo but there should be some way to force the selected compiler/version.

It’s also safe to use gcc-11.1.0 if you only care about compiling wine-6.9 and later.

I mostly use my Mac and I’m using clang-11 with mingw-w64-v8.0.2 with mingw-gcc-11.1.0 wine-6.9 compiles without issue.
mangodan2003
Level 1
Level 1
Posts: 9
Joined: Thu May 20, 2021 4:53 am

Re: wine 6.9 build fail

Post by mangodan2003 »

I removed clang 6 and the build went without any more hitches.

Many thanks.
User avatar
LiamJackson
Newbie
Newbie
Posts: 1
Joined: Mon May 31, 2021 3:00 pm

Re: wine 6.9 build fail

Post by LiamJackson »

Hi, I want to say that I also updated the packages the other day, I expected more, but in the end what I needed was not working, what the problem is I do not understand!
Locked