koheiw / seededlda

LDA for semisupervised topic modeling
https://koheiw.github.io/seededlda/
73 stars 15 forks source link

oneTBB is not found by configure #93

Open barracuda156 opened 2 months ago

barracuda156 commented 2 months ago

Configure script fails to find opeTBB, despite RcppParallel using it.

--->  Building R-seededlda
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/build
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/build --install-tests 
* installing *source* package ‘seededlda’ ...
** package ‘seededlda’ successfully unpacked and MD5 sums checked
** using staged installation
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/g++-mp-13 -std=gnu++17 accepts -g... yes
checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... /opt/local/bin/g++-mp-13 -std=gnu++17 -E
checking for gcc... /opt/local/bin/gcc-mp-13
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 whether the compiler supports GNU C++... (cached) yes
checking whether /opt/local/bin/g++-mp-13 -std=gnu++17 accepts -g... (cached) yes
checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features... (cached) none needed
checking Intel TBB existence:... no
configure: WARNING: Intel TBB not installed; install TBB devel package for parallel processing or update PKG_CONFIG_PATH environment variable
configure: Package CPP flags: 
configure: Package LIBS: 
configure: creating ./config.status
config.status: creating src/Makevars
** 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'/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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include  -fPIC  -pipe -Os -arch ppc   -c RcppExports.cpp -o RcppExports.o

Nothing in configure log even mentions it:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by seededlda configure 1.4.0, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  $ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = 36-25.wireless-city.scu.edu.tw
uname -m = Power Macintosh
uname -r = 10.0.0d2
uname -s = Darwin
uname -v = Darwin Kernel Version 10.0.0d2: Fri Oct 10 19:37:52 PDT 2008; root:xnu-1346.7~1/RELEASE_PPC

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 10.0.0d2: Fri Oct 10 19:37:52 PDT 2008; root:xnu-1346.7~1/RELEASE_PPC
Kernel configured for up to 4 processors.
4 processors are physically available.
4 processors are logically available.
Processor type: ppc970 (PowerPC 970)
Processors active: 0 1 2 3
Primary memory available: 16.00 gigabytes
Default processor set: 71 tasks, 337 threads, 4 processors
Load average: 2.10, Mach factor: 1.88
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/local/bin/
PATH: /opt/local/sbin/
PATH: /bin/
PATH: /sbin/
PATH: /usr/bin/
PATH: /usr/sbin/

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2550: checking for C++ compiler version
configure:2559: /opt/local/bin/g++-mp-13 -std=gnu++17 --version >&5
g++-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2570: $? = 0
configure:2559: /opt/local/bin/g++-mp-13 -std=gnu++17 -v >&5
Using built-in specs.
COLLECT_GCC=/opt/local/bin/g++-mp-13
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/powerpc-apple-darwin10/13.3.0/lto-wrapper
Target: powerpc-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_gcc13/gcc13/work/gcc-13.3.0/configure --prefix=/opt/local --build=powerpc-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc13 --includedir=/opt/local/include/gcc13 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-13 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-13 --with-gxx-include-dir=/opt/local/include/gcc13/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc13/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc13 13.3.0_0+stdlib_flag'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.0 (MacPorts gcc13 13.3.0_0+stdlib_flag) 
configure:2570: $? = 0
configure:2559: /opt/local/bin/g++-mp-13 -std=gnu++17 -V >&5
g++-mp-13: error: unrecognized command-line option '-V'
g++-mp-13: fatal error: no input files
compilation terminated.
configure:2570: $? = 1
configure:2559: /opt/local/bin/g++-mp-13 -std=gnu++17 -qversion >&5
g++-mp-13: error: unrecognized command-line option '-qversion'; did you mean '--version'?
g++-mp-13: fatal error: no input files
compilation terminated.
configure:2570: $? = 1
configure:2590: checking whether the C++ compiler works
configure:2612: /opt/local/bin/g++-mp-13 -std=gnu++17 -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc conftest.cpp  >&5
configure:2616: $? = 0
configure:2666: result: yes
configure:2669: checking for C++ compiler default output file name
configure:2671: result: a.out
configure:2677: checking for suffix of executables
configure:2684: /opt/local/bin/g++-mp-13 -std=gnu++17 -o conftest -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc conftest.cpp  >&5
configure:2688: $? = 0
configure:2711: result: 
configure:2733: checking whether we are cross compiling
configure:2741: /opt/local/bin/g++-mp-13 -std=gnu++17 -o conftest -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc conftest.cpp  >&5
configure:2745: $? = 0
configure:2752: ./conftest
configure:2756: $? = 0
configure:2771: result: no
configure:2776: checking for suffix of object files
configure:2799: /opt/local/bin/g++-mp-13 -std=gnu++17 -c -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp >&5
configure:2803: $? = 0
configure:2825: result: o
configure:2829: checking whether the compiler supports GNU C++
configure:2849: /opt/local/bin/g++-mp-13 -std=gnu++17 -c -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp >&5
configure:2849: $? = 0
configure:2859: result: yes
configure:2870: checking whether /opt/local/bin/g++-mp-13 -std=gnu++17 accepts -g
configure:2891: /opt/local/bin/g++-mp-13 -std=gnu++17 -c -g -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp >&5
configure:2891: $? = 0
configure:2935: result: yes
configure:2955: checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features
configure:2970: /opt/local/bin/g++-mp-13 -std=gnu++17  -c -pipe -Os -arch ppc -g0 -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp >&5
conftest.cpp: In function 'int main(int, char**)':
conftest.cpp:175:25: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  175 |   cxx11test::delegate d2();
      |                         ^~
