Error when running configure on xeon with r-1-9-patched
Prof Brian Ripley wrote:
Is libg2c.so in your library path? That's one common problem.
Many thanks for your reply Prof. Ripley. How can I check what my library path is? cat /etc/ld.so.conf gives include ld.so.conf.d/*.conf /usr/X11R6/lib /usr/lib/qt-3.3/lib /usr/local/lib and I don't have LD_LIBRARY_PATH set. libg2c.so is in /usr/lib/gcc-lib/i386-redhat-linux/3.3.3 and libg2c.so.0 and libg2c.so.0.0.0 both link from /usr/lib to libg2c.so in /usr/lib/gcc-lib/i386-redhat-linux/3.3.3. This is the same setup as the other Fedora boxes I have compiled R on.
On Mon, 6 Sep 2004, Gavin Simpson wrote:
Dear list, I'm having a problem configuring R-1-9-patched on a Intel Xeon machine running Fedora Core 2. I used svn to checkout the source, altered config.site to add some optimisation flags to match the Fedora rpm on CRAN (the flags work fine on two other P3 or P4 machines I've compiled R on).
(Configure does not know about P3 vs P4 vs Xeon.)
<snip>
The full section of the config log relating to this error is appended below.
Many thanks,
Gavin
##excerpt from config.log##
configure:25282: gcc -o conftest -D__NO_MATH_INLINES -mieee-fp -O2 -g
-pipe -march=i386 -mcpu=i686 -I/usr/local/include -L/usr/local/lib
conftest.c -lreadline -ldl -lncurses -lm -L/usr/local/lib
-L/usr/lib/gcc-lib/i386-redhat-linux/3.3.3
-L/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../.. -lfrtbegin -lg2c -lm
-lgcc_s -lieee >&5
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libieee.a(.data+0x0):
multiple definition of `_LIB_VERSION'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../libieee.a(.data+0x0):
first defined here
collect2: ld returned 1 exit status
configure:25288: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "R"
| #define PACKAGE_TARNAME "R"
| #define PACKAGE_VERSION "1.9.1"
| #define PACKAGE_STRING "R 1.9.1"
| #define PACKAGE_BUGREPORT "r-bugs at R-project.org"
| #define PACKAGE "R"
| #define VERSION "1.9.1"
| #define R_PLATFORM "i686-pc-linux-gnu"
| #define R_CPU "i686"
| #define R_VENDOR "pc"
| #define R_OS "linux-gnu"
| #define Unix 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBM 1
| #define HAVE_LIBNCURSES 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBREADLINE 1
| #define STDC_HEADERS 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_DIRENT_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_ELF_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_FPU_CONTROL_H 1
| #define HAVE_GRP_H 1
| #define HAVE_IEEE754_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_PWD_H 1
| #define HAVE_READLINE_HISTORY_H 1
| #define HAVE_READLINE_READLINE_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_TIMES_H 1
| #define HAVE_SYS_UTSNAME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDARG_H 1
| #define HAVE_STRING_H 1
| #define HAVE_POSIX_SETJMP 1
| #define HAVE_GLIBC2 1
| #define RETSIGTYPE void
| #define SOCKLEN_T socklen_t
| #define SIZEOF_INT 4
| #define INT_32_BITS 1
| #define SIZEOF_LONG 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_LONG_DOUBLE 12
| /* end confdefs.h. */
| #define F77_DUMMY_MAIN _main
| #ifdef F77_DUMMY_MAIN
|
| # ifdef __cplusplus
| extern "C"
| # endif
| int F77_DUMMY_MAIN() { return 1; }
|
| #endif
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:25321: result: unknown
configure:25341: error: linking to Fortran libraries from C fails
See `config.log' for more details.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] gavin.simpson at ucl.ac.uk UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%