The system dependencies used by tenann in branch-3.4.5 are not compiled with PIC enabled. May I ask if this will be considered for enabling in the future?
#69612 opened on Feb 28, 2026
Description
Enabling the -pie compilation results in the following error:
/usr/local/bin/ld: /usr1/opensourcebuild/StarRocks/code/thirdparty/installed//lib/libtenann-bundle-avx2.a(parallel.o): relocation R_X86_64_32 against hidden symbol `gomp_global_icv' can not be used when making a PIE object %F/usr/local/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status execute failed, /opt/buildtools/gcc_12.3.0/bin/../bin/g++: Operation not permitted ninja: build stopped: subcommand failed.
real 0m48.010s user 0m4.282s sys 0m9.253s [CloudCache] 2026/02/27 22:00:35 [ { "type": "c", "total": "6", "remote_hit": "0", "remote_avg_cost": "", "hash_avg_cost": "3ms", "local_hit": { "direct": "2", "preprocessed": "0" }, "miss": "0", "skip": "4" } ]
StarRocks version (Required)
- 3.4.5