Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_proton.sh cannot find winegcc #494

Closed
GregSutcliffe opened this issue Aug 25, 2018 · 5 comments
Closed

build_proton.sh cannot find winegcc #494

GregSutcliffe opened this issue Aug 25, 2018 · 5 comments

Comments

@GregSutcliffe
Copy link

I think I have the build environment correctly set up - DXVK builds, then Wine kicks off, gets most of the way through, and then fails missing winegcc:

make[1]: Entering directory `/opt/proton/build/wine.win32/server'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/proton/build/wine.win32/server'
/opt/proton/wine/tools/install-sh -m 644  server/wineserver.de.UTF-8.man /opt/proton/build/tools.win32/share/man/de.UTF-8/man1/wineserver.1
/opt/proton/wine/tools/install-sh -m 644  server/wineserver.fr.UTF-8.man /opt/proton/build/tools.win32/share/man/fr.UTF-8/man1/wineserver.1
/opt/proton/wine/tools/install-sh -m 644  server/wineserver.man /opt/proton/build/tools.win32/share/man/man1/wineserver.1
STRIPPROG="strip" /opt/proton/wine/tools/install-sh  server/wineserver-installed /opt/proton/build/tools.win32/bin/wineserver
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_GB:en",
	LC_ALL = (unset),
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Winemaker 0.8.4
Copyright 2000-2004 François Gouget <fgouget@codeweavers.com> for CodeWeavers
Copyright 2004 Dimitrie O. Paun
Copyright 2009-2012 André Hentschel
Scanning the source directories...
Generating project files...
  .
winegcc -c -O2 -g  -I/opt/proton/build/tools.win64/include/ -I/opt/proton/build/tools.win64/include/wine/ -I/opt/proton/build/tools.win64/include/wine/windows/ -I. -DSTEAM_API_EXPORTS  -o steamclient_main.o steamclient_main.c
make: winegcc: Command not found
winegcc -c -O2 -g  -I/opt/proton/build/tools.win64/include/ -I/opt/proton/build/tools.win64/include/wine/ -I/opt/proton/build/tools.win64/include/wine/windows/ -I. -DSTEAM_API_EXPORTS  -o steamclient_wrappers.o steamclient_wrappers.c
make: winegcc: Command not found
make: *** [steamclient_main.o] Error 127
make: *** Waiting for unfinished jobs....
make: *** [steamclient_wrappers.o] Error 127

winegcc is definitely present in the host enviroment:

root@proton:/opt/proton# winegcc --version
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Do I need to make it available to the chroots as well?

@c0r73x
Copy link

c0r73x commented Aug 27, 2018

Humm it's odd, because I built it without even having wine (winegcc) on my machine. Could it be that it tries to use wine if it's installed but fails?

@GregSutcliffe
Copy link
Author

Sadly that made no difference, I'm still getting command not found. Can you share your setup notes for your build host?

@thronezilla
Copy link

I'm having the same issue. It should be using winegcc from build/tools.win(32|64)/bin and you can see the PATH being updated to include those binaries here: https://github.com/ValveSoftware/Proton/blob/proton_3.7/build_proton.sh#L334

Though I've noticed that for me, PATH is getting clobbered within the chroot environment

$ PATH="/usr/bin" schroot --chroot steamrt_scout_beta_i386 env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/

I've not yet had much time to dig in further - let me know if you find anything!

@GregSutcliffe
Copy link
Author

@thronezilla good spot! I can confirm the same behaviour with $PATH, it's easy to reproduce with schroot --chroot steamrt_scout_beta_amd64 -- env

What I can't figure out is how to stop it... I've tried:

  • ~/.bashrc (both host and chroot)
  • /etc/profile and /etc/profile.d
  • /etc/environment
  • /etc/login.defs

I even resorted to using strace on schroot to try and see how it was being overridden... no luck yet!

@rafaziz
Copy link

rafaziz commented Oct 4, 2018

I'm getting the same error, have you found any solution to this?

@aeikum aeikum closed this as completed Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants