EDIT and fix: so the problem was with gcc-7.3 and bugs it had, things like the mstackrealign on glibc and others was a workaround, but upgrading and rebuilding with gcc-8 fixed all the bugs for me and everything works great, videos and all._________________A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

-The First Law of Mentat

Last edited by djdunn on Sat Jun 23, 2018 12:11 am; edited 1 time in total

have this set in your environment variables: STEAM_RUNTIME_PREFER_HOST_LIBRARIES=1 will force steam to prefer your system libs over the older steam libs_________________The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king

ok, change the launch options (in steam) and add: SSL_CERT_DIR="/etc/ssl/certs" LD_PRELOAD='./libcxxrt.so:/usr/$LIB/libstdc++.so.6' %command%_________________The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king

[Moderator edit: added [code] tags to preserve output layout. -Hu]_________________A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

[Moderator edit: added [code] tags to preserve output layout. -Hu]_________________A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

Unfortunately for glibc this means hacking the eclass. But after recompiling the packages Borderlands2 works again for me._________________printk(KERN_CRIT "Whee.. Swapped out page in kernel page table\n");
linux-2.6.6/mm/vmalloc.c

i got it to work compiling only glibc with -mstackrealign_________________A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it.

_________________The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king

Old topic but still actual, once I solved the error I had with libxcb.so I was greeted with that libpthread.so error next
Both are solvable with CFLAGS, at least the first one surely is because I tried it, but I didn't wanna mess with glibc and some other libs to solve the second one
I get that error with Kotor2 as well, I just decided not to play those games for now.
In my case altering CFLAGS for glibc wasn't enough.

I fixed this by disabling "prefer client libraries" looks like the issue is sort of still there but the steam runtimes are now isolated enough_________________The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king

Seeing the same error for Civ Beyond Earth, which was getting either a libxcb or libpthread error in dmesg for me. Recompiling libxcb, glibc, openal, pulseaudio with -mstackrealign like @PuckPoltergeist said worked for me on znver1, gcc-8, and glibc-2.29.

and the game worked as expected. However, I didn't really want to replace my system openal to do this, and I found that Borderlands2 will try to load from it's own folder first -- copying /usr/lib/libopenal.so.1.19.1 to {steamapps}/common/Borderlands\ 2/ andthen also symlinking as libopenal.so.1:

Code:

ln -s libopenal.so.1.19.1 libopenal.so.1

and re-merging media-libs/openal with no override for CFLAGS or CXXFLAGS

Code:

emerge -1 media-libx/openal

the game still loads up fine (so I assume it's using a local libopenal)

just thought I'd add here in case anyone hit this (and perhaps anyone who has recompiled system libs would prefer to not have a requirement of one game determine compilation of a system lib)[/code]