Problems making cilk++ examples

Problems making cilk++ examples

Hello,

I recently downloaded Cilk++ for Linux.
I am using Ubuntu 11.10.
I extracted the folder to /usr/local and added /usr/local/cilk/bin to my Path.

When trying to run 'make' in any of the examples I get a lot of errors.

For example, when trying to run make in the qsort folder I get these errors:

root@ubuntu:/usr/local/cilk/examples/qsort# make

cilk++ qsort.cilk -O1 -g -lcilkutil -o qsort

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/os_defines.h:44,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++config.h:41,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/cstddef:50,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/new:44,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/cilk++/cilk.h:45,

                 from qsort.cilk:25:

/usr/include/features.h:323:26: error: bits/predefs.h: No such file or directory

/usr/include/features.h:356:25: error: sys/cdefs.h: No such file or directory

/usr/include/features.h:388:23: error: gnu/stubs.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/include/limits.h:122,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/include/syslimits.h:7,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/include/limits.h:11,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/climits:50,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:67,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/limits.h:145:30: error: bits/posix1_lim.h: No such file or directory

/usr/include/limits.h:149:30: error: bits/posix2_lim.h: No such file or directory

/usr/include/limits.h:153:29: error: bits/xopen_lim.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/cstdlib:72,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:68,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/stdlib.h:42:29: error: bits/waitflags.h: No such file or directory

/usr/include/stdlib.h:43:30: error: bits/waitstatus.h: No such file or directory

/usr/include/stdlib.h:320:49: error: sys/types.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/clocale:51,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++locale.h:47,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:45,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/locale.h:30:25: error: bits/locale.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/cstdio:53,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++locale.h:49,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:45,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/stdio.h:36:25: error: bits/types.h: No such file or directory

/usr/include/stdio.h:161:28: error: bits/stdio_lim.h: No such file or directory

/usr/include/stdio.h:846:30: error: bits/sys_errlist.h: No such file or directory

In file included from /usr/include/pthread.h:24,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr-default.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:114,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/endian.h:37:25: error: bits/endian.h: No such file or directory

/usr/include/endian.h:61:28: error: bits/byteswap.h: No such file or directory

In file included from /usr/include/pthread.h:25,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr-default.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:114,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/sched.h:43:24: error: bits/sched.h: No such file or directory

In file included from /usr/include/pthread.h:26,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr-default.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:114,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/time.h:42:24: error: bits/time.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr-default.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:114,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/pthread.h:28:31: error: bits/pthreadtypes.h: No such file or directory

/usr/include/pthread.h:29:25: error: bits/setjmp.h: No such file or directory

/usr/include/pthread.h:30:27: error: bits/wordsize.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr-default.h:44,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:114,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/unistd.h:203:28: error: bits/posix_opt.h: No such file or directory

/usr/include/unistd.h:207:32: error: bits/environments.h: No such file or directory

/usr/include/unistd.h:606:27: error: bits/confname.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/cwchar:55,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/postypes.h:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:49,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/include/wchar.h:42:25: error: bits/wchar.h: No such file or directory

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/cassert:49,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/cilk++/cilki/hyperobject.h:19,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/cilk++/cilk.h:212,

                 from qsort.cilk:25:

/usr/include/assert.h:71: error: expected constructor, destructor, or type conversion before extern

/usr/include/assert.h:79: error: expected initializer before __THROW

/usr/include/assert.h:85: error: expected initializer before __THROW

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/cilk++/cilk.h:212,

                 from qsort.cilk:25:

/usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/cilk++/cilki/hyperobject.h:30: error: expected constructor, destructor, or type conversion before extern

In file included from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/c++io.h:43,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/iosfwd:46,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/bits/stl_algobase.h:70,

                 from /usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/algorithm:65,

                 from qsort.cilk:27:

/usr/local/cilk/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.4/../../../../include/c++/4.2.4/x86_64-unknown-linux-gnu/bits/gthr.h:33: error: expected declaration before end of line

make: *** [qsort] Error 1

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hi nschudlo,

I have not been able to get Cilk++ to work on Ubuntu 11.10, either. I think GCC has diverged to the point that the package is incompatible with modern systems.

However, there is a new Cilk language, Cilk Plus (yes, a confusing choice of name, given that the oldlanguage was Cilk++), that is available either through the Intel compiler or in GCC 4.7. The old Cilk++ is no longer supported, but Cilk Plus is actively supported in both compilers.

Cilk Plus Website: http://www.cilk.org/

Cilk Plus Forum: http://software.intel.com/en-us/forums/intel-cilk-plus/

The new language has some advantages over the old one, too, that will make programming easier.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya