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

Runtime LLVM error #315

Open
vinayakvijay opened this issue Jan 1, 2025 · 4 comments
Open

Runtime LLVM error #315

vinayakvijay opened this issue Jan 1, 2025 · 4 comments

Comments

@vinayakvijay
Copy link

vinayakvijay commented Jan 1, 2025

I am getting the following error upon running the demo-app (on ubuntu 24.04LTS using compiler gcc-13.2.0):

: CommandLine Error: Option 'disable-auto-upgrade-debug-info' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
Aborted (core dumped)

What could be the fix of this issue?
Note - i am accessing some of the dependencies through a spack package environment

@nmwsharp
Copy link
Owner

nmwsharp commented Jan 1, 2025

Hmm, I don't know anything about this. Googling the issues seems to suspect it's related to low-level LLVM stuff and linking configurations.

Polyscope uses a pretty boring setup and links against standard packages.... any chance this is an issue with the platform rather than something Polyscope-specific?

@nmwsharp
Copy link
Owner

nmwsharp commented Jan 1, 2025

Did you observe this on the current master branch? There were a few changes merged recently to additionally link with EGL when it is available, I suppose it's possible one of the EGL dependencies is a source of new problems.

Maybe could try setting cmake -DPOLYSCOPE_BACKEND_OPENGL3_EGL=OFF .. at CMake configuration-time to see if the error goes away? (Don't forget to delete the CMakeCache.txt when you rebuild.) Or you could build from the old tagged v2.3.0 version.

@vinayakvijay
Copy link
Author

Indeed it looks like the issue is caused when working with the spack environment. It works fine with the standard installation of packages.

Maybe could try setting cmake -DPOLYSCOPE_BACKEND_OPENGL3_EGL=OFF .. at CMake configuration-time to see if the error goes away? (Don't forget to delete the CMakeCache.txt when you rebuild.) Or you could build from the old tagged v2.3.0 version.

Tried this but doesn't work still.

@nmwsharp
Copy link
Owner

nmwsharp commented Jan 2, 2025

Thanks for following up!

Tried this but doesn't work still.

Ok, seems to be a general problem, unrelated to those recent EGL changes. Has probably been this way for a while.

issue is caused when working with the spack environment

Hmmm, that's annoying. Unfortunately I don't have a way to help with this, and it's hard to say for sure if it's a problem with Polyscope's build setup or just a general issue with spack packages.

If anyone can suggest a change to Polyscope's build options that would resolve this I'm willing to merge it, but otherwise I don't think I can help here.

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