M-Reimer / wine-lol

PKGBUILDs to package GloriousEggroll's LoL-patched wine version
162 stars 20 forks source link

Error in building from AUR #51

Closed noaccOS closed 4 years ago

noaccOS commented 4 years ago

I get the following error when trying to build the package from the AUR using yay

gcc -m32 -c -o testlist.o testlist.c -I. -I../../../../wine-lol/dlls/schedsvc/tests -I../../../include \
  -I../../../../wine-lol/include -I../../../../wine-lol/include/msvcrt -D__WINESRC__ -D_REENTRANT \
  -fno-PIC -fno-builtin -fshort-wchar -Wall -pipe -fcf-protection=none -fno-stack-protector \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
  -Wno-packed-not-aligned -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits \
  -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op \
  -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -m32 -march=x86-64 -mtune=generic -O2 -pipe  -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
../../../tools/winegcc/winegcc -o schedsvc_test-stripped.exe.so --wine-objdir ../../.. -m32 -fno-PIC \
  -fasynchronous-unwind-tables -s -Wb,-F,schedsvc_test.exe -mno-cygwin atsvcapi.o rpcapi.o atsvc_c.o \
  schrpc_c.o testlist.o -lrpcrt4 -lole32 -Wl,-O1,--sort-common,--as-needed,-z,relro,-rpath=/opt/wine-lol/lib32,-dynamic-linker=/opt/wine-lol/lib32/ld-linux.so.2
/usr/bin/ld: schrpc_c.o:(.bss+0x0): multiple definition of `rpc_handle'; atsvc_c.o:(.bss+0x0): first defined here
winebuild: /usr/bin/ld failed with status 1
winegcc: ../../../tools/winebuild/winebuild failed
make[1]: *** [Makefile:457: schedsvc_test-stripped.exe.so] Error 2
make[1]: Leaving directory '/home/piyoko/.cache/yay/wine-lol/src/wine-lol-32-build/dlls/schedsvc/tests'
make: *** [Makefile:9241: dlls/schedsvc/tests] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Error making: wine-lol
M-Reimer commented 4 years ago

This "multiple definitions" thing is a new problem with the latest gcc version. So there may be two ways to fix this a) Update wine (maybe some newer version is updated to build with gcc 10.1) b) modify LDFLAGS to contain -fcommon which would make the current version build again

M-Reimer commented 4 years ago

I have updated wine-lol here. Please test this including some games in LoL (I no longer play regularly as the game just sucks). As soon as I have feedback that it works, I'll push this to AUR and create updated binary packages.

M-Reimer commented 4 years ago

Nice. And not much activity there. So what to do then?

yuiiio commented 4 years ago

import gcc 10 fix from https://github.com/mstefani/wine-stable/commits/queue

M-Reimer commented 4 years ago

None of these patches landed in Wine actually but latest Wine version builds well with gcc 10.1. So I guess the upstream fix is different.

I prefer to keep the patch list short. So I'll have a look at how to modify LDFLAGS later.

noaccOS commented 4 years ago

In the meantime, I'm trying to build the updated version I only play this game with my girlfriend, I perfectly agree that it sucks. I'll do a couple URF games later and will update here on the results

M-Reimer commented 4 years ago

No need to even try. It will build but according to the bug referenced by @yuiiio it won't run LoL.

noaccOS commented 4 years ago

Yes, but wasn't it for 5.7? (Not sure, was the comment deleted?) Your version is 5.8, maybe something has changed

M-Reimer commented 4 years ago

Already reverted back to 5.6 in the repo. The bug is still open so I don't think that this is fixed already.

noaccOS commented 4 years ago

Can confirm it crashes

M-Reimer commented 4 years ago

Try latest state. Hope this works. Also contains the patch suggested by @yuiiio but I added it in a different way (fetch the updated version directly from wine-staging).

yuiiio commented 4 years ago

Thank you @M-Reimer !

M-Reimer commented 4 years ago

Feel free to suggest other changes but I want to keep the list of patches in my repo short. Linking them externally also adds the information where they came from. And only patches that actually have some impact on LoL. I want to stay as close as possible to upstream.

M-Reimer commented 4 years ago

I did a short test and it seems to work.

AUR is updated. Tomorrow I'll create the binary packages.

M-Reimer commented 4 years ago

Binary packages are created, too.