Comments (8)
from steam-runtime.
c++ ABI is hell on earth. The reasonable thing to do is to statically link libstdc++ into the runtime (same thing would apply to libgcc) and let games statically link theirs.
More over, it's compiler/runtime specific. It's so hard to get right, there is near 0 "ok" c++ compiler/runtime for "production".
And look how hard and long it is to code an alternative (clang).
c++ is not something sane.
from steam-runtime.
Well, I'd also be happy if this libstdc++ was removed from Steam runtime but for some reason unknown to me Steam wants to ship it so I'm at requesting that at least a non-obsolete version is shipped.
from steam-runtime.
I think it's a good thing to keep libstdc++ in the runtime. But game devs should be directed to statically link their libstdc++ in their binaries (and libgcc too).
Since gcc 4.7 it's 2 gcc command line options, then super ultra easy to add.
Keeping that lib in the runtime is a kind of guardian against "you don't have the latest c++ ABI/feature on your gnu/linux system then your game won't run". The libc/GL/x11/alsa system libs are already too much and they rely on simple C entry points. Let me guess what will happen on the medium term with a libstdc++ which evolves super fast due to the current c++ standardisation body fenzy. With the insanity of the c++ ABI... it's unreasonnable. Moreover maybe clang c++ ABI will diverge from the gcc c++ ABI (or be just unable to be really compatible since it's hell on earth). BTW, no idea of intel c++ ABI direction.
IMHO, the right way:
- keep the shared libstdc++ into the runtime
- statically link steam client/runtime with libstdc++ (and libgcc)
- direct games devs to statically link their games as much as they can
But the end decision belongs to valve technical management staff.
from steam-runtime.
@sylware care to say which two command line options? Thanks.
from steam-runtime.
https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#Link-Options
static-libgcc ... there is an application for c++ apps too, like static
libstdc++
On Sun, Oct 16, 2016 at 7:57 AM, mbabuskov [email protected] wrote:
@sylware https://github.com/sylware care to say which two command line
options? Thanks.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#31 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOBJKjRCrQTGoJhzadZTeGcltr7lLhJks5q0hEQgaJpZM4DyQMz
.
from steam-runtime.
@sylware yes, I totally agree games should staticly link against libstdc++.
Please, Valve, make that an official recommendation if not a requirement to all future games. It will save tons of maintenance time.
from steam-runtime.
from steam-runtime.
Related Issues (20)
- Regression in SLR_soldier, SLR_sniper client beta with Flatpak: Unable to receive --assign-fd source 6: Bad file descriptor HOT 1
- third-party games are not forced to link gcc runtime libraries statically
- X11/Wayland sockets not visible/passed to games run with Sniper/Soldier under flatpak HOT 5
- libicui18n.so.67 not found on Steam Deck but is found on Linux PC HOT 17
- Unable to crate a python virtual environment to build my game HOT 4
- Steam runtimes break if allowing a specific folder via flatpak override but not its parent HOT 1
- SteamLinuxRuntime fails when using a setuid /usr/bin/bwrap: error while loading shared libraries: libdl.so.2 HOT 5
- Web Assets for Steam Linux Runtime 2.0 and 3.0 show wrong names. HOT 2
- Passing game args through pressure-vessel-wrap when running through runtime? HOT 2
- Fails to launch if stack size rlimit is less than the default 8 MiB HOT 6
- Please enable sniper runtime flag for the "beta" and "releasecandidates" branches of DDraceNetwork (412220) HOT 7
- Request: Activate sniper runtime flag for appid 2840300 HOT 2
- Games not launching / low fps caused by _v2-entry-point missing execute permissions HOT 8
- libxcb-xinput library is missing in the runtime HOT 9
- Namespaces error when starting Steam with Feral GameMode LD_PRELOAD module HOT 17
- Enable 'sniper' runtime for all branches for ZEPHON and its demo, on native linux and Steam Deck, appid 1481170 and 2448330 HOT 2
- Dota 2 does not launch due to Segmentation fault in libtier0.so - called from libMangoHud.so HOT 3
- pressure-vessel-wrap error: Could not create copy renameat: input/output error HOT 2
- Flatpak: pressure-vessel: Vulkan Layers broken since ~2024-03-25 HOT 12
- Sniper runtime pressure-vessel-wrap python3.9 file error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steam-runtime.