[ https://issues.apache.org/jira/browse/ARROW-12855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andraž Matkovič updated ARROW-12855: ------------------------------------ Labels: matlab (was: ) > error: no member named 'TableReader' in namespace during compilation > -------------------------------------------------------------------- > > Key: ARROW-12855 > URL: https://issues.apache.org/jira/browse/ARROW-12855 > Project: Apache Arrow > Issue Type: Bug > Components: MATLAB > Affects Versions: 4.0.0 > Environment: MATLAB 2020a, Mac OS 11.2.1 > Reporter: Andraž Matkovič > Priority: Major > Labels: matlab > > I followed instructions for compilation of arrow under MATLAB > ([https://github.com/apache/arrow/tree/master/matlab).] First I set > environment variable ARROW_HOME, e.g. > > {code:java} > setenv ARROW_HOME ~/.pyenv/versions/3.8.0/lib/python3.8/site-packages/pyarrow > {code} > (I also tried other pyarrow versions, even /usr/local, it's always the same). > > Next, when I run compile in MATLAB I get the following error: > {code:java} > Verbose mode is on.Verbose mode is on.... Looking for compiler 'Xcode > Clang++' ...... Looking for environment variable 'DEVELOPER_DIR' ...No.... > Executing command 'xcode-select -print-path' ...Yes > ('/Applications/Xcode.app/Contents/Developer').... Looking for folder > '/Applications/Xcode.app/Contents/Developer' ...Yes.... Executing command > 'which xcrun' ...Yes ('/usr/bin/xcrun').... Looking for folder '/usr/bin' > ...Yes.... Executing command 'defaults read com.apple.dt.Xcode > IDEXcodeVersionForAgreedToGMLicense' ...No.... Executing command 'defaults > read /Library/Preferences/com.apple.dt.Xcode > IDEXcodeVersionForAgreedToGMLicense' ...Yes ('11.0').... Executing command > 'agreed=11.0 if echo $agreed | grep -E '[\.\"]' >/dev/null; then lhs=`expr > "$agreed" : '\([0-9]*\)[\.].*'` rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'` > if echo $rhs | grep -E '[\."]' >/dev/null; then rhs=`expr "$rhs" : > '\([0-9]*\)[\.].*'` fi if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge > 3 ] ); then echo $agreed else exit 1 fi fi' ...Yes ('11.0').... Executing > command 'xcrun -sdk macosx --show-sdk-path' ...Yes > ('/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk').... > Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN > {FS="."} ; {print $1"."$2}'' ...Yes ('11.1').... Executing command 'clang > --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('12.0.0').Found > installed compiler 'Xcode Clang++'.Set INCLUDE = > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/12.0.0/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/12.0.0/include;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks;Options > file > details------------------------------------------------------------------- > Compiler location: /Applications/Xcode.app/Contents/Developer Options file: > /Users/andraz/Library/Application > Support/MathWorks/MATLAB/R2020a/mex_C++_maci64.xml CMDLINE200 : > /usr/bin/xcrun -sdk macosx11.1 clang++ \-Wl,-twolevel_namespace -undefined > error -arch x86_64 -mmacosx-version-min=10.9 > -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -framework Cocoa -bundle -stdlib=libc++ -Wl,-rpath '/usr/local/lib' -O > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/mexFunction.map" > > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/c_exportsmexfileversion.map" > -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction > -Wl,-U,_mexFunctionAdapter > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/cppMexFunction.map" > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/feather_reader.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/handle_status.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/cpp_mexapi_version.o > -larrow -L/usr/local/lib > -L"/Applications/MATLAB_R2020a.app/bin/maci64" -lmx -lmex -lmat > -L"/Applications/MATLAB_R2020a.app/extern/bin/maci64" -lMatlabDataArray > -lMatlabEngine -o > /Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.mexmaci64 > CC : /usr/bin/xcrun -sdk macosx11.1 clang CXX : /usr/bin/xcrun -sdk > macosx11.1 clang++ DEFINES : -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a > -DUSE_MEX_CMD -DMATLAB_MEX_FILE MATLABMEX : -DMATLAB_MEX_FILE > MACOSX_DEPLOYMENT_TARGET : 10.9 CFLAGS : -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > CXXFLAGS : -fno-common -arch x86_64 -mmacosx-version-min=10.9 -fexceptions > -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ INCLUDE : -I"/usr/local/include" > -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" CXXOPTIMFLAGS : -O2 > -fwrapv -DNDEBUG CXXDEBUGFLAGS : -g LD : /usr/bin/xcrun -sdk macosx11.1 clang > LDXX : /usr/bin/xcrun -sdk macosx11.1 clang++ LDFLAGS : > \-Wl,-twolevel_namespace -undefined error -arch x86_64 > -mmacosx-version-min=10.9 > -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -framework Cocoa -bundle -stdlib=libc++ -Wl,-rpath '/usr/local/lib' > LDBUNDLE : -bundle LINKEXPORT : > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/mexFunction.map" > LINKEXPORTVER : > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/c_exportsmexfileversion.map" > LINKEXPORTCPP : -Wl,-U,_mexCreateMexFunction -Wl,-U,_mexDestroyMexFunction > -Wl,-U,_mexFunctionAdapter > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/cppMexFunction.map" > LINKLIBS : -larrow -L/usr/local/lib > -L"/Applications/MATLAB_R2020a.app/bin/maci64" -lmx -lmex -lmat > -L"/Applications/MATLAB_R2020a.app/extern/bin/maci64" -lMatlabDataArray > -lMatlabEngine LDOPTIMFLAGS : -O LDDEBUGFLAGS : -g OBJEXT : .o LDEXT : > .mexmaci64 SETENV : CC="/usr/bin/xcrun -sdk macosx11.1 clang" > CXX="/usr/bin/xcrun -sdk macosx11.1 clang++" > CFLAGS="-fno-common -arch x86_64 -mmacosx-version-min=10.9 -fexceptions > -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD > -DMATLAB_MEX_FILE " CXXFLAGS="-fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -DMX_COMPAT_64 > -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE " > COPTIMFLAGS="-O2 -fwrapv -DNDEBUG" CXXOPTIMFLAGS="-O2 > -fwrapv -DNDEBUG" CDEBUGFLAGS="-g" > CXXDEBUGFLAGS="-g" LD="/usr/bin/xcrun -sdk macosx11.1 clang" > LDXX="/usr/bin/xcrun -sdk macosx11.1 clang++" > LDFLAGS="\-Wl,-twolevel_namespace -undefined error -arch x86_64 > -mmacosx-version-min=10.9 > -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -framework Cocoa -bundle -stdlib=libc++ -Wl,-rpath '/usr/local/lib' -larrow > -L/usr/local/lib -L"/Applications/MATLAB_R2020a.app/bin/maci64" -lmx > -lmex -lmat -L"/Applications/MATLAB_R2020a.app/extern/bin/maci64" > -lMatlabDataArray -lMatlabEngine > -Wl,-exported_symbols_list,"/Applications/MATLAB_R2020a.app/extern/lib/maci64/mexFunction.map"" > LDDEBUGFLAGS="-g" DEVELOPER_DIR_CHECK : XCODE_DIR : > /Applications/Xcode.app/Contents/Developer XCRUN_DIR : /usr/bin > XCODE_AGREED_VERSION : 11.0 ISYSROOT : > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > SDKVER : 11.1 CLANG_VERSION : 12.0.0 MATLABROOT : > /Applications/MATLAB_R2020a.app ARCH : maci64 SRC : > "/Applications/Toolboxes/arrow/matlab/build_support/../src/featherreadmex.cc";"/Applications/Toolboxes/arrow/matlab/build_support/../src/feather_reader.cc";"/Applications/Toolboxes/arrow/matlab/build_support/../src/util/handle_status.cc";"/Applications/MATLAB_R2020a.app/extern/version/cpp_mexapi_version.cpp" > OBJ : > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.o;/var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/feather_reader.o;/var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/handle_status.o;/var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/cpp_mexapi_version.o > OBJS : > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/feather_reader.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/handle_status.o > > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/cpp_mexapi_version.o > SRCROOT : > /Applications/Toolboxes/arrow/matlab/build_support/../src/featherreadmex DEF > : > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.def > EXP : > "/Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.exp" > LIB : > "/Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.lib" > EXE : > /Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.mexmaci64 > ILK : > "/Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.ilk" > MANIFEST : > "/Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex.mexmaci64.manifest" > TEMPNAME : > /Applications/Toolboxes/arrow/matlab/build_support/../build/featherreadmex > EXEDIR : /Applications/Toolboxes/arrow/matlab/build_support/../build/ EXENAME > : featherreadmex OPTIM : -O2 -fwrapv -DNDEBUG LINKOPTIM : -O CMDLINE100_0 : > /usr/bin/xcrun -sdk macosx11.1 clang++ -c -DMX_COMPAT_64 > -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE > -I"/usr/local/include" -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG > "/Applications/Toolboxes/arrow/matlab/build_support/../src/featherreadmex.cc" > -o > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.o > CMDLINE100_1 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -DMX_COMPAT_64 > -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE > -I"/usr/local/include" -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG > "/Applications/Toolboxes/arrow/matlab/build_support/../src/feather_reader.cc" > -o > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/feather_reader.o > CMDLINE100_2 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -DMX_COMPAT_64 > -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE > -I"/usr/local/include" -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG > "/Applications/Toolboxes/arrow/matlab/build_support/../src/util/handle_status.cc" > -o > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/handle_status.o > CMDLINE100_3 : /usr/bin/xcrun -sdk macosx11.1 clang++ -c -DMX_COMPAT_64 > -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD -DMATLAB_MEX_FILE > -I"/usr/local/include" -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG > "/Applications/MATLAB_R2020a.app/extern/version/cpp_mexapi_version.cpp" -o > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/cpp_mexapi_version.o-------------------------------------------------------------------Building > with 'Xcode Clang++'./usr/bin/xcrun -sdk macosx11.1 clang++ -c > -DMX_COMPAT_64 -DMATLAB_MEXCMD_RELEASE=R2018a -DUSE_MEX_CMD > -DMATLAB_MEX_FILE -I"/usr/local/include" > -I"/Applications/MATLAB_R2020a.app/extern/include" > -I"/Applications/MATLAB_R2020a.app/simulink/include" -fno-common -arch x86_64 > -mmacosx-version-min=10.9 -fexceptions -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk > -fobjc-arc -std=c++11 -stdlib=libc++ -O2 -fwrapv -DNDEBUG > "/Applications/Toolboxes/arrow/matlab/build_support/../src/featherreadmex.cc" > -o > /var/folders/s1/f1fgqkcs6bs4c13v_50btmd40000gn/T/mex_5123220870320_661/featherreadmex.oError > using mexIn file included > from/Applications/Toolboxes/arrow/matlab/build_support/../src/featherreadmex.cc:22:/Applications/Toolboxes/arrow/matlab/build_support/../src/feather_reader.h:69:33: > error:no member named 'TableReader' in namespace 'arrow::ipc::feather' > std::unique_ptr<ipc::feather::TableReader> table_reader_; > ~~~~~~~~~~~~~~^1 error generated.Error in compile (line > 33)mex(fullfile(vars.srcDir, "featherreadmex.cc"), ...{code} > I tried this in MATLAB R2020a and R2021a. I'm not familiar with C++ so I > don't know how to resolve the error. > > !chrome-extension://pccckmaobkjjboncdfnnofkonhgpceea/images/loading.gif! -- This message was sent by Atlassian Jira (v8.3.4#803005)