stsds / MPCR

Multi-Precision R-package providing an interface for R developers to use multiple precisions for floating point number representation and arithmetic.
GNU General Public License v3.0
2 stars 0 forks source link

Build fails to configure (it also makes completely arbitrary choices) #18

Open barracuda156 opened 1 month ago

barracuda156 commented 1 month ago
--->  Building R-MPCR
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/MPCR" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build --install-tests 
* installing *source* package ‘MPCR’ ...
** package ‘MPCR’ successfully unpacked and MD5 sums checked
** using staged installation
Darwin
------------------------------------------------------------
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/MPCR/
-----------------------------------------------------------------------
SED=/usr/bin/sed
BIBINPUTS=.:/opt/local/Library/Frameworks/R.framework/Resources/share/texmf/bibtex/bib:
R_TEXI2DVICMD=/opt/local/bin/texi2dvi
LN_S=ln -s
LDFLAGS=-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc
DEVELOPER_DIR=/Developer
R_INCLUDE_DIR=/opt/local/Library/Frameworks/R.framework/Resources/include
R_PDFVIEWER=/usr/bin/open
R_STRIP_SHARED_LIB=strip -x
R_DEFAULT_PACKAGES=
DYLD_FALLBACK_LIBRARY_PATH=/opt/local/Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/openjdk8/Contents/Home/jre/lib/server:/opt/local/Library/Frameworks/R.framework/Resources/lib:/Library/Java/JavaVirtualMachines/openjdk8/Contents/Home/jre/lib/server
BSTINPUTS=.:/opt/local/Library/Frameworks/R.framework/Resources/share/texmf/bibtex/bst:
R_PRINTCMD=lpr
R_VERSION=4.4.1
TMPDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/.tmp
CPPFLAGS=-isystem/opt/local/include/LegacySupport -I/opt/local/include
LIBRARY_PATH=/opt/local/lib
R_RD4PDF=times,inconsolata,hyper
R_PAPERSIZE=a4
SOURCE_DATE_EPOCH=1724383880
_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_=false
NO_PROXY=*.local,169.254/16
USER=root
CCACHE_DIR=/opt/local/var/macports/build/.ccache
COMMAND_MODE=legacy
R_PACKAGE_NAME=MPCR
R_PACKAGE_DIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build/00LOCK-MPCR/00new/MPCR
TAR=/opt/local/bin/gtar
CPATH=/opt/local/include
R_ZIPCMD=/opt/local/bin/zip
__CF_USER_TEXT_ENCODING=0x0:0:0
CXXFLAGS=-pipe -Os -arch ppc
COLUMNS=80
PAGER=/opt/local/bin/less
R_GZIPCMD=/opt/local/bin/gzip
PATH=/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
FCFLAGS=-pipe -Os -m32
LC_COLLATE=C
CC_PRINT_OPTIONS=YES
PWD=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/MPCR
R_LIBS=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build/00LOCK-MPCR/00new:/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build
R_SHARE_DIR=/opt/local/Library/Frameworks/R.framework/Resources/share
EDITOR=vi
LANG=en_US.UTF-8
R_LIBS_SITE=/opt/local/Library/Frameworks/R.framework/Resources/site-library
CC_PRINT_OPTIONS_FILE=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/.CC_PRINT_OPTIONS
R_LIBRARY_DIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build
R_OSTYPE=unix
LINES=24
R_CMD=/opt/local/Library/Frameworks/R.framework/Resources/bin/Rcmd
R_BROWSER=/usr/bin/open
CXX=/opt/local/bin/g++-mp-13 -std=gnu++17
TEXINPUTS=.:/opt/local/Library/Frameworks/R.framework/Resources/share/texmf/tex/latex:
R_ARCH=
HOME=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/.home
SHLVL=4
MAKE=make
R_PAPERSIZE_USER=a4
CFLAGS=-pipe -Os -arch ppc
DYLD_LIBRARY_PATH=/opt/local/lib/libgcc:/opt/local/lib/libgcc
FC=/opt/local/bin/gfortran-mp-13
R_STRIP_STATIC_LIB=strip -S
MACOSX_DEPLOYMENT_TARGET=10.6
R_UNZIPCMD=/opt/local/bin/unzip
R_INSTALL_PKG=MPCR
R_BZIPCMD=/opt/local/bin/bzip2
R_HOME=/opt/local/Library/Frameworks/R.framework/Resources
DISPLAY=/tmp/launch-8p6TYc/org.macports:0
CC=/opt/local/bin/gcc-mp-13
R_PLATFORM=powerpc-apple-darwin10.0.0d2
R_DOC_DIR=/opt/local/Library/Frameworks/R.framework/Resources/doc
R_LIBS_USER=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/.home/Library/R/Power Macintosh/4.4/library
R_SESSION_TMPDIR=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/.tmp/RtmpR2T9si
_=/usr/bin/env
-----------------------------------------------------------------------
/opt/local/bin/cmake
CMake is installed in: /opt/local/bin
C Compiler used for R :  /opt/local/bin/gcc-mp-13
-- --------------- Using GCC Compiler ------------- - [Version 13.3.0]
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/local/bin/gcc-mp-13 - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/local/bin/g++-mp-13 - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- WORKING ON RELEASE MODE
Inside check directories
MPCR Install Result : FALSE
Finding OpenMP header using brew prefix ....
Finding OpenMP lib using brew prefix ....
OpenMP Lib Path : omp_lib-NOTFOUND
OpenMP Headers Path : omp_h-NOTFOUND
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_CXX_FOUND) (found version "4.5")
R Include Path :  /opt/local/Library/Frameworks/R.framework/Resources/include
Rcpp Lib Path :  /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp
R Home Path :  /opt/local/Library/Frameworks/R.framework/Resources
-- Found R: /opt/local/Library/Frameworks/R.framework/Resources/include;/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include  
-- Using R technology
CMake Warning (dev) at CMakeLists.txt:75 (set):
  implicitly converting 'none' to 'STRING' type.
