mirror of
https://github.com/torvalds/linux.git
synced 2025-11-09 13:10:19 +02:00
gcc complains that urandom_read gets built twice.
gcc -o tools/testing/selftests/bpf/urandom_read
-static urandom_read.c -Wl,--build-id
gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../lib/bpf
-I../../../../include/generated -I../../../include urandom_read.c
urandom_read -lcap -lelf -lrt -lpthread -o
tools/testing/selftests/bpf/urandom_read
gcc: fatal error: input file
‘tools/testing/selftests/bpf/urandom_read’ is the
same as output file
compilation terminated.
../lib.mk:110: recipe for target
'tools/testing/selftests/bpf/urandom_read' failed
To fix this issue remove the urandom_read target and so target
TEST_CUSTOM_PROGS gets used.
Fixes:
|
||
|---|---|---|
| .. | ||
| gnu | ||
| include/uapi/linux | ||
| .gitignore | ||
| bpf_endian.h | ||
| bpf_helpers.h | ||
| bpf_rand.h | ||
| bpf_rlimit.h | ||
| bpf_util.h | ||
| cgroup_helpers.c | ||
| cgroup_helpers.h | ||
| config | ||
| connect4_prog.c | ||
| connect6_prog.c | ||
| dev_cgroup.c | ||
| get_cgroup_id_kern.c | ||
| get_cgroup_id_user.c | ||
| Makefile | ||
| sample_map_ret0.c | ||
| sample_ret0.c | ||
| sendmsg4_prog.c | ||
| sendmsg6_prog.c | ||
| sockmap_parse_prog.c | ||
| sockmap_tcp_msg_prog.c | ||
| sockmap_verdict_prog.c | ||
| tcp_client.py | ||
| tcp_server.py | ||
| test_adjust_tail.c | ||
| test_align.c | ||
| test_btf.c | ||
| test_btf_haskv.c | ||
| test_btf_nokv.c | ||
| test_dev_cgroup.c | ||
| test_get_stack_rawtp.c | ||
| test_iptunnel_common.h | ||
| test_kmod.sh | ||
| test_l4lb.c | ||
| test_l4lb_noinline.c | ||
| test_libbpf.sh | ||
| test_libbpf_open.c | ||
| test_lirc_mode2.sh | ||
| test_lirc_mode2_kern.c | ||
| test_lirc_mode2_user.c | ||
| test_lpm_map.c | ||
| test_lru_map.c | ||
| test_lwt_seg6local.c | ||
| test_lwt_seg6local.sh | ||
| test_maps.c | ||
| test_obj_id.c | ||
| test_offload.py | ||
| test_pkt_access.c | ||
| test_pkt_md_access.c | ||
| test_progs.c | ||
| test_sock.c | ||
| test_sock_addr.c | ||
| test_sock_addr.sh | ||
| test_sockhash_kern.c | ||
| test_sockmap.c | ||
| test_sockmap_kern.c | ||
| test_sockmap_kern.h | ||
| test_stacktrace_build_id.c | ||
| test_stacktrace_map.c | ||
| test_tag.c | ||
| test_tcp_estats.c | ||
| test_tcpbpf.h | ||
| test_tcpbpf_kern.c | ||
| test_tcpbpf_user.c | ||
| test_tracepoint.c | ||
| test_tunnel.sh | ||
| test_tunnel_kern.c | ||
| test_verifier.c | ||
| test_verifier_log.c | ||
| test_xdp.c | ||
| test_xdp_meta.c | ||
| test_xdp_meta.sh | ||
| test_xdp_noinline.c | ||
| test_xdp_redirect.c | ||
| test_xdp_redirect.sh | ||
| trace_helpers.c | ||
| trace_helpers.h | ||
| urandom_read.c | ||