Please do read the posting guide:
1) It says this is not the list for problems about compiled code.
2) It asks you to try the current patched version before posting.
(That works for me.)
If that is not the solution, the problem is in the lines before the
one you showed us, e.g. I get
checking whether cc -xc99 accepts -Wno-long-long... no
(which incidentally points out that you omitted -xc99 from the
recommendations). So you will have to be more careful in showing the
relevant output if you follow up on R-devel.
On Mon, 23 Feb 2009, ???? wrote:
>
> Dear R user,
>
>
>
> I try to build R-2.8.1 on SunOS 5.9, and use following command:
>
> CC="cc -xarch=v9"
> CFLAGS="-xO5 -xlibmil -dalign"
> F77="f95 -xarch=v9"
> FFLAGS="-xO5 -xlibmil -dalign"
> CXX="CC -xarch=v9"
> CXXFLAGS="-xO5 -xlibmil -dalign"
> FC="f95 -xarch=v9"
> FCFLAGS="-xO5 -xlibmil -dalign"
>
> LIBnn="lib"
>
>
>
> ./configure --prefix=/where/R/installed--enable-R-shlib --with-x
--with-readline=no
>
>
>
> it throws below error message
>
>
>
>
> cc -xarch=v9 -I/R/src/R-2.8.1/include -I/myiconv/include
-I/mypng/SunOS/include -I/myjpeg/SunOS/include -I/myzlib/SunOS/include
-Wno-long-long -KPIC -xO5 -xlibmil -dalign -c R_systat.c -o R_systat.o
> cc: illegal option -Wno-long-long
> *** Error code 1
> make: Fatal error: Command failed for target `R_systat.o'
> Current working directory /tmp/R.INSTALL.293-0223020058/foreign/src
> chmod: WARNING: can't access /R/src/R-2.8.1/library/foreign/libs/*
> ERROR: compilation failed for package 'foreign'
> ** Removing '/R/src/R-2.8.1/library/foreign'
> *** Error code 1
> make: Fatal error: Command failed for target `foreign.ts'
> Current working directory /R/src/R-2.8.1/src/library/Recommended
> *** Error code 1
> make: Fatal error: Command failed for target `recommended-packages'
> Current working directory /R/src/R-2.8.1/src/library/Recommended
> *** Error code 1
> make: Fatal error: Command failed for target `stamp-recommended'
>
>
>
> I want to know who can help me to solve this problem.
>
>
>
> Thanks,
>
> Jin
>
> _________________________________________________________________
> [[elided Hotmail spam]]
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595