M-Reimer / wine-lol

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

wine-lol-glibc build fails #89

Closed hkupty closed 2 years ago

hkupty commented 2 years ago

Hi! Thanks for the package.

I'm getting the following error when trying to build the AUR package:

gcc -m32 -mstackrealign ../sysdeps/unix/sysv/linux/i386/setcontext.S -c     -I../include -I/opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/stdlib  -I/opt/code/aur/wine-lol-glibc/src/lib32-glibc-build  -I../sysdeps/unix/sysv/linux/i386/i686  -I../sysdeps/i386/i686/nptl  -I../sysdeps/unix/sysv/linux/i386  -I../sysdeps/unix/sysv/linux/x86/include -I../sysdeps/unix/sysv/linux/x86  -I../sysdeps/x86/nptl  -I../sysdeps/i386/nptl  -I../sysdeps/unix/sysv/linux/include -I../sysdeps/unix/sysv/linux  -I../sysdeps/nptl  -I../sysdeps/pthread  -I../sysdeps/gnu  -I../sysdeps/unix/inet  -I../sysdeps/unix/sysv  -I../sysdeps/unix/i386  -I../sysdeps/unix  -I../sysdeps/posix  -I../sysdeps/i386/i686/fpu/multiarch  -I../sysdeps/i386/i686/fpu  -I../sysdeps/i386/i686/multiarch  -I../sysdeps/i386/i686  -I../sysdeps/i386/fpu  -I../sysdeps/x86/fpu  -I../sysdeps/i386  -I../sysdeps/x86/include -I../sysdeps/x86  -I../sysdeps/wordsize-32  -I../sysdeps/ieee754/float128  -I../sysdeps/ieee754/ldbl-96/include -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32  -I../sysdeps/ieee754  -I../sysdeps/generic  -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include-fixed -isystem /usr/include -D_LIBC_REENTRANT -include /opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/libc-modules.h -DMODULE_NAME=libc -include ../include/libc-symbols.h  -DPIC     -DTOP_NAMESPACE=glibc -DASSEMBLER -DGAS_SYNTAX -fcf-protection -include cet.h -Werror=undef -Wa,--noexecstack  -Wa,-mtune=i686 -o /opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/stdlib/setcontext.o -MD -MP -MF /opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/stdlib/setcontext.o.dt -MT /opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/stdlib/setcontext.o
../sysdeps/unix/sysv/linux/i386/setcontext.S: Assembler messages:
../sysdeps/unix/sysv/linux/i386/setcontext.S:62: Error: bad or irreducible absolute expression
../sysdeps/unix/sysv/linux/i386/setcontext.S:63: Error: bad or irreducible absolute expression
../sysdeps/unix/sysv/linux/i386/setcontext.S:64: Error: bad or irreducible absolute expression
../sysdeps/unix/sysv/linux/i386/setcontext.S:65: Error: bad or irreducible absolute expression
make[2]: *** [/opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/sysd-rules:75: /opt/code/aur/wine-lol-glibc/src/lib32-glibc-build/stdlib/setcontext.o] Error 1
make[2]: Leaving directory '/opt/code/aur/wine-lol-glibc/src/glibc-2.33/stdlib'
make[1]: *** [Makefile:479: stdlib/subdir_lib] Error 2
make[1]: Leaving directory '/opt/code/aur/wine-lol-glibc/src/glibc-2.33'
make: *** [Makefile:9: all] Error 2

Not really sure what would be the issue since I just got the AUR package...

M-Reimer commented 2 years ago

I did a build right now and it worked just well.

Please check if you have an /etc/makepkg.conf.pacnew file. If so, replace /etc/makepkg.conf with it. If you did changes there, make a backup first. Then build with the unmodified makepkg.conf.pacnew in place! Also be sure to remove all prebuilt stuff and all sources (pkg and src directory) and rebuild.

And also keep in mind that building can always cause trouble. I'm always happy if someone reports problems so they can be fixed, but if you need a fast fix, please use the precompiled binaries.

BGazotti commented 2 years ago

Just built it on a minty fresh Arch VM with no errors.

hkupty commented 2 years ago

I think it has something to do w/ the build flags.. Reverting back to default makes it build, but it fails in linking.. To solve my problem I'm going w/ the precompiled pkg, but I can provide any further information you'd need if you're interested in investigating further..

M-Reimer commented 2 years ago

Sorry but I'm too busy with many other projects. It does work on my dedicated build VM (which I reset regularly to be sure it always keeps at a "freshly installed" state without unexpected changes) and it does work on a fresh VM for @BGazotti

So most probably this is nothing that could be fixed on my site anyway as I won't add special handling for any non standard configuration.