protonscr

Proton fails to build in Linux (arch)

protonclosed
ValveSoftware/Proton#1944 · opened 2018-11-10 by redstik · updated 2019-01-02 · 20 comments · github
Rredstik 2018-11-10 github

After completing what seems to be a full compile, this error appears and quits (previous line included for context):
make[1]: Leaving directory '/home/two/proton/mybuild'
make: *** [../build/makefile_base.mak:15: nested_make] Error 2

Installed all necessary prereqs to the compile, cant figure out what it could be.

Aah- 2018-11-10 github

How exactly did you try to build it?

Can you include the whole log? These two lines just say that something earlier has gone wrong.

Rredstik 2018-11-10 github

I tried to make again, it reconfigured by the looks of it and just spat out those 2 lines. I dont know how to access the old log. Should I just recompile from scratch? also I used the guide in the readme with --no-steam-runtime

Ddreamer 2018-11-10 github

I've never successfully completed build with --no-steam-runtime, but it's pretty easy to build using Docker - so I would recommend doing that first. I documented all steps on wiki: https://github.com/ValveSoftware/Proton/wiki/Build-instructions-(Fedora) - if you'll manage to build it on Arch, it would be nice to document it as well (preferably on separate page).

Rredstik 2018-11-10 github

@dreamer It doesnt build with the runtime, using make -j13 all dist. Logging it with STDERR as well, here is the file.
makej13alldist.log

Nnsivov 2018-11-11 github

@redstik you'll need to install fontforge. From your log:

fontforge -quiet -script ../fonts/scripts/generatefont.pe obj-fonts/LiberationSans-Regular.sfd "Arial" "Arial" "Arial"
/bin/sh: fontforge: command not found
make[1]: *** [../build/makefile_base.mak:969: obj-fonts/LiberationSans-Regular.ttf] Error 127
make[1]: *** Waiting for unfinished jobs....

Rredstik 2018-11-11 github

after installing fontforge and compiling, it errors out again. here is the log after running make for the second time.
my.log
EDIT: running make install installs sucessfully, however the build fails to launch any games.

Llieff 2018-11-11 github
In file included from ../../include/d3d10sdklayers.h:31:0,
                 from ../../include/d3d10.h:5757,
                 from ../../include/d3d10_1.h:48,
                 from ../../include/d2d1.h:257,
                 from ../../../../wine/dlls/dwrite/dwrite_private.h:20,
                 from ../../../../wine/dlls/dwrite/analyzer.c:26:
../../include/ocidl.h:9:0: internal compiler error: Segmentation fault

Compiler crash.

Rredstik 2018-11-11 github

What should I do?

Llieff 2018-11-12 github

Well, most simple way - try another compiler version. Or try fire compiler bug, they will probably ask to try latest git, because bug can be already fixed upstream.

Rredstik 2018-11-12 github

by the looks of it, this is a ryzen hardware issue.
after disabling ASLR echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
and toning down my overclock on CPU and RAM it compiled sucessfully.
Thanks.

RRabcor 2018-11-13 github

did you try the AUR package?

GGloriousEggroll 2018-11-13 github

@redstik I was able to duplicate this problem in a debian VM with my threadripper host cpu structure passed through, that resolved it for me as well

-edit-

that fix got past the first one, but it came back to haunt me again

-- Installing: /home/ge/proton/mybuild/obj-tools32/share/openal/presets/square.ambdec
-- Installing: /home/ge/proton/mybuild/obj-tools32/share/openal/presets/presets.txt
make: Leaving directory `/home/ge/proton/mybuild/obj-openal32'
mkdir -pv ./dist/dist/lib/wine/
mkdir -p ./dist/dist/lib64
mkdir -p ./dist/dist/lib
cp -a ./obj-lsteamclient64/lsteamclient.dll.so ./dist/dist/lib64/wine/
cp -L ./obj-tools64/lib/libopenal* ./dist/dist/lib64/
cp -a ./obj-lsteamclient32/lsteamclient.dll.so ./dist/dist/lib/wine/
cp -L ./obj-tools32/lib/libopenal* ./dist/dist/lib/
[ x"strip" = x ] || strip ./dist/dist/lib64/libopenal.so
[ x"strip" = x ] || strip ./dist/dist/lib/libopenal.so
make[1]: Leaving directory '/home/ge/proton/mybuild'
../build/makefile_base.mak:15: recipe for target 'nested_make' failed
make: *** [nested_make] Error 2
Aalasky17 2018-11-13 github

I ran into problems when compiling with a -j4 flag. Compiling without the flag took longer but avoided some issues.

Ddreamer 2018-11-13 github

If you have a build failing for random reason like that, I suggest running make -j1 to see exactly what caused a failure. One of the common problems may be e.g. lack of some dependency or not initialized git submodule.

GGloriousEggroll 2018-11-13 github

fixed it. stupid fontforge wasn't installed

somehow missed that in this thread earlier. that should probably be added to the readme

Aaeikum 2018-11-14 github

Yes, we missed adding fontforge to the readme. Sorry about that. It will be added soon.

Oomentic 2018-11-16 github

Adding onto this, the newest update also does not install on Manjaro (derivative of Arch). Here's my build log in a Gist. This is from the AUR, I have not tried compiling from source.

It doesn't seem to be the same error.

Kkisak-valve maintainer 2018-11-16 github

Hello @j-james, AUR packaging issues should be reported to the package maintainer (in the AUR).

Aaeikum 2018-12-11 github

Fontforge is now documented via the Vagrant setup files. OK to close this?

GGloriousEggroll 2018-12-12 github

@aeikum I was able to make a test build last night without issue, it's safe to close IMO

DLLs