-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install go module in MAC OS #24
Comments
@iamprashant Thank you for your issue. Can you build and install treelite again? git clone [email protected]:dmlc/treelite.git
cd treelite
mkdir build
cd build
# cmake is required.
cmake ..
# password is required.
sudo make install |
This issue is stale because it has been open for 60 days with no activity. |
Hey @getumen, First of thanks for creating this repo. |
@saihow1999 |
@saihow1999 oh, sorry.
|
@getumen, Yes it was the initial branch I cloned with. But the same issue persists there too. I am using Apple M1 Pro, 16GB RAM and my OS is 13.4 (22F66). Like mentioned above, it is not able to find any .h files. Can you please help to debug this issue ? |
@saihow1999 At first, I want to know Treelite is installed correctly. $ ls /usr/local/include/treelite
annotator.h c_api_runtime.h filesystem.h math.h thread_local.h
base.h compiler.h frontend.h omp.h tree.h
c_api.h compiler_param.h frontend_impl.h omp_exception.h tree_impl.h
c_api_common.h data.h gtil.h optional.h typeinfo.h
c_api_error.h error.h logging.h predictor.h version.h I found that export CPATH=$CPATH:/usr/local/include https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html |
Hi @getumen, |
@saihow1999 That implies installing treelite was failed. |
Thanks for taking the effort on starting go wrapper for treelite.
Have already built and installed treelite fom source.
❯ ls -l /usr/local/lib/libtreelite_runtime.dylib
.rwxr-xr-x 184k root 21 Sep 15:55 /usr/local/lib/libtreelite_runtime.dylib
Platform and version.
M1. 16 GB
go version go1.17.7 darwin/amd64
`
go get github.com/getumen/go-treelite 42%
github.com/getumen/go-treelite
ld: warning: ignoring file /usr/local/lib/libtreelite_runtime.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
ld: warning: ignoring file /usr/local/lib/libtreelite.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Undefined symbols for architecture x86_64:
"_TreeliteAnnotateBranch", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteAnnotateBranch in _x002.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteAnnotateBranch)
"_TreeliteAnnotationFree", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteAnnotationFree in _x002.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteAnnotationFree)
"_TreeliteAnnotationSave", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteAnnotationSave in _x002.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteAnnotationSave)
"_TreeliteCompilerCreateV2", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteCompilerCreateV2 in _x003.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteCompilerCreateV2)
"_TreeliteCompilerFree", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteCompilerFree in _x003.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteCompilerFree)
"_TreeliteCompilerGenerateCodeV2", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteCompilerGenerateCodeV2 in _x003.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteCompilerGenerateCodeV2)
"_TreeliteDMatrixCreateFromCSR", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixCreateFromCSR in _x004.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixCreateFromCSR)
"_TreeliteDMatrixCreateFromMat", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixCreateFromMat in _x004.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixCreateFromMat)
"_TreeliteDMatrixFree", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixFree in _x004.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixFree)
"_TreeliteDMatrixGetDimension", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixGetDimension in _x004.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteDMatrixGetDimension)
"_TreeliteFreeModel", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteFreeModel in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteFreeModel)
"_TreeliteLoadLightGBMModel", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadLightGBMModel in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadLightGBMModel, __cgo_57a9b4bf9154_Cfunc_TreeliteLoadLightGBMModelFromString )
"_TreeliteLoadLightGBMModelFromString", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadLightGBMModelFromString in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadLightGBMModelFromString)
"_TreeliteLoadXGBoostJSON", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostJSON in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostJSON, __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostJSONString )
"_TreeliteLoadXGBoostJSONString", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostJSONString in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostJSONString)
"_TreeliteLoadXGBoostModel", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostModel in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostModel, __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostModelFromMemoryBuffer )
"_TreeliteLoadXGBoostModelFromMemoryBuffer", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostModelFromMemoryBuffer in _x005.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreeliteLoadXGBoostModelFromMemoryBuffer)
"_TreelitePredictorFree", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreelitePredictorFree in _x006.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreelitePredictorFree)
"_TreelitePredictorLoad", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreelitePredictorLoad in _x006.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreelitePredictorLoad)
"_TreelitePredictorPredictBatch", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreelitePredictorPredictBatch in _x006.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreelitePredictorPredictBatch)
"_TreelitePredictorQueryLeafOutputType", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreelitePredictorQueryLeafOutputType in _x006.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreelitePredictorQueryLeafOutputType)
"_TreelitePredictorQueryNumClass", referenced from:
__cgo_57a9b4bf9154_Cfunc_TreelitePredictorQueryNumClass in _x006.o
(maybe you meant: __cgo_57a9b4bf9154_Cfunc_TreelitePredictorQueryNumClass)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`
Looking forward to contributing in future. Thanks
The text was updated successfully, but these errors were encountered: