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
CacheLib won't build on Centos 8.1 with kernel 5.6.13-0_fbk6_4203_g4cb46d044bc6 #24
Comments
Hello @jeffreyalien , |
@agordon , Here's the list of options we have available for the build-package.sh: usage: build-package.sh [-BdhijStv] NAME options: |
Apologies, my bad. No need for |
@agordon |
So, here is what I think is the issue. The FindSodium.cmake is being double included. There are two version of it. One in fizz and one in cachelib. Putting the right protections as the fizz version of FindSodium does gets rid of the "Configuring Incomplete!" cmake error. |
Hello @dreddy, |
Yes agordon indeed. Kindly forward it to me.
|
@agordon |
@agordon |
@dreddy @jeffreyalien we just pushed to the repository the mentioned patch plus few other fixes - mind giving the latest git-version a try and tell if it builds better? |
@agordon We were finally able to build and install Cachelib with this update. We'll be doing some testing with cachebench now. I'll update you on how that goes when we're done. |
@agordon After manually cloning the following dependancies folly, wangle, fbthrift, fizz to CacheLib/cachelib/external. I am able to successfully build CacheLib from the latest CacheLib git hub code. However when attempting to run cachebench I recieve the following error. I am unfamiliar with cmake files but I did attempt to add the option to build shared libraries for fbthrift. Adding BUILD_SHARED_LIBS=ON to CMakeCache.txt and regenerating the make file and then rebuilding fbthrift did not resolve the issue. |
Hello @jeffreyalien ,
Question: why do you need to manually git-clone the dependencies ? the script
Please check if you have an
That is correct (the BUILD_SHARED_LIBS=ON) - and new build script builds all dependencies with this flag, and all the shared libraries should be installed in the subdirectories Please let me know if you see these files, and if using them work for you. |
@agordon
|
@jeffreyalien you can now apply your earlier patch and verify if the device is appropriately handled. Once you verify, please send out a PR to merge. Can you confirm that your build issues are fixed so that I can close out this issue ? |
@agordon @sathyaphoenix [root@fb-yv2-s3-n4 CacheLib]# nvme wdc vs-smart-add-log /dev/nvme1n1 Physical media units written - 0 2068679535362048Physical media units read - 0 2658736152236032 |
You have to write the logic to do that. You can use the function getBytesWritten by passing the right arguments. See here for some examples here https://github.com/facebookincubator/CacheLib/blob/master/cachelib/cachebench/util/NandWrites.cpp#L154 I'll close this issue out since the build issue is resolved. |
I have modified the NandWrites.cpp file, wdcWriteBytes function to support getting the bytes written for WDC drives and having issues building the CacheLib executable. The NandWrites.txt attached file contains the changes made to NandWrites.cpp file needed to support WDC drives.
The gmake is failing with the following errors:
CMakeFiles/cmTC_78ecd.dir/src.c.o: In function
main': src.c:(.text+0x2f): undefined reference to
pthread_create'src.c:(.text+0x3b): undefined reference to
pthread_detach' src.c:(.text+0x47): undefined reference to
pthread_cancel'src.c:(.text+0x58): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
See the attached log and out files in the build-fail.zip file for more details.
build-fail.zip
NandWrites.txt
The text was updated successfully, but these errors were encountered: