prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
16.08k stars 5.39k forks source link

[native] Link failed when cmake version=3.22 and PRESTO_ENABLE_PARQUET=ON #19082

Open bianhq opened 1 year ago

bianhq commented 1 year ago

The default CMake version in Ubuntu 22.04 is 3.22. On this version of CMake, if PRESTO_ENABLE_PARQUETU is turned on in presto-native-execution/CMakeLists, ld reports the following error when linking libThriftProtocol.a to the presto_server executable binary: ...relocation R_X86_64_PC32 against undefined ... hidden symbol can not be used when making a PIE object.

The problem does not exist if I use a manually installed CMake 3.16.9. The problem also does not exist on Ubuntu 20.04 (default CMake version=3.16.3).

rohanpednekar commented 1 year ago

Hi @majetideepak, do you think you can help here?