Package Details: wine-git 9.9.r71.g1bccb4cf9a5-1

Git Clone URL: https://aur.archlinux.org/wine-git.git (read-only, click to copy)
Package Base: wine-git
Description: A compatibility layer for running Windows programs (git version)
Upstream URL: https://www.winehq.org/
Keywords: windows wine
Licenses: LGPL-2.1-or-later
Conflicts: bin32-wine, wine, wine-wow64
Provides: bin32-wine, wine, wine-wow64
Replaces: bin32-wine
Submitter: None
Maintainer: dbermond
Last Packager: dbermond
Votes: 86
Popularity: 0.000774
First Submitted: 2007-07-18 16:01 (UTC)
Last Updated: 2024-05-23 02:09 (UTC)

Latest Comments

1 2 3 4 5 6 .. 15 Next › Last »

dbermond commented on 2024-05-24 04:16 (UTC)

@Beiruty nice, I hope it works.

Beiruty commented on 2024-05-24 04:03 (UTC)

@dbermond I updated the # /etc/makepkg.conf from the /etc/makepkg.conf.pacnew and trying again to recompile the wine-git.

Very much appreciated your help.

dbermond commented on 2024-05-24 03:33 (UTC)

@Beiruty your LDFLAGS is outdated (and probably your entire makepkg configuration). You should updated it to the latest version. Probably you already have a copy of the latest in '/etc/makepkg.conf.pacnew' (don't forget to check this file against your current makepkg config when pacman updates itself). The package should build fine if you update your LDFLAGS. Also, your log shows that you are an AUR helper, and this is not supported. Use makepkg.

Beiruty commented on 2024-05-24 03:19 (UTC)

#!/hint/bash
#
# /etc/makepkg.conf
#

#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
          'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')

# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget

#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'fossil::fossil'
            'git::git'
            'hg::mercurial'
            'svn::subversion')

#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"

#-- Compiler and Linker Flags
#CPPFLAGS=""
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
LTOFLAGS="-flto=auto"
#RUSTFLAGS="-C opt-level=2"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j8"
#-- Debugging flags
DEBUG_CFLAGS="-g"
DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
#DEBUG_RUSTFLAGS="-C debuginfo=2"

dbermond commented on 2024-05-24 03:10 (UTC)

@Beiruty this does not answer my question. I'm asking what you have in your makepkg's LDFLAGS, not in the PKGBUILD.

Beiruty commented on 2024-05-24 03:08 (UTC) (edited on 2024-05-24 03:11 (UTC) by Beiruty)

@dbermond It could be outdated. There is M (modified) git flag for this file

build() {
    export CFLAGS+=' -ffat-lto-objects'

    # apply flags for cross-compilation
    export CROSSCFLAGS="${CFLAGS/-Werror=format-security/}"
    export CROSSCXXFLAGS="${CXXFLAGS/-Werror=format-security/}"
    export CROSSLDFLAGS="${LDFLAGS//-Wl,-z*([^[:space:]])/}"

dbermond commented on 2024-05-24 02:54 (UTC)

@Beiruty The question is not if your binutils supports or not the '-z' option. Of course if supports, but only in GNU/linux. But here we are cross compiling for a windows target using mingw-w64, and the '-z' option is not supported in mingw-w64 ld. The question is why your mingw-w64 ld is using it, since it's explicitly removed from CROSSLDFLAGS in the PKGBUILD. It looks like you have a modified LDFLAGS or an outdated one. What is in your makepkg's LDFLAGS?

Beiruty commented on 2024-05-23 23:10 (UTC) (edited on 2024-05-24 03:09 (UTC) by Beiruty)

@dbermond

extra/mingw-w64-binutils 2.39-1 (4.2 MiB 36.6 MiB) [mingw-w64-toolchain mingw-w64] (Installed)
    Cross binutils for the MinGW-w64 cross-compiler
core/binutils 2.42+r91+g6224493e457-1 (7.5 MiB 39.9 MiB) (Installed)
    A set of programs to assemble and manipulate binary and object files


└─(18:16:17)──> yay -Ss mingw G Installed                                                 ──(Thu,May23)─┘
aur/dxvk-mingw 2.3.1-1 (+9 0.03) (Installed)
extra/mingw-w64-binutils 2.39-1 (4.2 MiB 36.6 MiB) [mingw-w64-toolchain mingw-w64] (Installed)
extra/mingw-w64-winpthreads 11.0.0-1 (206.5 KiB 1.6 MiB) [mingw-w64-toolchain mingw-w64] (Installed)
extra/mingw-w64-headers 11.0.0-1 (10.6 MiB 132.2 MiB) [mingw-w64-toolchain mingw-w64] (Installed)
extra/mingw-w64-gcc 13.1.0-1 (224.8 MiB 969.3 MiB) [mingw-w64-toolchain mingw-w64] (Installed)
extra/mingw-w64-crt 11.0.0-1 (5.9 MiB 152.2 MiB) [mingw-w64-toolchain mingw-w64] (Installed)

Beiruty commented on 2024-05-23 22:54 (UTC) (edited on 2024-05-23 23:25 (UTC) by Beiruty)

@dbermond

└─(17:44:24)──> /usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld -v     
GNU ld (GNU Binutils) 2.39

The GNU ld (GNU Binutils) version 2.42 supports-z option

Beiruty commented on 2024-05-23 22:21 (UTC) (edited on 2024-05-23 22:21 (UTC) by Beiruty)

Here is the error transcript

tools/winegcc/winegcc -o dlls/appwiz.cpl/x86_64-windows/appwiz.cpl --wine-objdir . -b x86_64-w64-mingw32 -Wl,--wine-builtin -shared \
  ../wine/dlls/appwiz.cpl/appwiz.cpl.spec dlls/appwiz.cpl/x86_64-windows/addons.o \
  dlls/appwiz.cpl/x86_64-windows/appwiz.o dlls/appwiz.cpl/appwiz.res \
  libs/uuid/x86_64-windows/libuuid.a dlls/urlmon/x86_64-windows/liburlmon.a \
  dlls/advpack/x86_64-windows/libadvpack.a dlls/comctl32/x86_64-windows/libcomctl32.a \
  dlls/advapi32/x86_64-windows/libadvapi32.a dlls/shell32/x86_64-windows/libshell32.a \
  dlls/ole32/x86_64-windows/libole32.a dlls/user32/x86_64-windows/libuser32.a \
  dlls/comdlg32/x86_64-windows/libcomdlg32.a dlls/bcrypt/x86_64-windows/libbcrypt.a \
  dlls/kernelbase/x86_64-windows/libkernelbase.a dlls/msi/x86_64-windows/libmsi.delay.a \
  dlls/winecrt0/x86_64-windows/libwinecrt0.a dlls/ucrtbase/x86_64-windows/libucrtbase.a \
  dlls/kernel32/x86_64-windows/libkernel32.a dlls/ntdll/x86_64-windows/libntdll.a -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: unrecognized option '-z'
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:4876: dlls/apphelp/tests/x86_64-windows/apphelp_test.exe] Error 2
make: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: unrecognized option '-z'
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:4795: dlls/apphelp/x86_64-windows/apphelp.dll] Error 2
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: unrecognized option '-z'
/usr/lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
winegcc: /usr/bin/x86_64-w64-mingw32-gcc failed
make: *** [Makefile:5010: dlls/appwiz.cpl/x86_64-windows/appwiz.cpl] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: wine-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
wine-git - exit status 4