Skip to content

lld on ubuntu 2304 #10530

Description

@masaori335

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buildwork related to build configuration or environmentStale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions