watanabe-j / qfratio

R package for moments and distributions of ratios of quadratic forms
https://CRAN.R-project.org/package=qfratio
GNU General Public License v3.0
1 stars 0 forks source link

Build fails on macOS 10.6: `Symbol not found: _gsl_poly_eval` #1

Open barracuda156 opened 2 weeks ago

barracuda156 commented 2 weeks ago
--->  Extracting qfratio-1.1.1.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/R-qfratio/qfratio-1.1.1.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Configuring R-qfratio
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/qfratio-1.1.1" && /opt/local/bin/R CMD build . --no-manual --no-build-vignettes --keep-empty-dirs 
* checking for file ‘./DESCRIPTION’ ... OK
* preparing ‘qfratio’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* installing the package to process help pages
      -----------------------------------
* installing *source* package ‘qfratio’ ...
** using staged installation
checking build system type... powerpc-apple-darwin10.0.0d2
checking host system type... powerpc-apple-darwin10.0.0d2
checking for gcc... /opt/local/bin/gcc-mp-13
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether /opt/local/bin/gcc-mp-13 accepts -g... yes
checking for /opt/local/bin/gcc-mp-13 option to enable C11 features... none needed
checking for GNU-style extern inline... no
checking for C99-style inline... yes
checking for cos in -lm... yes
checking for /opt/local/bin/gcc-mp-13 options needed to detect all undeclared functions... none needed
checking whether isfinite is declared... yes
checking whether finite is declared... yes
checking whether isnan is declared... yes
checking for extended floating point registers... no
checking for IEEE comparisons... yes
configure: creating ./config.status
config.status: creating src/config.h
** libs
using C++ compiler: ‘g++-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0’
Warning in system2("xcrun", "--show-sdk-path", TRUE, TRUE) :
  running command ''xcrun' --show-sdk-path 2>&1' had status 64
