Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mingw is a nightmare.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Fri Sep 21, 2018 12:04 am    Post subject: Mingw is a nightmare. Reply with quote

Hey, i'm having issues with mingw on gentoo while installing DXVK.

INFO HERE:
https://wiki.gentoo.org/wiki/User:Kreyren/mingw_taHqeq

Thanks for any help, 8O
- Krey
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Fri Sep 21, 2018 6:18 am    Post subject: Reply with quote

See this post.
I know nothing about DXVK but I have a working mingw (32 and 64 bit) built with gcc-4.9.4.
I see no need to upgrade the compiler since it works perfectly well.

Tell me if you need more help.

PS. In addition to the patch you may also need to set: USE="-sanitize -fortran" just for cross-x86_64-w64-mingw32/gcc
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Sep 21, 2018 11:04 am    Post subject: ><)))°€ Reply with quote

While I have had similar issues with MinGW, it was already a while ago since I last tried building it, and I didn't find a fix to my issue(s) back then.

However, do you really /need/ to build DXVK?

If you just want to install it, Winetricks has verbs for just that purpose. :]
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Dr.Willy
Guru
Guru


Joined: 15 Jul 2007
Posts: 547
Location: NRW, Germany

PostPosted: Fri Sep 21, 2018 1:31 pm    Post subject: Re: ><)))°€ Reply with quote

Chiitoo wrote:
However, do you really /need/ to build DXVK?

Welcome to Gentoo, enjoy your stay. :P
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Sep 21, 2018 1:45 pm    Post subject: Re: ><)))°€ Reply with quote

Dr.Willy wrote:
Chiitoo wrote:
However, do you really /need/ to build DXVK?

Welcome to Gentoo, enjoy your stay. :P

Thanks! It has been a rather enjoyable 8 years so far.

The thing is, that I suspect the user in this case might actually not be aware of the Winetricks option (it happens), so I'm Just making sure. :]

It's just a theory though. A... build theory?

As a side note, I still seem to be unable to build the 64-bit chain (32-bit might be okay). I think last time I got to the stage 2 part as well, but now it fails already at the runtime:

