Full_Name: Andrew J. Duba Version: 2.4.0 OS: OS X Submission from: (NULL) (128.252.95.46) I am trying to compile the newest version of R. I am using g77 version 3.4.3 and gcc 4.0. After running gnu make (version 3.8) I get the following error: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so': dlopen(/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so, 6): Symbol not found: _z_abs Referenced from: /Users/aduba/sources/R-2.4.0/lib/libRblas.dylib Expected in: flat namespace Execution halted
I think this is not a bug, ..>>>>> "andrew" == andrew duba <andrew_duba at wustl.edu> >>>>> on Wed, 4 Oct 2006 22:32:30 +0200 (CEST) writes:andrew> Full_Name: Andrew J. Duba andrew> Version: 2.4.0 andrew> OS: OS X andrew> Submission from: (NULL) (128.252.95.46) andrew> I am trying to compile the newest version of R. I andrew> am using g77 version 3.4.3 and gcc 4.0. After andrew> running gnu make (version 3.8) I get the following andrew> error: andrew> Error in dyn.load(x, as.logical(local), as.logical(now)) : andrew> unable to load shared library andrew> '/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so': andrew> dlopen(/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so, 6): Symbol andrew> not found: _z_abs andrew> Referenced from: /Users/aduba/sources/R-2.4.0/lib/libRblas.dylib andrew> Expected in: flat namespace andrew> Execution halted To me, that's a known symptom of either using the wrong options to configure or typically rather trying to build R-2.4.0 ``not from scratch'' but inside a place you had built an older version of R. Did you read (a bit in) the "R Administration and Installation" manual? In any case, for a bug report, this did not give enough information (e.g., what version of Unix are you using ?). Please, rather send a *question* to R-devel (in this case) or R-help, rather than producing a bug report, unless you *really* know that something *is* a bug. Regards, Martin Maechler, ETH Zurich
On Oct 4, 2006, at 4:32 PM, andrew_duba at wustl.edu wrote:> Full_Name: Andrew J. Duba > Version: 2.4.0 > OS: OS X > Submission from: (NULL) (128.252.95.46) > > > I am trying to compile the newest version of R. I am using g77 > version 3.4.3 > and gcc 4.0.This is not a bug - please see the FAQ for Mac OS X - you cannot mix compiler versions. Use either gcc3+g77 or gcc4+gfortran. Cheers, Simon> After running gnu make (version 3.8) I get the following error: > > Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library > '/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so': > dlopen(/Users/aduba/sources/R-2.4.0/library/tools/libs/tools.so, > 6): Symbol > not found: _z_abs > Referenced from: /Users/aduba/sources/R-2.4.0/lib/libRblas.dylib > Expected in: flat namespace > Execution halted > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
Hi, I have encountered the same problem as the original poster, Andrew, even when matching C and fortran compiler versions. I have tried both gcc-3.3 with g77 (version 3.4.3) via ./configure CC=gcc-3.3 and gcc 4.0.0 with gfortran (version 4.0.2) via ./configure FC=gfortran but both resulted in the same error Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/R-2.4.0/library/tools/libs/tools.so': dlopen(/R-2.4.0/library/tools/libs/tools.so, 6): Symbol not found: _z_abs Referenced from: /R-2.4.0/lib/libRblas.dylib Expected in: flat namespace Execution halted I don't want to claim this is a bug, but to point out that matching (major) versions of compilers does not cure the problem. Best wishes, Max -- ___________________________________________________________ Max Reuter Departement of Biology University College London The Galton Laboratory 4 Stephenson Way London NW1 2HE, UK Phone: +44-20-76795095 Fax: +44-20-76795052