Closed tangliisu closed 3 years ago
We are trying to compile the cachelib in an internal repo. This repo already has a folly with old version https://github.com/facebook/folly/commit/60be5ec6d5b85c89cadd6ff9a986fa59e88b714d Unfortunately we cannot upgrade the folly version to the lastest since it might affect our other service in the repo. I tried to patch folly and cachelib to make cachelib compilable in an old version of folly/fbthrift. I am not sure this error is related to folly version.
@tangliisu Are you intending to build cachebench or simply the cachelib code to hook inside your application ?
i am intending to build cachebench. I have resolved this issue by linking ln -s /usr/local/lib/libfolly.so /usr/lib/libfolly.so
thank you
Thanks for confirming. IIUC, you intend to build cachelib with an older version of folly and got that to working by symlinking the older version directly, overriding the build setup that ships with cachelib and got it to work ?
yes that is correct.
I tried to compile cachelib in an internal repo. I met a problem when
Linking CXX executable cachebench-util
(the last step lol). The error msg is/usr/bin/ld.gold: error: cannot find -lfolly
. It seems the linker gold cannot link to folly. I enable the cmake verbose. Here is the outputI can find /usr/local/lib/libfolly.so. And i have already tried to make some changes in
cachebench/CMakelist.txt
(the lines i comment)