Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #554
| Newsgroups | comp.os.linux.development.apps |
|---|---|
| Date | 2013-01-25 09:04 -0800 |
| References | <2ac0205c-5078-475a-875a-5775a85e4071@l17g2000yqe.googlegroups.com> <k5e2h6l0atg3rg08l004i0jmutvm23d1cj@4ax.com> <a4343c33-6e2d-4826-ae82-155b4ba4a877@j25g2000yqa.googlegroups.com> <d3dc28a0-1fdc-4e99-a422-d9e67a9e865d@googlegroups.com> |
| Message-ID | <ea0f378d-b677-4950-9365-5f6dc412903d@googlegroups.com> (permalink) |
| Subject | Re: Building Cilk on a recent Linux distribution |
| From | madhur13490@gmail.com |
On Friday, 2 November 2012 02:59:44 UTC+5:30, Ben wrote: > On Tuesday, January 4, 2011 8:31:38 AM UTC+1, Stéphane Zuckerman wrote: > > > On Dec 21 2010, 6:33 pm, Philipp Thomas <ktho...@linux01.gwdg.de> > > > wrote: > > > > On Fri, 17 Dec 2010 14:29:34 -0800 (PST), Stéphane Zuckerman > > > > > > > > <jenesuispasg...@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 > > > > comiler doesn't understand valid C. > > > > > > I should have been more explicit here. I used gcc to compile > > > everything (tried many different versions, even tried icc -- just in > > > case, at that point I was desperate). As I said in my answer to Rainer > > > Weikusat, it seems that going from glibc <= 2.11 to glibc v2.12 made > > > it necessary to explicitly define XOPEN_SOURCE and/or POSIX_C_SOURCE > > > to the right values, while before it was implicitly handled. So my > > > compiler did understand C ;-), as I could build Cilk on many other > > > platforms without breaking a sweat. Simply some default behavior has > > > changed with the new version of glibc -- or so it seems. > > > > 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: > > > > /usr/include/bits/waitstatus.h:76: syntax error > > > > Compilation Failed: 1 error, 0 warnings > > Error: failed running cilk2c > > > > 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 I also faced same issue. How did you solve above error.
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Building Cilk on a recent Linux distribution Ben <banescusebi@gmail.com> - 2012-11-01 14:29 -0700
Re: Building Cilk on a recent Linux distribution madhur13490@gmail.com - 2013-01-25 09:04 -0800
Re: Building Cilk on a recent Linux distribution thom1576@umn.edu - 2014-05-16 11:16 -0700
csiph-web