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

-fcilkplus exists and doesn't point people in the correct direction #243

Open
wheatman opened this issue May 27, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@wheatman
Copy link
Contributor

Describe the bug

when compiling with -fcilkplus it errors with /usr/bin/ld: cannot find -lcilkrts: No such file or directory

Expected behavior

For it to error with a message to use -fopencilk

OpenCilk version

clang version 16.0.6 (https://github.com/OpenCilk/opencilk-project df80b7d)

Similarly, are any of the other flags no longer used

./clang -cc1 --help | grep cilk
  -fcilkplus              Enable Cilk Plus extensions
  -fcilktool=<check>      Turn on the designated Cilk tool
  -fopencilk-enable-pedigrees
  -fopencilk              Enable OpenCilk extensions
  --opencilk-abi-bitcode=<value>
  -shared-libcilktool     Dynamically link the cilktool runtime
  -static-libcilktool     Statically link the cilktool runtime
@wheatman wheatman added the bug Something isn't working label May 27, 2024
@neboat
Copy link
Collaborator

neboat commented May 28, 2024

The OpenCilk compiler still supports compiling Cilk programs to use the Intel Cilk Plus runtime system. The -fcilkplus flag enables that support. The linker error you see means that you don't have Intel Cilk Plus runtime system installed.

Intel Cilk Plus is a different system from OpenCilk. Although Intel Cilk Plus is deprecated, it's still useful, from time to time, to be able to compile Cilk programs to Intel Cilk Plus. A deprecation warning might be appropriate, but I don't think it's appropriate to issue a full error.

@wheatman
Copy link
Contributor Author

I did not realize cilkplus still worked.
I think a deprecation warning would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants