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

Error with clang18 in igraph #613

Closed
krlmlr opened this issue Jun 2, 2024 · 2 comments
Closed

Error with clang18 in igraph #613

krlmlr opened this issue Jun 2, 2024 · 2 comments

Comments

@krlmlr
Copy link

krlmlr commented Jun 2, 2024

flang-new: error: unknown argument '-fvisibility=hidden'; did you mean '-Xclang -fvisibility=hidden'?

https://github.com/igraph/rigraph/actions/runs/9341386885/job/25708087211#step:6:75

Haven't looked closer.

@gaborcsardi
Copy link
Collaborator

If I follow that suggestion I get

flang-new-18 -Xclang -fvisibility=hidden -fpic  -O2 -pedantic -c vendor/arpack/dgetv0.f -o vendor/arpack/dgetv0.o
flang-new: error: unknown argument '-Xclang'; did you mean '-Xflang'?
flang-new: error: unknown argument '-fvisibility=hidden'; did you mean '-Xclang -fvisibility=hidden'?

The problem is that R was build with a Fortran compiler that supports -fvisibility=hidden, but then we use flang-new-18 to install packages, which does not. AFAICT there is no way to use -fvisibility=hidden with flang-new-18 now, so I'll remove that flag via our local Makevars.

@gaborcsardi
Copy link
Collaborator

Should be good tomorrow (Wednesday).

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