make failed: relocation against `cypher_parser_std_config' in read-only section `.text'
Lincyaw opened this issue · comments
My environment:
Linux nn 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ make
# Building into /home/nn/FalkorDB/bin/linux-x64-release/src
# Using CC=gcc
Building /home/nn/FalkorDB/bin/linux-x64-release/src/falkordb.so ...
[ 1%] Linking CXX shared library falkordb.so
/usr/bin/ld: ../libcypher-parser/lib/src/.libs/libcypher-parser.a(libcypher_parser_la-parser_config.o): warning: relocation against `cypher_parser_std_config' in read-only section `.text'
/usr/bin/ld: ../libcypher-parser/lib/src/.libs/libcypher-parser.a(libcypher_parser_la-parser_config.o): relocation R_X86_64_PC32 against symbol `cypher_parser_std_config' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [CMakeFiles/falkordb.dir/build.make:4719: falkordb.so] Error 1
make[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/falkordb.dir/all] Error 2
make[1]: *** [Makefile:91: all] Error 2
make: *** [/home/nn/FalkorDB/deps/readies/mk/cmake.rules:31: /home/nn/FalkorDB/bin/linux-x64-release/src/falkordb.so] Error 2
What should I do to deal with this error
Make successfully
@Lincyaw what was the issue?
I don't know what is happening, but I tried to download the repository again, and then make it.
It is successfully built.
By the way, if I want to use the latest version of FalkorDB, which branch should I choose? I notice that the master branch has the latest commits, but it depends on redis 6.2. But v4.0.0-a1 depends on redis7.2