Building Cilk on a recent Linux distribution | Stéphane Zuckerman | 12/17/10 2:29 PM | Hi, I have been trying to build Cilk v5.4.6 (available here: Here are the details: The Cilk tools do get built, but when trying to build examples, the Making all in examples Compilation Failed: 1 error, 0 warnings Compilation Failed: 1 error, 0 warnings Compilation Failed: 1 error, 0 warnings
I have tried to build Cilk with gcc v4.3, v4.4, and v4.5, as well as However, I did manage to build Cilk on: I can only guess that something has changed in the last 6-8 months in I am quite stuck here. Do you have any guess about what is messing up Thanks |
Re: Building Cilk on a recent Linux distribution | Philipp Thomas | 12/21/10 3:33 PM | On Fri, 17 Dec 2010 14:29:34 -0800 (PST), Stéphane Zuckerman <jenesui...@gmail.com> wrote: >/usr/include/bits/waitstatus.h:76: syntax error And, what does that file look like at the stated line? Seems that the >I am quite stuck here. Do you have any guess about what is messing up A compiler that doesn't understand valid C? If you run 'rpm -qf' on Philipp |
Re: Building Cilk on a recent Linux distribution | Rainer Weikusat | 12/22/10 3:39 AM | Stéphane Zuckerman <jenesui...@gmail.com> writes: [...] Building works on 64-bit Debian 5.0. An error like the one above [*] This can be done easily with ed in the following way (example [rw@sapphire]/tmp $ed waitstatus.h The first and fourth lines are output from the editor (the respective |
Re: Building Cilk on a recent Linux distribution | Stéphane Zuckerman | 1/3/11 11:26 PM | On Dec 22 2010, 6:39 am, Rainer Weikusat <rweiku...@mssgmbh.com> wrote: Thanks a lot for the answer. I have finally understood what was going In particular, I have successfully built Cilk on any system which is Again, many thanks for your answer ! Stéphane |
Re: Building Cilk on a recent Linux distribution | Stéphane Zuckerman | 1/3/11 11:31 PM | On Dec 21 2010, 6:33 pm, Philipp Thomas <ktho...@linux01.gwdg.de> wrote:
> <jenesuispasg...@gmail.com> wrote: I should have been more explicit here. I used gcc to compile |
Re: Building Cilk on a recent Linux distribution | Ben | 11/1/12 2:29 PM | Hi Stephane,
Thanks for the explanation. Building Cilk works on my Ubuntu 12.04LTS (32-bit) machine if I indicate XOPEN_SOURCE and/or POSIX_C_SOURCE when running configure, that is ./configure CFLAGS="-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L" After building cilk, I can run "make check" without any errors and also "make install". However, when I then try to compile a .cilk file using: cilkc fib.cilk -o fib I get the same error as before: I know this may be a noobish question, but I was wondering if you could help me with this issue? Many thanks and kind regards, Ben |
Re: Building Cilk on a recent Linux distribution | madhu...@gmail.com | 1/25/13 9:04 AM | I also faced same issue. How did you solve above error.
|
Re: Building Cilk on a recent Linux distribution | thom...@umn.edu | 5/16/14 11:16 AM | In case anyone runs across this thread again, cilkc supports the -D flag to send arguments to the preprocessor. See: http://supertech.csail.mit.edu/cilk/manual-5.4.6.pdf
So you can compile fib.cilk with: cilkc -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L fib.cilk -o fib or create a wrapper script to do it for you: $ cat cilk #!/bin/sh /usr/local/bin/cilkc -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200809L "$@" $ cilk fib.cilk -o fib Thanks, Landon |