Hello ... I went to build R-devel today (Redhat Linux 7.2, kernel 2.4.9-31, gcc 2.96) and am getting this error: gcc -I../../src/extra/zlib -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -g -O2 -c pcre.c -o pcre.o pcre.c: In function `do_pgrep': pcre.c:71: parse error before `char' pcre.c:72: `s' undeclared (first use in this function) pcre.c:72: (Each undeclared identifier is reported only once pcre.c:72: for each function it appears in.) make[3]: *** [pcre.o] Error 1 make[3]: Leaving directory `/home/jgentry/R-1.8.0/src/main' make[2]: *** [R] Error 2 make[2]: Leaving directory `/home/jgentry/R-1.8.0/src/main' make[1]: *** [R] Error 1 make[1]: Leaving directory `/home/jgentry/R-1.8.0/src' make: *** [R] Error 1 On my initial attempt I did a 'make clean' before configuring & building. On my second attempt I re-rsynced the entire r-devel distribution to a new directory and am still getting this error. Is this a problem w/ r-devel or a problem on my end? Thanks -J
Problem building R-devel
3 messages · Jeff Gentry, Martin Maechler, Thomas Lumley
"JeffG" == Jeff Gentry <jgentry@jimmy.harvard.edu>
on Fri, 23 May 2003 12:02:07 -0400 (EDT) writes:
JeffG> Hello ... I went to build R-devel today (Redhat
JeffG> Linux 7.2, kernel 2.4.9-31, gcc 2.96) and am getting
JeffG> this error:
JeffG> gcc -I../../src/extra/zlib -I. -I../../src/include
JeffG> -I../../src/include -I/usr/local/include
JeffG> -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -g -O2
JeffG> -c pcre.c -o pcre.o pcre.c: In function `do_pgrep':
JeffG> pcre.c:71: parse error before `char' pcre.c:72: `s'
JeffG> undeclared (first use in this function) pcre.c:72:
JeffG> (Each undeclared identifier is reported only once
JeffG> pcre.c:72: for each function it appears in.)
JeffG> make[3]: *** [pcre.o] Error 1 make[3]: Leaving
JeffG> directory `/home/jgentry/R-1.8.0/src/main' make[2]:
JeffG> *** [R] Error 2 make[2]: Leaving directory
JeffG> `/home/jgentry/R-1.8.0/src/main' make[1]: *** [R]
JeffG> Error 1 make[1]: Leaving directory
JeffG> `/home/jgentry/R-1.8.0/src' make: *** [R] Error 1
JeffG> On my initial attempt I did a 'make clean' before
JeffG> configuring & building. On my second attempt I
JeffG> re-rsynced the entire r-devel distribution to a new
JeffG> directory and am still getting this error.
JeffG> Is this a problem w/ r-devel or a problem on my end?
on your end.
using old redhat with the "bad" compiler gcc 2.96 ...
{this is used to be an almost-FAQ about a year ago, when people
still had such olde versions of Redhat / gcc ... ;-) }
On Fri, 23 May 2003, Martin Maechler wrote:
"JeffG" == Jeff Gentry <jgentry@jimmy.harvard.edu>
on Fri, 23 May 2003 12:02:07 -0400 (EDT) writes:
JeffG> Hello ... I went to build R-devel today (Redhat
JeffG> Linux 7.2, kernel 2.4.9-31, gcc 2.96) and am getting
JeffG> this error:
JeffG> gcc -I../../src/extra/zlib -I. -I../../src/include
JeffG> -I../../src/include -I/usr/local/include
JeffG> -DHAVE_CONFIG_H -D__NO_MATH_INLINES -mieee-fp -g -O2
JeffG> -c pcre.c -o pcre.o pcre.c: In function `do_pgrep':
JeffG> pcre.c:71: parse error before `char' pcre.c:72: `s'
JeffG> undeclared (first use in this function) pcre.c:72:
<snip>
JeffG> Is this a problem w/ r-devel or a problem on my end? on your end. using old redhat with the "bad" compiler gcc 2.96 ...
Not entirely. It's my fault. While it compiles and passes check-devel on my system, the code I inserted is technically incorrect C (it has a variable declaration after executable code in a block). In this case the bad compiler is right. -thomas