Skip to content

Clang compilation with --enable-coverage fails. #6927

Description

@torque59

Im trying to compile the ATS:master with clang (clang version 10.0.0-4ubuntu1) with flags --enable-coverage on ubuntu 20.04. It fails with the following error message.

/usr/bin/ld: .libs/traffic_api_cli_remote: hidden symbol `atexit' in /usr/lib/x86_64-linux-gnu/libc_nonshared.a(atexit.oS) is referenced by DSO
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:832: traffic_api_cli_remote] Error 1
make[3]: Leaving directory '/tmp/installtrafficserver/trafficserver/mgmt/api'
make[2]: *** [Makefile:895: install-recursive] Error 1
make[2]: Leaving directory '/tmp/installtrafficserver/trafficserver/mgmt/api'
make[1]: *** [Makefile:806: install-recursive] Error 1
make[1]: Leaving directory '/tmp/installtrafficserver/trafficserver/mgmt'
make: *** [Makefile:853: install-recursive] Error 1

Build command is basically this
CC=clang CXX=clang++ ./configure --enable-coverage=yes && make -j(nproc)

P.S this works fine when compiled with gcc. Any help/pointers to fix would be helpful.

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