Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(solved) dxvk-9999 wont build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Thu Sep 02, 2021 2:01 am    Post subject: (solved) dxvk-9999 wont build Reply with quote

im trying to build DXVK from git master using this ebuild.

https://github.com/shoober420/shoober420-overlay/blob/main/app-emulation/dxvk-async/dxvk-async-9999.ebuild

ive installed mingw64 using "crossdev --target x86_64-w64-mingw32" and "crossdev --target i686-w64-mingw32" i experience this error when trying to build DXVK.

Code:

 * Package:    app-emulation/dxvk-async-9999
 * Repository: localrepo
 * USE:        abi_x86_32 abi_x86_64 amd64 async d3d10 d3d11 d3d9 dxgi elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * mingw64 gcc does not support posix threading, rebuild with:
 * EXTRA_ECONF="--enable-threads=posix" emerge -1 cross-i686-w64-mingw32/gcc
 * See: https://wiki.gentoo.org/wiki/Mingw
 * cross-i686-w64-mingw32 toolchain is not properly installed.
 * ERROR: app-emulation/dxvk-async-9999::localrepo failed (pretend phase):
 *   (no error message)
 *
 * Call stack:
 *                ebuild.sh, line 127:  Called pkg_pretend
 *   dxvk-async-9999.ebuild, line  57:  Called mingw64_check_requirements '6.0.0' '8.0.0'
 *           mingw64.eclass, line  93:  Called die
 * The specific snippet of code:
 *         die
 *
 * If you need support, post the output of `emerge --info '=app-emulation/dxvk-async-9999::localrepo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/dxvk-async-9999::localrepo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/dxvk-async-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/dxvk-async-9999/temp/die.env'.
 * Working directory: '/var/tmp/portage/app-emulation/dxvk-async-9999/empty'
 * S: '/var/tmp/portage/app-emulation/dxvk-async-9999/work/dxvk-async-9999'


i recompiled both 64bit and 32bit mingw gcc using "EXTRA_ECONF="--enable-threads=posix" emerge -1 cross-x86_64-w64-mingw32/gcc" and "EXTRA_ECONF="--enable-threads=posix" emerge -1 cross-i686-w64-mingw32/gcc", and it still says the same error. anyone know whats going on?
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420


Last edited by shoober420 on Thu Sep 02, 2021 5:58 am; edited 1 time in total
Back to top
View user's profile Send private message
TheGreatMcPain
n00b
n00b


Joined: 30 Oct 2019
Posts: 6

PostPosted: Thu Sep 02, 2021 5:50 am    Post subject: Reply with quote

If the output of "$ x86_64-w64-mingw32-gcc -v" doesn't contain "--enable-threads=posix" than your mingw gcc hasn't been properly compiled with pthreads.

Also, you might want to make sure "cross-i686-w64-mingw32/mingw64-runtime" and "cross-x86_64-w64-mingw32/mingw64-runtime" have the "libraries" useflag enabled, because that will provide the pthread library required for "--enable-threads=posix" to work.
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Thu Sep 02, 2021 5:58 am    Post subject: Reply with quote

i got it working. i needed to add an env file to ensure it was actually adding the command properly to mingw gcc.

https://github.com/shoober420/rootscripts/blob/main/etc/portage/env/mingwgcc.conf
https://github.com/shoober420/rootscripts/blob/main/etc/portage/package.env/shoober420env#L10

now im getting a DXVK build error that im sure is related to GCC12.

https://github.com/doitsujin/dxvk/issues/2269
_________________
https://www.github.com/shoober420
https://bandcamp.com/shoober420
https://steamcommunity.com/id/shoober420
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum