torque59 opened a new issue #6927:
URL: https://github.com/apache/trafficserver/issues/6927


   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.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to