using SDK: ‘NA’‘NA’‘NA’‘NA’‘NA’‘NA’
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c dist_funs.cpp -o dist_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c dk_funs_cwise.cpp -o dk_funs_cwise.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c dk_funs.cpp -o dk_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c gsl_wrap.cpp -o gsl_wrap.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c hgs_funs.cpp -o hgs_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c ratio_funs_cwise.cpp -o ratio_funs_cwise.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c ratio_funs_long.cpp -o ratio_funs_long.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c ratio_funs.cpp -o ratio_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c RcppExports.cpp -o RcppExports.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp -fPIC  -pipe -Os -arch ppc   -c rqf_funs.cpp -o rqf_funs.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/err/error.c -o gsl/err/error.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/err/strerror.c -o gsl/err/strerror.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/err.c -o gsl/integration/err.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/initialise.c -o gsl/integration/initialise.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/positivity.c -o gsl/integration/positivity.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qags.c -o gsl/integration/qags.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qelg.c -o gsl/integration/qelg.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qk.c -o gsl/integration/qk.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qk15.c -o gsl/integration/qk15.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qpsrt.c -o gsl/integration/qpsrt.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/qpsrt2.c -o gsl/integration/qpsrt2.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/reset.c -o gsl/integration/reset.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/set_initial.c -o gsl/integration/set_initial.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/util.c -o gsl/integration/util.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/integration/workspace.c -o gsl/integration/workspace.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/roots/brent.c -o gsl/roots/brent.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/roots/convergence.c -o gsl/roots/convergence.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/roots/fsolver.c -o gsl/roots/fsolver.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_amp_phase.c -o gsl/specfunc/bessel_amp_phase.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_I0.c -o gsl/specfunc/bessel_I0.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_I1.c -o gsl/specfunc/bessel_I1.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_In.c -o gsl/specfunc/bessel_In.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_Inu.c -o gsl/specfunc/bessel_Inu.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_J1.c -o gsl/specfunc/bessel_J1.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_K0.c -o gsl/specfunc/bessel_K0.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_Knu.c -o gsl/specfunc/bessel_Knu.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel_temme.c -o gsl/specfunc/bessel_temme.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/bessel.c -o gsl/specfunc/bessel.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/beta.c -o gsl/specfunc/beta.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/cheb_eval.c -o gsl/specfunc/cheb_eval.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/elementary.c -o gsl/specfunc/elementary.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/exp.c -o gsl/specfunc/exp.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/gamma.c -o gsl/specfunc/gamma.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/hyperg_1F1.c -o gsl/specfunc/hyperg_1F1.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/hyperg_2F1.c -o gsl/specfunc/hyperg_2F1.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/hyperg_U.c -o gsl/specfunc/hyperg_U.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/hyperg.c -o gsl/specfunc/hyperg.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/laguerre.c -o gsl/specfunc/laguerre.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/log.c -o gsl/specfunc/log.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/poch.c -o gsl/specfunc/poch.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/pow_int.c -o gsl/specfunc/pow_int.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/psi.c -o gsl/specfunc/psi.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/result.c -o gsl/specfunc/result.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/trig.c -o gsl/specfunc/trig.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/specfunc/zeta.c -o gsl/specfunc/zeta.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/sys/coerce.c -o gsl/sys/coerce.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/sys/fdiv.c -o gsl/sys/fdiv.o
/opt/local/bin/gcc-mp-13 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include    -fPIC  -pipe -Os -arch ppc  -c gsl/sys/infnan.c -o gsl/sys/infnan.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/opt/local/Library/Frameworks/R.framework/Resources/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc -o qfratio.so dist_funs.o dk_funs_cwise.o dk_funs.o gsl_wrap.o hgs_funs.o ratio_funs_cwise.o ratio_funs_long.o ratio_funs.o RcppExports.o rqf_funs.o gsl/err/error.o gsl/err/strerror.o gsl/integration/err.o gsl/integration/initialise.o gsl/integration/positivity.o gsl/integration/qags.o gsl/integration/qelg.o gsl/integration/qk.o gsl/integration/qk15.o gsl/integration/qpsrt.o gsl/integration/qpsrt2.o gsl/integration/reset.o gsl/integration/set_initial.o gsl/integration/util.o gsl/integration/workspace.o gsl/roots/brent.o gsl/roots/convergence.o gsl/roots/fsolver.o gsl/specfunc/bessel_amp_phase.o gsl/specfunc/bessel_I0.o gsl/specfunc/bessel_I1.o gsl/specfunc/bessel_In.o gsl/specfunc/bessel_Inu.o gsl/specfunc/bessel_J1.o gsl/specfunc/bessel_K0.o gsl/specfunc/bessel_Knu.o gsl/specfunc/bessel_temme.o gsl/specfunc/bessel.o gsl/specfunc/beta.o gsl/specfunc/cheb_eval.o gsl/specfunc/elementary.o gsl/specfunc/exp.o gsl/specfunc/gamma.o gsl/specfunc/hyperg_1F1.o gsl/specfunc/hyperg_2F1.o gsl/specfunc/hyperg_U.o gsl/specfunc/hyperg.o gsl/specfunc/laguerre.o gsl/specfunc/log.o gsl/specfunc/poch.o gsl/specfunc/pow_int.o gsl/specfunc/psi.o gsl/specfunc/result.o gsl/specfunc/trig.o gsl/specfunc/zeta.o gsl/sys/coerce.o gsl/sys/fdiv.o gsl/sys/infnan.o -fopenmp -L/opt/local/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/opt/local/Library/Frameworks/R.framework/Resources/lib -lRblas -lMacportsLegacySupport -lgfortran -lSystemStubs -lef_ppc -F/opt/local/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/.tmp/RtmprC38If/Rinst6c033f6c2e0e/00LOCK-qfratio/00new/qfratio/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘qfratio’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/.tmp/RtmprC38If/Rinst6c033f6c2e0e/00LOCK-qfratio/00new/qfratio/libs/qfratio.so':
  dlopen(/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/.tmp/RtmprC38If/Rinst6c033f6c2e0e/00LOCK-qfratio/00new/qfratio/libs/qfratio.so, 6): Symbol not found: _gsl_poly_eval
  Referenced from: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/.tmp/RtmprC38If/Rinst6c033f6c2e0e/00LOCK-qfratio/00new/qfratio/libs/qfratio.so
  Expected in: dynamic lookup

Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/.tmp/RtmprC38If/Rinst6c033f6c2e0e/qfratio’
      -----------------------------------
ERROR: package installation failed
Command failed:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/qfratio-1.1.1" && /opt/local/bin/R CMD build . --no-manual --no-build-vignettes --keep-empty-dirs 
Exit code: 1

@watanabe-j Looks like it fails to link to libgsl?

watanabe-j commented 2 weeks ago

Thanks for the report. Could I ask a couple of things?

To explain, this package comes with its own GSL codes. It must have HAVE_INLINE defined to actually define gsl_poly_eval(). From the output, I suspect that the configure script fails to set #define HAVE_INLINE 1 on your environment, and that my codes are not robust against that situation. It helps a lot if you can share src/config.h.

barracuda156 commented 2 weeks ago

@watanabe-j Thank you for responding! This is what is written in src/config.h:

/* src/config.h.  Generated from config.h.in by configure.  */
/* src/config.h.in.  Generated from configure.ac by autoheader.  */

// To add user-defined methods in Eigen classes
#ifndef EIGEN_ARRAYBASE_PLUGIN
#define EIGEN_ARRAYBASE_PLUGIN "ArrayBaseAddons.h"
#endif

/* Define if you have inline with C99 behavior */
#define HAVE_C99_INLINE 1

/* Define to 1 if you have the declaration of `finite', and to 0 if you don't.
   */
#define HAVE_DECL_FINITE 1

/* Define to 1 if you have the declaration of `isfinite', and to 0 if you
   don't. */
#define HAVE_DECL_ISFINITE 1

/* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.
   */
#define HAVE_DECL_ISNAN 1

/* Defined on architectures with excess floating-point precision */
/* #undef HAVE_EXTENDED_PRECISION_REGISTERS */

/* Define this if IEEE comparisons work correctly (e.g. NaN != NaN) */
#define HAVE_IEEE_COMPARISONS 1

/* Define if you have inline */
#define HAVE_INLINE 1

/* Define to 1 if you have the `m' library (-lm). */
#define HAVE_LIBM 1

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "https://github.com/watanabe-j/qfratio/issues"

/* Define to the full name of this package. */
#define PACKAGE_NAME "qfratio"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "qfratio 1.0.1.9000"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "qfratio"

/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Define to the version of this package. */
#define PACKAGE_VERSION "1.0.1.9000"

/* Define a rounding function which moves extended precision values
   out of registers and rounds them to double-precision. This should
   be used *sparingly*, in places where it is necessary to keep
   double-precision rounding for critical expressions while running in
   extended precision. For example, the following code should ensure
   exact equality, even when extended precision registers are in use,

      double q = GSL_COERCE_DBL(3.0/7.0) ;
      if (q == GSL_COERCE_DBL(3.0/7.0)) { ... } ;

   It carries a penalty even when the program is running in double
   precision mode unless you compile a separate version of the
   library with HAVE_EXTENDED_PRECISION_REGISTERS turned off. */

#if HAVE_EXTENDED_PRECISION_REGISTERS
#define GSL_COERCE_DBL(x) (gsl_coerce_double(x))
#else
#define GSL_COERCE_DBL(x) (x)
#endif

#define RETURN_IF_NULL(x) if (!x) { return ; }

This is on macOS 10.6 / ppc, with gcc 14.2.0 and R 4.4.1.

barracuda156 commented 2 weeks ago

UPD. Sorry, R uses gcc 13.3.0. (The default MacPorts gcc version is 14, but R ecosystem is kept at gcc13 at the moment.)

watanabe-j commented 2 weeks ago

Thanks again.

From the output, I suspect that the configure script fails to set #define HAVE_INLINE 1 on your environment

Evidently I was wrong here - your src/config.h has #define HAVE_INLINE 1. At this moment I have no idea why this error happens. This package has not been tested on macOS + gcc, so I need some research.

If you are interested in using the package meanwhile, you are welcome to try installing it from this temporary branch. This one uses GSL functions via RcppGSL, so both GSL and RcppGSL need to be installed.

barracuda156 commented 2 weeks ago

@watanabe-j Thank you, version from 4c73940fddd25cb3b6fcf6174df939996c8a3e17 builds fine:

--->  Extracting R-qfratio
--->  Extracting qfratio-4c73940fddd25cb3b6fcf6174df939996c8a3e17.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/R-qfratio/qfratio-4c73940fddd25cb3b6fcf6174df939996c8a3e17.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Configuring R-qfratio
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/qfratio-4c73940fddd25cb3b6fcf6174df939996c8a3e17" && /opt/local/bin/R CMD build . --no-manual --no-build-vignettes --keep-empty-dirs 
* checking for file ‘./DESCRIPTION’ ... OK
* preparing ‘qfratio’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* installing the package to process help pages
* saving partial Rd database
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘qfratio_1.1.1.9000.tar.gz’

--->  Building R-qfratio
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/build
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/qfratio-4c73940fddd25cb3b6fcf6174df939996c8a3e17" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/build --install-tests 
* installing *source* package ‘qfratio’ ...
** using staged installation
** libs
using C++ compiler: ‘g++-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0’
Warning in system2("xcrun", "--show-sdk-path", TRUE, TRUE) :
  running command ''xcrun' --show-sdk-path 2>&1' had status 64
using SDK: ‘NA’‘NA’‘NA’‘NA’‘NA’‘NA’
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c dist_funs.cpp -o dist_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c dk_funs_cwise.cpp -o dk_funs_cwise.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c dk_funs.cpp -o dk_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c gsl_wrap.cpp -o gsl_wrap.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c hgs_funs.cpp -o hgs_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c ratio_funs_cwise.cpp -o ratio_funs_cwise.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c ratio_funs_long.cpp -o ratio_funs_long.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c ratio_funs.cpp -o ratio_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c RcppExports.cpp -o RcppExports.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I. -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/Rcpp/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppEigen/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppGSL/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -fopenmp `"/opt/local/Library/Frameworks/R.framework/Resources/bin/Rscript" -e "RcppGSL::CFlags()"` -fPIC  -pipe -Os -arch ppc   -c rqf_funs.cpp -o rqf_funs.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/opt/local/Library/Frameworks/R.framework/Resources/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc -o qfratio.so dist_funs.o dk_funs_cwise.o dk_funs.o gsl_wrap.o hgs_funs.o ratio_funs_cwise.o ratio_funs_long.o ratio_funs.o RcppExports.o rqf_funs.o -fopenmp -L/opt/local/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/opt/local/Library/Frameworks/R.framework/Resources/lib -lRblas -lMacportsLegacySupport -lgfortran -lSystemStubs -lef_ppc -L/opt/local/lib -lgsl -lgslcblas -F/opt/local/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-qfratio/R-qfratio/work/build/00LOCK-qfratio-4c73940fddd25cb3b6fcf6174df939996c8a3e17/00new/qfratio/libs
** R
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (qfratio)

And yeah, it links to libgsl:

36-25% otool -L /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/qfratio/libs/qfratio.so
/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/qfratio/libs/qfratio.so:
    qfratio.so (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libMacportsLegacySupport.dylib (compatibility version 1.0.0, current version 1.3.0)
    /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/lib/libRlapack.dylib (compatibility version 4.4.0, current version 4.4.1)
    /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/lib/libRblas.dylib (compatibility version 0.0.0, current version 0.0.0)
    /opt/local/lib/libgcc/libgfortran.5.dylib (compatibility version 6.0.0, current version 6.0.0)
    /opt/local/lib/libgsl.28.dylib (compatibility version 29.0.0, current version 29.0.0)
    /opt/local/lib/libgslcblas.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 511.1.0)
    /opt/local/lib/libgcc/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.33.0)
    /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/lib/libR.dylib (compatibility version 4.4.0, current version 4.4.1)
    /opt/local/lib/libgcc/libgomp.1.dylib (compatibility version 2.0.0, current version 2.0.0)
    /opt/local/lib/libgcc/libgcc_s.1.1.dylib (compatibility version 1.0.0, current version 1.1.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 117.0.0)
watanabe-j commented 2 weeks ago

Thanks for confirming. Great to know the package builds on your system.

However, it is not my intended design that this package links to an external GSL. That can be done most easily via RcppGSL as indeed done in the temporary branch, but it has caused some problems in my environment, and I'm inclined to reduce dependencies. This is why the original package bundles some codes from GSL, which are to be compiled at the installation of the present package.

So ideally the issue should be solved by a different means. I'm puzzled because I have not encountered this problem in my environments (Ubuntu and Windows) or in CRAN package check flavours. So I tend to suspect the problem is specific to the platform used here. Googling suggests that OS X had problems handling inline functions: https://public-inbox.org/bug-gnulib/50C8DFC8.30805@cs.ucla.edu/

Further googling suggests that specifying a C standard, e.g., C11, C17, may help mitigate this sort of problem around inline functions. @barracuda156, could you try any of the following with the original version of the package?

Of course there's no rushing. Thanks a lot for your kindness.