Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
28 Views

cilk_for and executable stacks (GCC 4.8.1 20130520)

Hi All,

I am new to the forum and have been using Intel Cilk Plus with GCC for some time now. 

I installed GCC Cilk Plus as per the instructions in https://www.cilkplus.org/build-gcc-cilkplus. 

I get a segmentation fault in a program having cilk_for when I use the linker option -Wl,-z,noexecstack. The program works fine without this linker option.

Does cilk_for require executable stacks to be enabled?

 

Thank you

-Nikhil

0 Kudos
3 Replies
Highlighted
28 Views

I don't think there exist such restrictions.

Can you try newer GCC version (5 or later) and see if it is reproducible?

0 Kudos
Highlighted
Beginner
28 Views

Hi Hansang,

Thank you for your suggestion. I compiled my program using GCC 5.5 compiler and was able to run the program without any segmentation fault (even after enabling -Wl,-z,noexecstack).

So, I think what I saw earlier is a problem with the compiler built using cilkplus-4_8-branch based on the GCC4.8 version.

-Nikhil

0 Kudos
Highlighted
Black Belt
28 Views

A new response to one of my bug reports against cilkplus hinted that bug fixes may not happen due to the debate about removing support entirely from gcc 8.  Responders pointed out that my reproducer fails in different ways under gcc and g++, although it works under icc and icpc.  It was hinted to be an issue with the inherent type of a reducer not being the same as its arguments.

I suppose if Intel has marked Cilk(tm) plus as deprecated in the current release, there is little support for continued gcc cilkplus.

When I build gcc under WSL, it continues to attempt to build cilkplus, but the result is broken.

0 Kudos