unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: guix-devel@gnu.org
Cc: Mathieu Othacehe <othacehe@gnu.org>, Carl Dong <contact@carldong.me>
Subject: Re: DXVK 1.5: Need to use the mingw compiler, anyone?
Date: Fri, 15 May 2020 11:29:45 +0200	[thread overview]
Message-ID: <877dxdzgty.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87tv5wh31y.fsf@ambrevar.xyz>

[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]

DXVK 1.6 does not seem to build with Winelib anymore and upstream has
deprecated Winelib for a while.

I'm trying to compile dxvk with mingw instead.

How do I use mingw to build a package (dxvk uses meson)?

Can I use the #:system argument?  Otherwise I could add mingw as input
like this:

--8<---------------cut here---------------start------------->8---
(make-mingw-w64 "x86_64"
 #:xgcc (cross-gcc "x86_64-linux-gnu")
 #:xbinutils (cross-binutils "x86_64-linux-gnu")
 #:with-winpthreads? #t)
--8<---------------cut here---------------end--------------->8---

or, for the 32-bit build (dxvk needs both)

--8<---------------cut here---------------start------------->8---
(make-mingw-w64 "i686"
 #:xgcc (cross-gcc "i686-linux-gnu")
 #:xbinutils (cross-binutils "i686-linux-gnu")
 #:with-winpthreads? #t)
--8<---------------cut here---------------end--------------->8---

I can't seem to be able to build the mingw compiler though.
The following fails on master

--8<---------------cut here---------------start------------->8---
./guix/pre-inst-env guix build -e '((@@ (gnu packages mingw) make-mingw-w64) "i686" #:xgcc ((@@ (gnu packages cross-base) cross-gcc) "i686-linux-gnu") #:xbinutils ((@@ (gnu packages cross-base) cross-binutils) "i686-linux-gnu") #:with-winpthreads? #t)'
--8<---------------cut here---------------end--------------->8---

with

--8<---------------cut here---------------start------------->8---
checking how to run the C preprocessor... /gnu/store/0qqmpdm7v8jigvvv5i05ihdz2jlbmjmf-gcc-cross-sans-libc-i686-linux-gnu-7.5.0/bin/i686-w64-mingw32-cpp
configure: error: in `/tmp/guix-build-mingw-w64-i686-7.0.0.drv-0/mingw-w64-v7.0.0/mingw-w64-crt':
configure: error: C preprocessor "/gnu/store/0qqmpdm7v8jigvvv5i05ihdz2jlbmjmf-gcc-cross-sans-libc-i686-linux-gnu-7.5.0/bin/i686-w64-mingw32-cpp" fails sanity check
See `config.log' for more details
configure: error: ./configure failed for mingw-w64-crt
command "/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash" "./configure" "CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash" "SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash" "--prefix=/gnu/store/x7pl1lh5x81s047bgp3j00dp2qrqkviv-mingw-w64-i686-7.0.0" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=i686-w64-mingw32" failed with status 1
builder for `/gnu/store/i5i6zq8b6knrr96l554d8lw2pd2mbii6-mingw-w64-i686-7.0.0.drv' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

Any idea?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

      reply	other threads:[~2020-05-15  9:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19 13:12 DXVK 1.5: Need to use the mingw compiler, anyone? Pierre Neidhardt
2020-05-15  9:29 ` Pierre Neidhardt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877dxdzgty.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=contact@carldong.me \
    --cc=guix-devel@gnu.org \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).