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.000310
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-07-20 20:12 (UTC)

@EboniLM good to know it worked.

EboniLM commented on 2024-07-16 22:01 (UTC)

@dbermond You were absolutely correct - I had an additional makepkg.conf in ~/home that was overriding the one in /etc. :facepalm:

Thank you for your help. If it weren't for your comment, I would not have even realized it was being overriden.

dbermond commented on 2024-07-15 15:57 (UTC)

@EboniLM I have just checked, and the package is building fine. My same 'winegcc' compilation line is using '-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs'. It looks like you have some problem with your LDFLAGS, as the LDFLAGS you are showing here is not the one being used by the compilation. Maybe LDFLAGS is being overridden elsewhere? To take the proof, you can build the package in a clean chroot (for example, by running 'multilib-build'), and it will work.

EboniLM commented on 2024-07-15 14:34 (UTC)

Hi - Even with an updated makepkg.conf with the correct LDFLAGS:

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
         -Wl,-z,pack-relative-relocs"

I'm experiencing a build failure whether I update via aur helper or using makepkg:

gcc -m64 -o tools/winegcc/winegcc tools/winegcc/utils.o tools/winegcc/winegcc.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
tools/winegcc/winegcc -o dlls/acledit/x86_64-windows/acledit.dll --wine-objdir . -b x86_64-w64-mingw32 -Wl,--wine-builtin -shared \
  ../wine/dlls/acledit/acledit.spec -Wb,--prefer-native dlls/acledit/x86_64-windows/main.o \
  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:1505: dlls/acledit/x86_64-windows/acledit.dll] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Is there something I'm missing here?

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:]])/}"