-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[leveldb] Find and use snappy in the system #22962
Comments
After reading the cmake configurations, I confirm that the executable target Thanks. |
@JackBoosY are you able to reproduce it ? Because if #22685 got merged people are/were able to install it. Maybe I'm doing something wrong |
@Gab-Menezes No, I can't repro this issue locally. |
So I tried in my another computer that runs Ubuntu 20.04 with g++-10 and went fine. In my windows computer I run g++-11 so can be this. |
Changed to g++-10 and didn't work. Did you use wsl or native linux ? |
@Gab-Menezes native linux. |
@JackBoosY I tried in another windows computer with a fresh WSL2 install and got the same error |
Maybe related to the link order. |
@JackBoosY I tried compiling in fresh Ubuntu 20.04 install using a VM, and wasn't able to compile either. So I decided to list all the packages installed in my Ubuntu computer and the VM, wrote a python script to take the diferrence between the 2 lists. With this I had all the possible packages that could help. So I decided to only install the ones that start with lib*, went through one by one searching what the package was for, and end up with this list: libjq1 After this installed all of them in the VM and tried to build brpc and was successful, but after installing all of this packages in my WSL I still wasn't able to build. What makes me think that is one of those packages + another one that come with native Ubuntu and doesn't come with Ubuntu in WSL2 |
Dude this doesn't make any sense. I installed this packages in another windows computer and was able to compile, but not in my personal one and every single package installed in this computer is installed in mine also. I tried to replicate everything g++ version, cmake version. |
@JackBoosY Found it !!!!!!!!!!!!!!!! The problem occurs when you have libsnappy-dev installed. The leveldb package will try to link with snappy, but things will go wrong haha. So to install brpc you need one of those packages and can't have libsnappy-dev installed. Can I close this issue ? |
@Gab-Menezes Thanks for digger into this, please do not close this issue unless we fix that. |
Finally I can reproduce this issue and I will fix this later. |
Host Environment
To Reproduce
Steps to reproduce the behavior:
./vcpkg install brpc
Failure logs
dbg-out.log file:
install-x64-linux-dbg-out.log
Additional context
I'm trying to build brpc to be able to create braft port mentioned here #22763
I have found another issue talking about this problem here: apache/doris#5253
The text was updated successfully, but these errors were encountered: