Hi I am having problems compiling R on a Solaris 10 opteron box we have on trial. checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- solaris2.10/3.3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s -lfrtbegin: - lg2c: checking how to get verbose linking output from gcc... -v checking for C libraries of gcc... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- solaris2.10/3.3.2/../../.. -lgcc_eh checking for dummy main to link with Fortran libraries... unknown configure: error: linking to Fortran libraries from C fails See `config.log' for more details. I have installed gcc from sunfreeware Looks like the following are not found:- configure:26575: gcc -o conftest -g -O2 -I/usr/local/include - L/usr/local/lib conftest.c - ldl -lm -lg2c -lm -lgcc_s -lfrtbegin: -lg2c: >&5 ld: fatal: library -lg2c: not found ld: fatal: library -lfrtbegin:: not found ld: fatal: library -lg2c:: not found ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status configure:26581: $? = 1 configure: failed program was: | /* confdefs.h. */ Any idea where to get them from ? Cheers Vin -- Vin.Everett at cimr.cam.ac.uk JDRF/WT Diabetes and Inflammation Laboratory (DIL) Cambridge Institute for Medical Research (CIMR) Wellcome Trust/MRC Building Addenbrooke's Hospital Hills Road Cambridge CB2 2XY +44 1223 763212 +44 7990 966266
This might solve your problem without helping. Having spent I bit of time trying to build R with the pkgadd version of GCC from Sunfreeware and not getting anywhere I downloaded the source for GCC 3.4.2 and built this, then used this to build R. Everything worked fine. HTH Phineas -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Vin Everett Sent: Thursday, May 12, 2005 12:41 PM To: r-help at stat.math.ethz.ch Cc: Vin.Everett at cimr.cam.ac.uk Subject: [R] Solaris 10 on amd and R-2.1.0 Hi I am having problems compiling R on a Solaris 10 opteron box we have on trial. checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- solaris2.10/3.3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s -lfrtbegin: - lg2c: checking how to get verbose linking output from gcc... -v checking for C libraries of gcc... -L/usr/ccs/lib -L/usr/lib - L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- solaris2.10/3.3.2/../../.. -lgcc_eh checking for dummy main to link with Fortran libraries... unknown configure: error: linking to Fortran libraries from C fails See `config.log' for more details. I have installed gcc from sunfreeware Looks like the following are not found:- configure:26575: gcc -o conftest -g -O2 -I/usr/local/include - L/usr/local/lib conftest.c - ldl -lm -lg2c -lm -lgcc_s -lfrtbegin: -lg2c: >&5 ld: fatal: library -lg2c: not found ld: fatal: library -lfrtbegin:: not found ld: fatal: library -lg2c:: not found ld: fatal: File processing errors. No output written to conftest collect2: ld returned 1 exit status configure:26581: $? = 1 configure: failed program was: | /* confdefs.h. */ Any idea where to get them from ? Cheers Vin -- Vin.Everett at cimr.cam.ac.uk JDRF/WT Diabetes and Inflammation Laboratory (DIL) Cambridge Institute for Medical Research (CIMR) Wellcome Trust/MRC Building Addenbrooke's Hospital Hills Road Cambridge CB2 2XY +44 1223 763212 +44 7990 966266 ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Thu, 12 May 2005, Vin Everett wrote:> I am having problems compiling R on a Solaris 10 opteron box we have on > trial. > > checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib - > L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - > L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- > solaris2.10/3.3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s -lfrtbegin: - > lg2c: > checking how to get verbose linking output from gcc... -v > checking for C libraries of gcc... -L/usr/ccs/lib -L/usr/lib - > L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 - > L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc- > solaris2.10/3.3.2/../../.. -lgcc_eh > checking for dummy main to link with Fortran libraries... unknown > configure: error: linking to Fortran libraries from C fails > See `config.log' for more details. > > I have installed gcc from sunfreewareDid you also install the GNU binutils from there?> Looks like the following are not found:- > > configure:26575: gcc -o conftest -g -O2 -I/usr/local/include - > L/usr/local/lib conftest.c - > ldl -lm -lg2c -lm -lgcc_s -lfrtbegin: -lg2c: >&5 > ld: fatal: library -lg2c: not found > ld: fatal: library -lfrtbegin:: not found > ld: fatal: library -lg2c:: not found > ld: fatal: File processing errors. No output written to conftest > collect2: ld returned 1 exit status > configure:26581: $? = 1 > configure: failed program was: > | /* confdefs.h. */ > > > Any idea where to get them from ?I've tried to reassemble the line, and I get checking for Fortran libraries of g77... -L/usr/ccs/lib -L/usr/lib -L/usr/local/lib -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2 -L/usr/ccs/bin -L/usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/../../.. -lfrtbegin -lg2c -lm -lgcc_s -lfrtbegin: -lg2c: Now, the problem is those trailing colons: I have no idea what they mean and nor it seems does gcc. (I don't see where -lg2c:: comes from.) It should be possible to work around this, by setting FLIBS=-lg2c -lm -lgcc_s e.g. in config.site and re-configuring. That is a somewhat old version of gcc: I suggest you use it to compile 3.4.3 from the sources and see if that works better. -- 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