conftest.cpp:175:25: note: remove parentheses to default-initialize a variable
  175 |   cxx11test::delegate d2();
      |                         ^~
      |                         --
conftest.cpp:175:25: note: or replace parentheses with braces to value-initialize a variable
configure:2970: $? = 0
configure:2988: result: none needed
configure:3058: checking how to run the C++ preprocessor
configure:3080: /opt/local/bin/g++-mp-13 -std=gnu++17 -E -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp
configure:3080: $? = 0
configure:3095: /opt/local/bin/g++-mp-13 -std=gnu++17 -E -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp
conftest.cpp:9:10: fatal error: ac_nonexistent.h: No such file or directory
    9 | #include <ac_nonexistent.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3095: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "seededlda"
| #define PACKAGE_TARNAME "seededlda"
| #define PACKAGE_VERSION "1.4.0"
| #define PACKAGE_STRING "seededlda 1.4.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3122: result: /opt/local/bin/g++-mp-13 -std=gnu++17 -E
configure:3136: /opt/local/bin/g++-mp-13 -std=gnu++17 -E -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp
configure:3136: $? = 0
configure:3151: /opt/local/bin/g++-mp-13 -std=gnu++17 -E -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.cpp
conftest.cpp:9:10: fatal error: ac_nonexistent.h: No such file or directory
    9 | #include <ac_nonexistent.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
configure:3151: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "seededlda"
| #define PACKAGE_TARNAME "seededlda"
| #define PACKAGE_VERSION "1.4.0"
| #define PACKAGE_STRING "seededlda 1.4.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3245: checking for gcc
configure:3277: result: /opt/local/bin/gcc-mp-13
configure:3630: checking for C compiler version
configure:3639: /opt/local/bin/gcc-mp-13 --version >&5
gcc-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3650: $? = 0
configure:3639: /opt/local/bin/gcc-mp-13 -v >&5
Using built-in specs.
COLLECT_GCC=/opt/local/bin/gcc-mp-13
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/powerpc-apple-darwin10/13.3.0/lto-wrapper
Target: powerpc-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_gcc13/gcc13/work/gcc-13.3.0/configure --prefix=/opt/local --build=powerpc-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc13 --includedir=/opt/local/include/gcc13 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-13 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-13 --with-gxx-include-dir=/opt/local/include/gcc13/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc13/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc13 13.3.0_0+stdlib_flag'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.0 (MacPorts gcc13 13.3.0_0+stdlib_flag) 
configure:3650: $? = 0
configure:3639: /opt/local/bin/gcc-mp-13 -V >&5
gcc-mp-13: error: unrecognized command-line option '-V'
gcc-mp-13: fatal error: no input files
compilation terminated.
configure:3650: $? = 1
configure:3639: /opt/local/bin/gcc-mp-13 -qversion >&5
gcc-mp-13: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc-mp-13: fatal error: no input files
compilation terminated.
configure:3650: $? = 1
configure:3639: /opt/local/bin/gcc-mp-13 -version >&5
gcc-mp-13: error: unrecognized command-line option '-version'
gcc-mp-13: fatal error: no input files
compilation terminated.
configure:3650: $? = 1
configure:3654: checking whether the compiler supports GNU C
configure:3674: /opt/local/bin/gcc-mp-13 -c -pipe -Os -arch ppc -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.c >&5
configure:3674: $? = 0
configure:3684: result: yes
configure:3695: checking whether /opt/local/bin/gcc-mp-13 accepts -g
configure:3716: /opt/local/bin/gcc-mp-13 -c -g -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.c >&5
configure:3716: $? = 0
configure:3760: result: yes
configure:3780: checking for /opt/local/bin/gcc-mp-13 option to enable C11 features
configure:3795: /opt/local/bin/gcc-mp-13  -c -pipe -Os -arch ppc -isystem/opt/local/include/LegacySupport -I/opt/local/include conftest.c >&5
configure:3795: $? = 0
configure:3813: result: none needed
configure:4045: checking for C++ compiler version
configure:4054: /opt/local/bin/g++-mp-13 -std=gnu++17 --version >&5
g++-mp-13 (MacPorts gcc13 13.3.0_0+stdlib_flag) 13.3.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4065: $? = 0
configure:4054: /opt/local/bin/g++-mp-13 -std=gnu++17 -v >&5
Using built-in specs.
COLLECT_GCC=/opt/local/bin/g++-mp-13
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/powerpc-apple-darwin10/13.3.0/lto-wrapper
Target: powerpc-apple-darwin10
Configured with: /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_lang_gcc13/gcc13/work/gcc-13.3.0/configure --prefix=/opt/local --build=powerpc-apple-darwin10 --enable-languages=c,c++,objc,obj-c++,lto,fortran,jit --libdir=/opt/local/lib/gcc13 --includedir=/opt/local/include/gcc13 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-13 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-13 --with-gxx-include-dir=/opt/local/include/gcc13/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --with-zstd=/opt/local --enable-checking=release --disable-multilib --enable-lto --enable-libstdcxx-time --without-build-config --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --enable-host-shared --with-darwin-extra-rpath=/opt/local/lib/libgcc --with-libiconv-prefix=/opt/local --disable-tls --with-gxx-libcxx-include-dir=/opt/local/libexec/gcc13/libc++/include/c++/v1 --with-pkgversion='MacPorts gcc13 13.3.0_0+stdlib_flag'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.0 (MacPorts gcc13 13.3.0_0+stdlib_flag) 
configure:4065: $? = 0
configure:4054: /opt/local/bin/g++-mp-13 -std=gnu++17 -V >&5
g++-mp-13: error: unrecognized command-line option '-V'
g++-mp-13: fatal error: no input files
compilation terminated.
configure:4065: $? = 1
configure:4054: /opt/local/bin/g++-mp-13 -std=gnu++17 -qversion >&5
g++-mp-13: error: unrecognized command-line option '-qversion'; did you mean '--version'?
g++-mp-13: fatal error: no input files
compilation terminated.
configure:4065: $? = 1
configure:4069: checking whether the compiler supports GNU C++
configure:4099: result: yes
configure:4110: checking whether /opt/local/bin/g++-mp-13 -std=gnu++17 accepts -g
configure:4175: result: yes
configure:4195: checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features
configure:4228: result: none needed
configure:4319: checking Intel TBB existence:
configure:4331: result: no
configure:4333: WARNING: Intel TBB not installed; install TBB devel package for parallel processing or update PKG_CONFIG_PATH environment variable
configure:4406: Package CPP flags: 
configure:4408: Package LIBS: 
configure:4563: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by seededlda config.status 1.4.0, which was
generated by GNU Autoconf 2.71.  Invocation command line was

  CONFIG_FILES    = 
  CONFIG_HEADERS  = 
  CONFIG_LINKS    = 
  CONFIG_COMMANDS = 
  $ ./config.status 