This warning is for project developers.  Use -Wno-dev to suppress it.

---------------------------------------- BLAS++
-- Checking for BLAS++

---------------------------------------- BLAS
-- Checking for BLAS
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
   Found BLAS: /opt/local/lib/libopenblas.dylib
-- BLAS done
-- Fetching BLAS++ v2023.06.00 from https://github.com/icl-utk-edu/blaspp
-- Using CMAKE_INSTALL_PREFIX = /usr/local

-- No CUDA support: gpu_backend = 

-- No HIP/ROCm support: gpu_backend = 

-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
-- Could NOT find OpenMP (missing: OpenMP_CXX_FOUND) (found version "4.5")
-- blaspp_id = 34a24d1

-- Looking for BLAS libraries and options (blas = auto)
$BLAS_LIBRARIES
   libs:  /opt/local/lib/libopenblas.dylib
   -DBLAS_FORTRAN_ADD_                              no (library not found)
   Found BLAS library: /opt/local/lib/libopenblas.dylib

-- Checking BLAS library version
-- Checking BLAS complex return type
CMake Error at bin/_deps/blaspp-src/cmake/BLASConfig.cmake:234 (message):
  Error - Cannot detect zdotc return value.  Please check the BLAS
  installation.
Call Stack (most recent call first):
  bin/_deps/blaspp-src/CMakeLists.txt:372 (include)

-- Configuring incomplete, errors occurred!
make: *** No rule to make target `clean'.  Stop.
make: *** No rule to make target `all'.  Stop.
cp: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/MPCR//bin/src/libmpcr.dylib: No such file or directory
Failed: libmpcr.dylib -> src
** libs
make: Nothing to be done for `all'.
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘MPCR’ in library.dynam(lib, package, package.lib):
 shared object ‘MPCR.so’ not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build/MPCR’
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/MPCR" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-MPCR/R-MPCR/work/build --install-tests 
Exit code: 1

P. S. I have blaspp installed locally, that should have been detected. Prefix is picked arbitrarily, on macOS it is not normal to install random stuff into a system prefix /usr. OpenMP is available with gcc, it does not need any specific include directories, it is a default part of the compiler itself.

david-helmy commented 1 week ago

Hello @barracuda156,

Could you kindly provide more details regarding the branch you used and the architecture of your MacBook, so we can accurately reproduce the issue?

To address your questions: