Open barracuda156 opened 1 month ago
The problem is reflected in generated Makevars
:
TBB_LIB = /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppParallel/lib/
PKG_CPPFLAGS = -I"include" -I"include/sundials" -I"../inst/include" -DBOOST_DISABLE_ASSERTS -DEIGEN_NO_DEBUG
PKG_CXXFLAGS = -I/opt/local/libexec/onetbb/include -DTBB_INTERFACE_NEW-I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppParallel/include' -D_REENTRANT -DSTAN_THREADS
SHLIB_LDFLAGS = $(SHLIB_CXXLDFLAGS)
SHLIB_LD = $(SHLIB_CXXLD)
PKG_LIBS = -L/opt/local/libexec/onetbb/lib -Wl,-rpath,/opt/local/libexec/onetbb/lib -ltbb -ltbbmalloc -L/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppParallel/lib/ -Wl,-rpath,'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppParallel/lib/' -ltbb -ltbbmalloc
CXX_STD = CXX17
SOURCES = bart_util.cpp init.cpp misc_adaptiveRadixTree.c misc_string.c rc_bounds.c rc_util.c stan_sampler.cpp
OBJECTS = bart_util.o init.o misc_adaptiveRadixTree.o misc_string.o rc_bounds.o rc_util.o stan_sampler.o
all: $(SHLIB)
clean:
rm -rf *.so *.o
rm -rf config.h
.phony: all clean
I just pushed a change to the configure script in 42f9c58. Since I can't replicate the problem locally, please let me know if it addresses the issue.
@vdorie For some reason, flags get glued together, i.e. there is no space between these:
-DTBB_INTERFACE_NEW-I'/opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/library/RcppParallel/include'
.Compiler gets rightfully upset about that, though the build succeeds.
For comparison, there is no issue with cppflags on the same system when I build
blavaan
(which also usedRcppParallel
andoneTBB
):