on 36-25.wireless-city.scu.edu.tw

config.status:721: creating src/Makevars

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/opt/local/bin/gcc-mp-13
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-pipe -Os -arch ppc'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-isystem/opt/local/include/LegacySupport -I/opt/local/include'
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-pipe -Os -arch ppc'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value='/opt/local/bin/g++-mp-13 -std=gnu++17'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_objext=o
ac_cv_prog_CXXCPP='/opt/local/bin/g++-mp-13 -std=gnu++17 -E'
ac_cv_prog_ac_ct_CC=/opt/local/bin/gcc-mp-13
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_11=no
ac_cv_prog_cxx_cxx11=
ac_cv_prog_cxx_g=yes
ac_cv_prog_cxx_stdcxx=

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='/opt/local/bin/gcc-mp-13'
CFLAGS='-pipe -Os -arch ppc'
CPPFLAGS='-isystem/opt/local/include/LegacySupport -I/opt/local/include'
CXX='/opt/local/bin/g++-mp-13 -std=gnu++17'
CXXCPP='/opt/local/bin/g++-mp-13 -std=gnu++17 -E'
CXXFLAGS='-pipe -Os -arch ppc -g0'
DEFS='-DPACKAGE_NAME=\"seededlda\" -DPACKAGE_TARNAME=\"seededlda\" -DPACKAGE_VERSION=\"1.4.0\" -DPACKAGE_STRING=\"seededlda\ 1.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
LDFLAGS='-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -Wl,-rpath,/opt/local/lib/libgcc -arch ppc'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='seededlda'
PACKAGE_STRING='seededlda 1.4.0'
PACKAGE_TARNAME='seededlda'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.0'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
TBBFLAGS=''
TBBLIBS=''
TBB_CFLAGS=''
TBB_LIBS=''
ac_ct_CC='/opt/local/bin/gcc-mp-13'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "seededlda"
#define PACKAGE_TARNAME "seededlda"
#define PACKAGE_VERSION "1.4.0"
#define PACKAGE_STRING "seededlda 1.4.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 0

What it should do to work correctly is query for TBB flags with RcppParallel.

barracuda156 commented 2 months ago

Also, to find it with pkg-config, .pc file should be set correctly.

