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

build fails without -fPIC #80

Open
nsajko opened this issue Jun 7, 2024 · 3 comments
Open

build fails without -fPIC #80

nsajko opened this issue Jun 7, 2024 · 3 comments

Comments

@nsajko
Copy link
Contributor

nsajko commented Jun 7, 2024

I just did a fresh checkout from Github, and the build fails unless I put -fPIC in CFLAGS/CXXFLAGS. This is on Archlinux with GCC v14.1.1, Binutils v2.42.

Ideally the Graphia build system would take care of -fPIC. Alternatively, it'd be nice if this was at least documented.

@timangus
Copy link
Contributor

-fPIC is present for me (where appropriate). What version of CMake are you using? That's what's mostly responsible for selecting compiler arguments.

@nsajko
Copy link
Contributor Author

nsajko commented Jun 10, 2024

Cmake is at 3.29.5

@timangus
Copy link
Contributor

OK, that's fine. Qt is ultimately responsible for building the compiler flags that it needs, including -fPIC; which version of Qt are you using? I recommend 6.7.0 at the moment. If that doesn't resolve it paste your actual failure with verbose output turned on and we'll go from there.

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