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

klayout graphics card issue on linux #312

Open
spnadig opened this issue Mar 14, 2023 · 4 comments
Open

klayout graphics card issue on linux #312

spnadig opened this issue Mar 14, 2023 · 4 comments

Comments

@spnadig
Copy link

spnadig commented Mar 14, 2023

"failed to load driver: swrast"

On running klayout - I get this warning
image

@proppy proppy changed the title klayout grapics card issue in linux klayout graphics card issue on linux Mar 14, 2023
@proppy
Copy link
Contributor

proppy commented Mar 14, 2023

@spnadig can you confirm which version of linux you're running with uname -a.

This seems related to:
ContinuumIO/anaconda-issues#12889
conda-forge/ctng-compilers-feedstock#95

@spnadig
Copy link
Author

spnadig commented Mar 14, 2023

Linux  5.19.11-1rodete1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1rodete1 (2022-10-31) x86_64 GNU/Linux

@proppy
Copy link
Contributor

proppy commented Mar 14, 2023

This seems to be a version missmatch with the libc version used in the environment and the one the driver are linked against:

$ LIBGL_DEBUG=verbose klayout
...
libGL: MESA-LOADER: failed to open /usr/lib/x86_64-linux-gnu/dri/iris_dri.so: /home/proppy/silicon-gf180mcuC-env/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libLLVM-15.so.1)
...

And if forcing:

$ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 klayout

no errors.

@proppy
Copy link
Contributor

proppy commented Mar 14, 2023

Updating https://anaconda.org/conda-forge/libstdcxx-ng locally seems to solve the issue by upgrading to libstdc++.so.6 to a newer version (12.2.0).

The main channel https://anaconda.org/main/libstdcxx-ng is still on an older version (11.2.0).

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

2 participants