I've just disabled building an (unused) profiled binary to unbreak net/iperf3
on clang/amd64, but that might want a look..

This did build OK on aarch64 without disabling this.

----- Forwarded message from Stuart Henderson <[email protected]> -----

From: Stuart Henderson <[email protected]>
Date: Thu, 25 May 2017 06:56:35 -0600 (MDT)
To: [email protected]
Subject: CVS: cvs.openbsd.org: ports

CVSROOT:        /cvs
Module name:    ports
Changes by:     [email protected]   2017/05/25 06:56:35

Added files:
        net/iperf3/patches: patch-src_Makefile_in 

Log message:
disable building the profiled binary, it wasn't installed anyway, and fails 
with clang


----- End forwarded message -----


$ /usr/bin/clang -o .libs/iperf3_profile -pg -g -O2 -pipe -Wall -pg -g 
iperf3_profile-main.o iperf3_profile-cjson.o iperf3_profile-iperf_api.o 
iperf3_profile-iperf_error.o iperf3_profile-iperf_client_api.o 
iperf3_profile-iperf_locale.o iperf3_profile-iperf_server_api.o 
iperf3_profile-iperf_tcp.o iperf3_profile-iperf_udp.o 
iperf3_profile-iperf_sctp.o iperf3_profile-iperf_util.o iperf3_profile-net.o 
iperf3_profile-tcp_info.o iperf3_profile-tcp_window_size.o 
iperf3_profile-timer.o iperf3_profile-units.o -L.libs -liperf -lm 
-Wl,-rpath-link,/usr/local/lib
/usr/bin/ld: /usr/bin/../lib/libc_p.a(assert.po): relocation R_X86_64_32 
against `a local symbol' can not be used when making a shared object; recompile 
with -fPIC
/usr/bin/../lib/libc_p.a: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Linker invocation:

 "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker 
/usr/libexec/ld.so -o .libs/iperf3_profile /usr/bin/../lib/gcrt0.o 
/usr/bin/../lib/crtbegin.o -L.libs -L/usr/bin/../lib -L/usr/lib 
iperf3_profile-main.o iperf3_profile-cjson.o iperf3_profile-iperf_api.o 
iperf3_profile-iperf_error.o iperf3_profile-iperf_client_api.o 
iperf3_profile-iperf_locale.o iperf3_profile-iperf_server_api.o 
iperf3_profile-iperf_tcp.o iperf3_profile-iperf_udp.o 
iperf3_profile-iperf_sctp.o iperf3_profile-iperf_util.o iperf3_profile-net.o 
iperf3_profile-tcp_info.o iperf3_profile-tcp_window_size.o 
iperf3_profile-timer.o iperf3_profile-units.o -liperf -lm -rpath-link 
/usr/local/lib -lcompiler_rt -lc_p -lcompiler_rt /usr/bin/../lib/crtend.o

Reply via email to