opencilk-project icon indicating copy to clipboard operation
opencilk-project copied to clipboard

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

Open wheatman opened this issue 1 year ago • 2 comments
trafficstars

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 df80b7d1b218109ee7427c0ef498848d9a63c118)

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 avatar May 27 '24 00:05 wheatman

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.

neboat avatar May 28 '24 14:05 neboat

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

wheatman avatar May 28 '24 16:05 wheatman