Skip to content
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

编译报错 #2

Open
tttttxxxxxxxx opened this issue Apr 17, 2024 · 3 comments
Open

编译报错 #2

tttttxxxxxxxx opened this issue Apr 17, 2024 · 3 comments

Comments

@tttttxxxxxxxx
Copy link

collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:1314: block_cache_trace_analyzer] Error 1
make[1]: Leaving directory '/home/new/rocksdb'
make: *** [Makefile:890: release] Error 2
为什么使用这个编译命令会报错呢 EXTRA_CXXFLAGS="-I/home/new/qpl/build/include" EXTRA_LDFLAGS="-L/home/new/qpl/build/lib" ROCKSDB_PLUGINS="iaa_compressor" make -j release

@lucagiac81
Copy link
Contributor

Hi. Thank you for reporting the issue. Could you please share more details to reproduce the error?

  • Is this error observed with the latest RocksDB PR6717 and the latest IAA plugin release?
  • Which QPL version?
  • Which OS and compiler?

@tttttxxxxxxxx
Copy link
Author

Thank you for your reply!
iaa-plugin and rocksdb :Download it on this github method
1、:git clone https://github.com/intel/iaa-plugin-rocksdb.git plugin/iaa_compressor
2、:git clone --branch pluggable_compression https://github.com/lucagiac81/rocksdb.git
cd rocksdb
3、qpl: V1.4.0,Download it on “git clone --recursive https://github.com/intel/qpl.git
(qpl : The installation was successful,Successful execution)
4、OS: debian 10 + kernel 6.6.7

@lucagiac81
Copy link
Contributor

I tried the following and the build completed correctly.
Ubuntu 22.04, kernel 6.2.0, gcc 11.4.0
That's the closest configuration I was able to test so far.

# Build QPL
# Source directory: qpl_source
# Install directory: qpl
git clone --recursive --branch v1.4.0 https://github.com/intel/qpl.git qpl_source
cd qpl_source
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=../../qpl -DCMAKE_BUILD_TYPE=Release -DEFFICIENT_WAIT=ON .. 
cmake --build . --target install -- -j
cd ../..

# Build RocksDB with IAA plugin
git clone --branch pluggable_compression https://github.com/lucagiac81/rocksdb.git
cd rocksdb
git clone https://github.com/intel/iaa-plugin-rocksdb.git plugin/iaa_compressor
EXTRA_CXXFLAGS="-I/home/ubuntu/qpl/include" EXTRA_LDFLAGS="-L/home/ubuntu/qpl/lib" ROCKSDB_PLUGINS="iaa_compressor" make -j release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants