trafficserver
trafficserver copied to clipboard
lld on ubuntu 2304
In the ci.trafficserver.apache.org/ats/ubuntu:23.04 (ca43c27c309e) image, using lld instead of ld made build failure.
+ /tmp/ats/bin/traffic_server -K -k -R 1
/tmp/ats/bin/traffic_server: error while loading shared libraries: ../src/api/.libs/libtsapi.so: cannot open shared object file: No such file or directory
The libtsapi.so and libtscpputil.so is odd.
root@3d534522803f:/workspace/out_of_source_build_dir# ldd /tmp/ats/bin/traffic_server
...
../src/api/.libs/libtsapi.so => not found
../src/tscpp/util/.libs/libtscpputil.so => not found
...
You can reproduce by the ubuntu.pipeline build steps.
https://github.com/apache/trafficserver-ci/blob/5d6c8b586f355d72784dccdd41a2f0dc374ffecb/jenkins/github/ubuntu.pipeline#L56-L63
root@3d534522803f:/workspace/out_of_source_build_dir# cat config.nice
#! /bin/sh
#
# Created by configure
CC="clang"; export CC
CXX="clang++"; export CXX
LD="lld"; export LD
AR="llvm-ar"; export AR
NM="llvm-nm"; export NM
"../configure" \
"--enable-experimental-plugins" \
"--enable-example-plugins" \
"--enable-expensive-tests" \
"--prefix=/tmp/ats/" \
"--enable-werror" \
"--enable-ccache" \
"CC=clang" \
"CXX=clang++" \
"CXXSTD=20" \
"$@"
This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.