36-25% export PKG_CONFIG_PATH=/opt/local/libexec/onetbb/lib/pkgconfig
36-25% pkg-config --cflags tbb
Package tbb was not found in the pkg-config search path.
Perhaps you should add the directory containing `tbb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'tbb' found
36-25% pkg-config --cflags tbb32
-I/opt/local/libexec/onetbb/include

Because:

36-25% port contents onetbb
Port onetbb @2021.13.0_0+legacy_dispatch contains:
  /opt/local/lib/cmake/TBB/TBBConfig.cmake
  /opt/local/lib/cmake/TBB/TBBConfigVersion.cmake
  /opt/local/lib/cmake/TBB/TBBTargets-macports.cmake
  /opt/local/lib/cmake/TBB/TBBTargets.cmake
  /opt/local/libexec/onetbb/include/oneapi/tbb.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/blocked_range.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/blocked_range2d.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/blocked_range3d.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/blocked_rangeNd.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/cache_aligned_allocator.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/collaborative_call_once.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/combinable.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_hash_map.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_lru_cache.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_map.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_priority_queue.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_queue.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_set.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_unordered_map.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_unordered_set.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/concurrent_vector.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_aggregator.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_aligned_space.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_allocator_traits.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_assert.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_attach.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_concurrent_queue_base.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_concurrent_skip_list.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_concurrent_unordered_base.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_config.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_containers_helpers.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_exception.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_export.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_body_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_cache_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_indexer_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_item_buffer_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_join_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_node_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_node_set_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_nodes_deduction.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_tagged_buffer_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_trace_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_flow_graph_types_impl.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_hash_compare.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_intrusive_list_node.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_machine.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_mutex_common.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_namespace_injection.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_node_handle.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_pipeline_filters.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_pipeline_filters_deduction.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_range_common.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_rtm_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_rtm_rw_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_scoped_lock.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_segment_table.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_small_object_pool.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_string_resource.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_task.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_task_handle.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_template_helpers.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_utils.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/detail/_waitable_atomic.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/enumerable_thread_specific.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/flow_graph.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/flow_graph_abstractions.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/global_control.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/info.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/memory_pool.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/null_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/null_rw_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_for.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_for_each.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_invoke.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_pipeline.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_reduce.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_scan.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/parallel_sort.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/partitioner.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/profiling.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/queuing_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/queuing_rw_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/rw_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/scalable_allocator.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/spin_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/spin_rw_mutex.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/task.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/task_arena.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/task_group.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/task_scheduler_observer.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/tbb_allocator.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/tbbmalloc_proxy.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/tick_count.h
  /opt/local/libexec/onetbb/include/oneapi/tbb/version.h
  /opt/local/libexec/onetbb/include/tbb/blocked_range.h
  /opt/local/libexec/onetbb/include/tbb/blocked_range2d.h
  /opt/local/libexec/onetbb/include/tbb/blocked_range3d.h
  /opt/local/libexec/onetbb/include/tbb/blocked_rangeNd.h
  /opt/local/libexec/onetbb/include/tbb/cache_aligned_allocator.h
  /opt/local/libexec/onetbb/include/tbb/collaborative_call_once.h
  /opt/local/libexec/onetbb/include/tbb/combinable.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_hash_map.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_lru_cache.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_map.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_priority_queue.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_queue.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_set.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_unordered_map.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_unordered_set.h
  /opt/local/libexec/onetbb/include/tbb/concurrent_vector.h
  /opt/local/libexec/onetbb/include/tbb/enumerable_thread_specific.h
  /opt/local/libexec/onetbb/include/tbb/flow_graph.h
  /opt/local/libexec/onetbb/include/tbb/flow_graph_abstractions.h
  /opt/local/libexec/onetbb/include/tbb/global_control.h
  /opt/local/libexec/onetbb/include/tbb/info.h
  /opt/local/libexec/onetbb/include/tbb/memory_pool.h
  /opt/local/libexec/onetbb/include/tbb/mutex.h
  /opt/local/libexec/onetbb/include/tbb/null_mutex.h
  /opt/local/libexec/onetbb/include/tbb/null_rw_mutex.h
  /opt/local/libexec/onetbb/include/tbb/parallel_for.h
  /opt/local/libexec/onetbb/include/tbb/parallel_for_each.h
  /opt/local/libexec/onetbb/include/tbb/parallel_invoke.h
  /opt/local/libexec/onetbb/include/tbb/parallel_pipeline.h
  /opt/local/libexec/onetbb/include/tbb/parallel_reduce.h
  /opt/local/libexec/onetbb/include/tbb/parallel_scan.h
  /opt/local/libexec/onetbb/include/tbb/parallel_sort.h
  /opt/local/libexec/onetbb/include/tbb/partitioner.h
  /opt/local/libexec/onetbb/include/tbb/profiling.h
  /opt/local/libexec/onetbb/include/tbb/queuing_mutex.h
  /opt/local/libexec/onetbb/include/tbb/queuing_rw_mutex.h
  /opt/local/libexec/onetbb/include/tbb/rw_mutex.h
  /opt/local/libexec/onetbb/include/tbb/scalable_allocator.h
  /opt/local/libexec/onetbb/include/tbb/spin_mutex.h
  /opt/local/libexec/onetbb/include/tbb/spin_rw_mutex.h
  /opt/local/libexec/onetbb/include/tbb/task.h
  /opt/local/libexec/onetbb/include/tbb/task_arena.h
  /opt/local/libexec/onetbb/include/tbb/task_group.h
  /opt/local/libexec/onetbb/include/tbb/task_scheduler_observer.h
  /opt/local/libexec/onetbb/include/tbb/tbb.h
  /opt/local/libexec/onetbb/include/tbb/tbb_allocator.h
  /opt/local/libexec/onetbb/include/tbb/tbbmalloc_proxy.h
  /opt/local/libexec/onetbb/include/tbb/tick_count.h
  /opt/local/libexec/onetbb/include/tbb/version.h
  /opt/local/libexec/onetbb/lib/cmake/TBB/TBBConfig.cmake
  /opt/local/libexec/onetbb/lib/cmake/TBB/TBBConfigVersion.cmake
  /opt/local/libexec/onetbb/lib/cmake/TBB/TBBTargets-macports.cmake
  /opt/local/libexec/onetbb/lib/cmake/TBB/TBBTargets.cmake
  /opt/local/libexec/onetbb/lib/libtbb.12.13.dylib
  /opt/local/libexec/onetbb/lib/libtbb.12.dylib
  /opt/local/libexec/onetbb/lib/libtbb.dylib
  /opt/local/libexec/onetbb/lib/libtbbbind_2_5.3.13.dylib
  /opt/local/libexec/onetbb/lib/libtbbbind_2_5.3.dylib
  /opt/local/libexec/onetbb/lib/libtbbbind_2_5.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc.2.13.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc.2.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc_proxy.2.13.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc_proxy.2.dylib
  /opt/local/libexec/onetbb/lib/libtbbmalloc_proxy.dylib
  /opt/local/libexec/onetbb/lib/pkgconfig/tbb32.pc
  /opt/local/libexec/onetbb/share/doc/TBB/README.md

(I believe, for a 64-bit system it will be tbb64.pc, respectively.)

P. S. Why is prefix hardcoded to /usr/local, instead of using an environment variable?

barracuda156 commented 2 months ago

UPD. Ah, it does not rely on RcppParallel, so that is not an option, but pkg-config notion is still relevant: as of now, this just does not work correctly.

barracuda156 commented 2 months ago

Finally, here is why the configure test may fail even when pkg-config finds oneTBB correctly:

. . .
checking Intel TBB existence:... yes
checking tbb available for compiling and linking:... no
configure: WARNING: parallel computing is disabled because the Intel TBB devel package is absent
. . .

I copied the contents of libtbb_test.cpp from configure script and try building that:

36-25% /opt/local/bin/g++-mp-13 -arch ppc -I/opt/local/libexec/onetbb/include -o libtbb_test libtbb_test.cpp -L/opt/local/libexec/onetbb/lib -ltbb 
Undefined symbols:
  "___atomic_fetch_add_8", referenced from:
      __ZN3tbb6detail2d112wait_context13add_referenceEx in cc0TD586.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status

I.e. you need to pass -latomic for 32-bit archs or otherwise do not use 64-bit atomics here.

barracuda156 commented 2 months ago

Fixing all of the above, I got it to work now:

--->  Extracting seededlda_1.4.0.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/R-seededlda/seededlda_1.4.0.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Applying patches to R-seededlda
--->  Applying patch-fix-finding-TBB.diff
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /usr/bin/patch -t -N -p0 < '/opt/PPCSnowLeopardPorts/R/R-seededlda/files/patch-fix-finding-TBB.diff'
patching file configure
--->  Applying patch-use-right-prefix.diff
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /usr/bin/patch -t -N -p0 < '/opt/PPCSnowLeopardPorts/R/R-seededlda/files/patch-use-right-prefix.diff'
patching file configure
--->  Applying patch-atomics.diff
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /usr/bin/patch -t -N -p0 < '/opt/PPCSnowLeopardPorts/R/R-seededlda/files/patch-atomics.diff'
patching file configure
--->  Patching configure: s|@PREFIX@|/opt/local|
--->  Patching configure: s|@BIT@|32|g
--->  Configuring R-seededlda
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /opt/local/bin/R CMD build . --no-manual --no-build-vignettes --keep-empty-dirs 
* checking for file ‘./DESCRIPTION’ ... OK
* preparing ‘seededlda’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running ‘cleanup’
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘seededlda_1.4.0.tar.gz’

--->  Building R-seededlda
xinstall: mkdir /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/build
Executing:  cd "/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/seededlda" && /opt/local/bin/R CMD INSTALL . --library=/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/build --install-tests 
* installing *source* package ‘seededlda’ ...
file ‘configure’ has the wrong MD5 checksum
** using staged installation
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/g++-mp-13 -std=gnu++17 accepts -g... yes
checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features... none needed
checking how to run the C++ preprocessor... /opt/local/bin/g++-mp-13 -std=gnu++17 -E
checking for gcc... /opt/local/bin/gcc-mp-13
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 whether the compiler supports GNU C++... (cached) yes
checking whether /opt/local/bin/g++-mp-13 -std=gnu++17 accepts -g... (cached) yes
checking for /opt/local/bin/g++-mp-13 -std=gnu++17 option to enable C++11 features... (cached) none needed
checking Intel TBB existence:... yes
checking tbb available for compiling and linking:... yes
configure: Package CPP flags: -DTBB -I/opt/local/libexec/onetbb/include
configure: Package LIBS: -L/opt/local/libexec/onetbb/lib -ltbb -latomic
configure: creating ./config.status
config.status: creating src/Makevars
** 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'/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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include -DTBB -I/opt/local/libexec/onetbb/include -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'/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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include -DTBB -I/opt/local/libexec/onetbb/include -fPIC  -pipe -Os -arch ppc   -c lda.cpp -o lda.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include -DTBB -I/opt/local/libexec/onetbb/include -fPIC  -pipe -Os -arch ppc   -c test-array.cpp -o test-array.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include -DTBB -I/opt/local/libexec/onetbb/include -fPIC  -pipe -Os -arch ppc   -c test-runner.cpp -o test-runner.o
/opt/local/bin/g++-mp-13 -std=gnu++17 -I"/opt/local/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -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/RcppArmadillo/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/quanteda/include' -I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/testthat/include' -isystem/opt/local/include/LegacySupport -I/opt/local/include   -I../inst/include -DTBB -I/opt/local/libexec/onetbb/include -fPIC  -pipe -Os -arch ppc   -c utility.cpp -o utility.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 seededlda.so RcppExports.o lda.o test-array.o test-runner.o utility.o -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/libexec/onetbb/lib -ltbb -latomic -F/opt/local/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_R_R-seededlda/R-seededlda/work/build/00LOCK-seededlda/00new/seededlda/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** tests
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** 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 (seededlda)
koheiw commented 2 months ago

We need to drop our dependency on RcppParallel earlier because it bundles old TBB library, which has bugs detected by CRAN's UBSAN tests. We are no export on the configure script, so you inputs are welcome. TBB issues is discussed in the quanteda issues: https://github.com/quanteda/quanteda/issues?q=is%3Aissue+configure+is%3Aclosed

By the way, please update your seededlda to v1.4.1. There is a problem in Makevars in v1.4.0.