trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

lld on ubuntu 2304

Open masaori335 opened this issue 2 years ago • 1 comments

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" \
"$@"

masaori335 avatar Sep 27 '23 02:09 masaori335

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.

github-actions[bot] avatar Sep 27 '24 02:09 github-actions[bot]