Code:
checking whether the C compiler works... no
configure: error: in `/mnt/rokikaru/portage-stuff/builds/portage/cross-x86_64-w64-mingw32/mingw64-runtime-5.0.4/work/mingw-w64-v5.0.4/mingw-w64-libraries/libmangle':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: ./configure failed for mingw-w64-libraries/libmangle

Meh. Don't quite have the time right now to look into it deeper myself.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Fri Sep 21, 2018 2:34 pm    Post subject: Reply with quote

Thanks all for info i apreciate it. :oops: I will take a look at it deeper tomorrow since i spent 52 hours with it now and im tired >.>

Quote:
PS. In addition to the patch you may also need to set: USE="-sanitize -fortran" just for cross-x86_64-w64-mingw32/gcc

sanitize, fortran are already excluded from USE flags.

Quote:
While I have had similar issues with MinGW, it was already a while ago since I last tried building it, and I didn't find a fix to my issue(s) back then.

However, do you really /need/ to build DXVK?

If you just want to install it, Winetricks has verbs for just that purpose. :]


I can't use winetricks since those DLL wasn't built yet.. >.> That is the only method Afaik
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Fri Sep 21, 2018 3:32 pm    Post subject: Reply with quote

kreyren wrote:
I can't use winetricks since those DLL wasn't built yet.. >.> That is the only method Afaik

Ah, you want changes that are not in a release yet? Makes more sense, then.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sat Sep 22, 2018 12:45 am    Post subject: Reply with quote

Quote:
Ah, you want changes that are not in a release yet? Makes more sense, then.



setup_dxvk.verb != included in https://github.com/doitsujin/dxvk. It needs to be built in order to generate a folder with setup_dxvk.verb for me to use winetricks --force setup_dxvk.verb or that is what i understand.

EDIT:

it's located in $DXVK_DIR/utils, but it can't be used with winetricks --force setup_dxvk.verb since folders for x32 and x64 are not generated.

Code:
winetricks --force setup_dxvk.verbUsing winetricks 20180815-next - sha256sum: cff80fa6dbd02b43972d13fc82e4af9bddd968623c0b18620679816968a07f80 with wine-3.16-149-gb1a3b9e5ce (Staging) and WINEARCH=win32
Executing w_do_call setup_dxvk
Executing load_setup_dxvk
/home/kreyren/Downloads/dxvk-master/utils/x32 or /home/kreyren/Downloads/dxvk-master/utils/x64 directory not found.


EDIT2: i didn't noticed that "release" is clickable on dxvk github.. downloaded it and all neccesary files are present.. >.>

EDIT3: DXVK installed, solved thanks


Last edited by kreyren on Sat Sep 22, 2018 1:22 am; edited 3 times in total
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sat Sep 22, 2018 12:53 am    Post subject: Reply with quote

Quote:
See this post.
I know nothing about DXVK but I have a working mingw (32 and 64 bit) built with gcc-4.9.4.
I see no need to upgrade the compiler since it works perfectly well.

Tell me if you need more help.

PS. In addition to the patch you may also need to set: USE="-sanitize -fortran" just for cross-x86_64-w64-mingw32/gcc


It seems to be non-related to my issue :? or can you provide more info? i have no experience with mingw..
Back to top
View user's profile Send private message
kreyren
n00b
n00b


Joined: 21 Sep 2018
Posts: 40
Location: Brno, Czech republic

PostPosted: Sat Sep 22, 2018 1:10 am    Post subject: Reply with quote

Note that i'm using Gentoo hardened. This issue is probably not present on non-hardened.
Back to top
View user's profile Send private message
proteusx
Guru
Guru


Joined: 21 Jan 2008
Posts: 338

PostPosted: Sat Sep 22, 2018 2:21 pm    Post subject: Reply with quote

kreyren wrote:
It seems to be non-related to my issue

As one of the contributors to the thread said:
Quote:
I cannot compile AVR, MIPS, or MinGW toolchains at all. It seems crossdev is no longer able to deal with path of libraries properly!

The patch posted there enabled me to build MinGW64 which failed to build stage 2, like in your case.
In any case, it appears the patch is not needed any more.

It is 3 years since the last time I installed a MinGW cross compiler, so I just did a new install on a spare machine.
It installed the toolchain without a problem. Here is the command I used:
Code:
# crossdev -t mingw64 --g 6.4.0-r3 --b 2.31.1-r1 --k 4.12.14
And the output.

With it I can compile Widows executables without any problems. Here is a simple example to compile. Just type 'make'.

Note: --g specifies the gcc version, --b the binutils version and --k the kernel to use.
I have no later versions of gcc and kernel installed in my machines because I have special requirements which later version do not meet.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Mon Sep 24, 2018 10:55 am    Post subject: Reply with quote

kreyren wrote:
Quote:
Ah, you want changes that are not in a release yet? Makes more sense, then.



setup_dxvk.verb != included in https://github.com/doitsujin/dxvk. It needs to be built in order to generate a folder with setup_dxvk.verb for me to use winetricks --force setup_dxvk.verb or that is what i understand.

EDIT:

it's located in $DXVK_DIR/utils, but it can't be used with winetricks --force setup_dxvk.verb since folders for x32 and x64 are not generated.

Code:
winetricks --force setup_dxvk.verbUsing winetricks 20180815-next - sha256sum: cff80fa6dbd02b43972d13fc82e4af9bddd968623c0b18620679816968a07f80 with wine-3.16-149-gb1a3b9e5ce (Staging) and WINEARCH=win32
Executing w_do_call setup_dxvk
Executing load_setup_dxvk
/home/kreyren/Downloads/dxvk-master/utils/x32 or /home/kreyren/Downloads/dxvk-master/utils/x64 directory not found.


EDIT2: i didn't noticed that "release" is clickable on dxvk github.. downloaded it and all neccesary files are present.. >.>

EDIT3: DXVK installed, solved thanks

Hm, just to make double sure, I was referring to the verbs that Winetricks itself ships with (so you would just do 'winetricks dxvk' for the latest).

That being said, it seems the latest upstream is dxvk80, while the latest in Winetricks is dxvk72, so disregard this if the issue was all along that you need a newer one than what Winetricks provides. :]

proteusx,

Thanks for testing and posting about your findings with regards to MinGW. I tend to have only the latest GCC (8.2.0-r2 at this time) if it works at least with most things in my 'world', but perhaps there is something making it incompatible with MinGW. Your findings should be useful regardless.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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