* libacm fails to build
@ 2017-03-09 10:25 Philipp Thomas
[not found] ` <20170309102527.3ni4pkuendwzqzrm-TXhXIaCUHZEYitT5tn2FcQ@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Philipp Thomas @ 2017-03-09 10:25 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
I'm trying to build latest rdma-core but it fails in ibacm because a library
is missing:
[ 28s] FAILED: lib/libibacmp.so
[ 28s] : && /usr/bin/cc -fPIC -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -DNDEBUG -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wformat=2 -Wshadow -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -O2 -g -DNDEBUG -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -Wl,--version-script,/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/libibacmp.map -shared -o lib/libibacmp.so ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o lib/libibverbs.so.1.3.12 lib/libibumad.so.3.1.12 -lpthread && :
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_send_available':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:545: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_close_endpoint':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2471: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_close_dev':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2825: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_post_send':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:514: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:509: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:578: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_record_mc_av':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:650: undefined reference to `acm_gid_index'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_join_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:746: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:748: undefined reference to `acm_free_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:719: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:708: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:712: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:736: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:731: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:778: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_path_sa':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:797: undefined reference to `acm_alloc_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:808: undefined reference to `acm_path_comp_mask'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:810: undefined reference to `acm_increment_counter'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:813: undefined reference to `acm_send_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:814: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:820: undefined reference to `acm_free_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:799: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_sa_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1226: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1230: undefined reference to `acm_query_response'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1231: undefined reference to `acm_free_sa_mad'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_remove_addr':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2412: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_get_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:339: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:342: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:344: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_port_down':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2667: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2683: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_port_up':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2618: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2626: undefined reference to `acm_get_rate'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2662: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2621: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_open_port':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2693: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_dest_timeout':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1721: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1717: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:415: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_query':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1614: undefined reference to `acm_alloc_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1626: undefined reference to `acm_path_comp_mask'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1628: undefined reference to `acm_increment_counter'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1630: undefined reference to `acm_send_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1631: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1638: undefined reference to `acm_free_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1616: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_queue_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1701: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_response':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:932: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:961: undefined reference to `acm_resolve_response'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_complete_queued_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:969: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:974: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_dest_sa_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:995: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_init_path_av':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:686: undefined reference to `acm_gid_index'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_dest_sa_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1009: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:995: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1019: undefined reference to `acm_free_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:999: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_addr_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1139: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1139: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_open_dev':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2738: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_init_port':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2721: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2808: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_join_group':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1399: undefined reference to `acm_alloc_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1405: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_init_join':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1365: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_join_group':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1415: undefined reference to `acm_send_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1416: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_ep_join':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1427: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1437: undefined reference to `acm_get_gid'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1444: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_handle_event':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1472: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_port_join':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1452: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1462: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_acquire_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:374: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:376: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:387: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:383: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_remove_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:362: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_alloc_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:325: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:320: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_add_addr':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2389: undefined reference to `acm_get_gid'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2403: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2383: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1806: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1808: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1849: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1823: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1824: undefined reference to `acm_increment_counter'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1839: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_send_resolve':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1660: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_init_send_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:485: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_send_resolve':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1690: undefined reference to `acm_increment_counter'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1829: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1830: undefined reference to `acm_increment_counter'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_acquire_sgid':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1772: undefined reference to `ib_any_gid'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1787: undefined reference to `acm_if_get_sgid'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_path':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1917: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1905: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_record_path_addr':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:861: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:869: undefined reference to `ib_any_gid'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_path':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1909: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_dest':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1812: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_resolve_path':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1899: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1900: undefined reference to `acm_increment_counter'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_send_resolve':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1663: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_open_endpoint':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2526: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_alloc_ep':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2484: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_get_port':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2420: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_parse_hosts_file':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2278: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2322: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_parse_osm_fullv1_paths':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2104: undefined reference to `acm_get_gid'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2224: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_ep_preload':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2339: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_post_recvs':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2019: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_parse_hosts_file':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2280: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_parse_osm_fullv1':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2237: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2181: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_acm_recv':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1189: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1191: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1192: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1194: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1207: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_addr_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1068: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_validate_addr_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:883: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_addr_req':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1070: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1202: more undefined references to `acm_write' follow
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_process_timeouts':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1494: undefined reference to `acm_format_name'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1496: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_retry_handler':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1546: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `provider_query':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2928: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_set_dest_addr':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:297: undefined reference to `acm_format_name'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_query':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1648: undefined reference to `acm_query_response'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_send_addr_resp':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:906: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_join_group':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1417: undefined reference to `acm_free_sa_mad'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:1401: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_set_options':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2834: undefined reference to `acm_get_opts_file'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2867: undefined reference to `acm_convert_mtu'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2869: undefined reference to `acm_convert_rate'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o: In function `acmp_log_options':
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2885: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2886: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2887: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2888: undefined reference to `acm_write'
[ 28s] /home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2889: undefined reference to `acm_write'
[ 28s] ibacm/CMakeFiles/ibacmp.dir/prov/acmp/src/acmp.c.o:/home/abuild/rpmbuild/BUILD/rdma-core-rdma-core-12/ibacm/prov/acmp/src/acmp.c:2890: more undefined references to `acm_write' follow
[ 28s] collect2: error: ld returned 1 exit status
[ 28s] ninja: build stopped: subcommand failed.
[ 28s] error: Bad exit status from /var/tmp/rpm-tmp.ZFAdoS (%build)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread[parent not found: <20170309102527.3ni4pkuendwzqzrm-TXhXIaCUHZEYitT5tn2FcQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309102527.3ni4pkuendwzqzrm-TXhXIaCUHZEYitT5tn2FcQ@public.gmane.org> @ 2017-03-09 17:10 ` Jason Gunthorpe [not found] ` <20170309171014.GC12694-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-09 17:10 UTC (permalink / raw) To: Philipp Thomas; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA On Thu, Mar 09, 2017 at 11:25:27AM +0100, Philipp Thomas wrote: > I'm trying to build latest rdma-core but it fails in ibacm because a > library is missing: The suse cmake rpm macros are broken, this is worked around in the shipped rdma-core.spec: # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style # module libraries (eg ibacmp). %define CMAKE_FLAGS -DCMAKE_MODULE_LINKER_FLAGS="" Ideally you would consult internally to globally fix the rpm cmake macro, otherwise you have to use the above hack.. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20170309171014.GC12694-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309171014.GC12694-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-03-09 22:35 ` Bart Van Assche [not found] ` <1489098918.2597.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Bart Van Assche @ 2017-03-09 22:35 UTC (permalink / raw) To: pth-l3A5Bk7waGM@public.gmane.org, jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, 2017-03-09 at 10:10 -0700, Jason Gunthorpe wrote: > On Thu, Mar 09, 2017 at 11:25:27AM +0100, Philipp Thomas wrote: > > > I'm trying to build latest rdma-core but it fails in ibacm because a > > library is missing: > > The suse cmake rpm macros are broken, this is worked around in the > shipped rdma-core.spec: > > # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags > # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style > # module libraries (eg ibacmp). > %define CMAKE_FLAGS -DCMAKE_MODULE_LINKER_FLAGS="" > > Ideally you would consult internally to globally fix the rpm cmake > macro, otherwise you have to use the above hack.. Something else is also broken, namely the SuSE section in rdma-core.spec. I just figured out that the following is needed to build an RPM on SuSE systems: diff --git a/rdma-core.spec b/rdma-core.spec index f7a440d7..aa486371 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -28,7 +28,7 @@ BuildRequires: ninja,make %define __builder ninja # cmake_install,make_jobs is specified by opensuse %define cmake cmake -%define cmake_install DESTDIR=%{buildroot} ninja install +%define cmake_install DESTDIR=%{buildroot} make install # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <1489098918.2597.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <1489098918.2597.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> @ 2017-03-09 22:49 ` Jason Gunthorpe [not found] ` <20170309224904.GA5867-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-09 22:49 UTC (permalink / raw) To: Bart Van Assche Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Mar 09, 2017 at 10:35:30PM +0000, Bart Van Assche wrote: > On Thu, 2017-03-09 at 10:10 -0700, Jason Gunthorpe wrote: > > On Thu, Mar 09, 2017 at 11:25:27AM +0100, Philipp Thomas wrote: > > > > > I'm trying to build latest rdma-core but it fails in ibacm because a > > > library is missing: > > > > The suse cmake rpm macros are broken, this is worked around in the > > shipped rdma-core.spec: > > > > # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags > > # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style > > # module libraries (eg ibacmp). > > %define CMAKE_FLAGS -DCMAKE_MODULE_LINKER_FLAGS="" > > > > Ideally you would consult internally to globally fix the rpm cmake > > macro, otherwise you have to use the above hack.. > > Something else is also broken, namely the SuSE section in rdma-core.spec. I > just figured out that the following is needed to build an RPM on SuSE systems: > > diff --git a/rdma-core.spec b/rdma-core.spec > index f7a440d7..aa486371 100644 > +++ b/rdma-core.spec > @@ -28,7 +28,7 @@ BuildRequires: ninja,make > %define __builder ninja > # cmake_install,make_jobs is specified by opensuse > %define cmake cmake > -%define cmake_install DESTDIR=%{buildroot} ninja install > +%define cmake_install DESTDIR=%{buildroot} make install I'm not sure what tree you are looking at? The above '-' line never appeared in mainline? The opensuse rpm macros themselves are supposed to provide cmake_install, so the spec file should not define it. Did they change their macros again or something? We provide it for the RH cases because they use a different cmake rpm macro set. :( Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20170309224904.GA5867-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309224904.GA5867-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-03-09 22:53 ` Bart Van Assche [not found] ` <1489099998.2597.16.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Bart Van Assche @ 2017-03-09 22:53 UTC (permalink / raw) To: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, 2017-03-09 at 15:49 -0700, Jason Gunthorpe wrote: > On Thu, Mar 09, 2017 at 10:35:30PM +0000, Bart Van Assche wrote: > > Something else is also broken, namely the SuSE section in rdma-core.spec. I > > just figured out that the following is needed to build an RPM on SuSE systems: > > > > diff --git a/rdma-core.spec b/rdma-core.spec > > index f7a440d7..aa486371 100644 > > +++ b/rdma-core.spec > > @@ -28,7 +28,7 @@ BuildRequires: ninja,make > > %define __builder ninja > > # cmake_install,make_jobs is specified by opensuse > > %define cmake cmake > > -%define cmake_install DESTDIR=%{buildroot} ninja install > > +%define cmake_install DESTDIR=%{buildroot} make install > > I'm not sure what tree you are looking at? The above '-' line never > appeared in mainline? > > The opensuse rpm macros themselves are supposed to provide > cmake_install, so the spec file should not define it. Did they change > their macros again or something? > > We provide it for the RH cases because they use a different cmake rpm > macro set. :( Hello Jason, Sorry, I used the wrong base for the diff command. How about the patch below to fix the SuSE build: diff --git a/rdma-core.spec b/rdma-core.spec index 6519bc37..aa486371 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -27,6 +27,8 @@ BuildRequires: valgrind-devel BuildRequires: ninja,make %define __builder ninja # cmake_install,make_jobs is specified by opensuse +%define cmake cmake +%define cmake_install DESTDIR=%{buildroot} make install # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style Thanks, Bart.-- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <1489099998.2597.16.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <1489099998.2597.16.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> @ 2017-03-09 23:04 ` Jason Gunthorpe [not found] ` <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-09 23:04 UTC (permalink / raw) To: Bart Van Assche Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Mar 09, 2017 at 10:53:31PM +0000, Bart Van Assche wrote: > Sorry, I used the wrong base for the diff command. How about the patch below > to fix the SuSE build: Are you using an older suse? I just updated my tumbleweed image and it built fine with HEAD. What is in your /etc/rpm/macros.cmake? All the suse's I looked at have this in that file: %cmake_install \ DESTDIR=%{buildroot} %__builder install -C %__builddir It comes from here (tumbleweed): builder-40f0d1607cec:/etc/rpm # rpm -qf /etc/rpm/macros.cmake cmake-3.7.2-1.1.x86_64 (13.2): bash-4.2# rpm -qf /etc/rpm/macros.cmake cmake-3.0.2-6.1.x86_64 ? I also checked and it built OK on OpenSuse 13.2 So.. I'm confused what we are trying to fix here? :) Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-03-09 23:12 ` Bart Van Assche [not found] ` <1489101151.2597.18.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Bart Van Assche @ 2017-03-09 23:12 UTC (permalink / raw) To: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, 2017-03-09 at 16:04 -0700, Jason Gunthorpe wrote: > On Thu, Mar 09, 2017 at 10:53:31PM +0000, Bart Van Assche wrote: > > Sorry, I used the wrong base for the diff command. How about the patch below > > to fix the SuSE build: > > Are you using an older suse? I just updated my tumbleweed image and it > built fine with HEAD. > > What is in your /etc/rpm/macros.cmake? All the suse's I looked at have > this in that file: > > %cmake_install \ > DESTDIR=%{buildroot} %__builder install -C %__builddir > > It comes from here (tumbleweed): > > builder-40f0d1607cec:/etc/rpm # rpm -qf /etc/rpm/macros.cmake > cmake-3.7.2-1.1.x86_64 > > (13.2): > > bash-4.2# rpm -qf /etc/rpm/macros.cmake > cmake-3.0.2-6.1.x86_64 > > ? > > I also checked and it built OK on OpenSuse 13.2 > > So.. I'm confused what we are trying to fix here? :) Hello Jason, Without that patch building an RPM fails against a recent version of Tumbleweed: $ rpm -qf /etc/issue.net openSUSE-release-20170304-1.1.x86_64 $ rpm -qf /etc/rpm/macros.cmake cmake-3.7.2-1.1.x86_64 $ cat ./build-rpm.sh #!/bin/sh name=rdma-core version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) rpmtopdir=$PWD/rpmbuilddir git archive --prefix rdma-core-${version}/ --output ${name}-${version}.tgz HEAD && rm -rf ${rpmtopdir} && mkdir -p ${rpmtopdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} && cp ${name}-${version}.tgz ${rpmtopdir}/SOURCES && rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec $ ./build-rpm.sh [ ... ] -- Build files have been written to: rdma-core/rpmbuilddir/BUILD/rdma-core-13/build + /usr/bin/make -j4 VERBOSE=1 make: *** No targets specified and no makefile found. Stop. error: Bad exit status from /var/tmp/rpm-tmp.4zaz5Y (%build) Bart.-- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1489101151.2597.18.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <1489101151.2597.18.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> @ 2017-03-09 23:23 ` Jason Gunthorpe [not found] ` <20170309232352.GA12387-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-09 23:23 UTC (permalink / raw) To: Bart Van Assche Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Mar 09, 2017 at 11:12:43PM +0000, Bart Van Assche wrote: > Without that patch building an RPM fails against a recent version of > Tumbleweed: I don't get it, it is fine for me - just rebuilt my local docker image from scratch with today's stuff to be certain: $ rpm -qf /etc/issue.net openSUSE-release-20170308-1.1.x86_64 Is your macros.cmake unmodified? ea1f4008e57762c8c422e2562b2bff8f /etc/rpm/macros.cmake It seems like something else is going on with your system, I wonder if your system could have a conflicting rpm macro? The docker image is very minimal... > $ cat ./build-rpm.sh > #!/bin/sh > name=rdma-core > version=$(sed -n 's/^Version:[[:blank:]]*//p' rdma-core.spec) > rpmtopdir=$PWD/rpmbuilddir > git archive --prefix rdma-core-${version}/ --output ${name}-${version}.tgz HEAD && > rm -rf ${rpmtopdir} && > mkdir -p ${rpmtopdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} && > cp ${name}-${version}.tgz ${rpmtopdir}/SOURCES && > rpmbuild --define="%_topdir ${rpmtopdir}" -ba ${name}.spec I ran those commands by hand and had no problem either: [..] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Xgc1tl + umask 022 + cd /home/jgg/rpmbuild/rpmbuilddir/BUILD + /usr/bin/rm -rf /home/jgg/rpmbuild/rpmbuilddir/BUILDROOT/rdma-core-13-1.x86_64 ++ dirname /home/jgg/rpmbuild/rpmbuilddir/BUILDROOT/rdma-core-13-1.x86_64 + /usr/bin/mkdir -p /home/jgg/rpmbuild/rpmbuilddir/BUILDROOT + /usr/bin/mkdir /home/jgg/rpmbuild/rpmbuilddir/BUILDROOT/rdma-core-13-1.x86_64 + cd rdma-core-13 + find . -name CMakeLists.txt -exec sed -i -re '/^[[:blank:]]*[sS][eE][tT][[:blank:]]*\([[:blank:]]*(CMAKE_BUILD_TYPE|CMAKE_COLOR_MAKEFILE|CMAKE_INSTALL_PREFIX|CMAKE_VERBOSE_MAKEFILE).*\)/{s/^/#IGNORE /}' '{}' + + mkdir -p build + cd build + /usr/bin/cmake /home/jgg/rpmbuild/rpmbuilddir/BUILD/rdma-core-13/. -GNinja -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_BUILD_TYPE=RelWithDebInfo '-DCMAKE_C_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_CXX_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_Fortran_FLAGS=-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -DNDEBUG' '-DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' '-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed -Wl,--no-undefined -Wl,-z,now' -DLIB_SUFFIX=64 -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF -DCMAKE_COLOR_MAKEFILE:BOOL=OFF -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_MODULES_INSTALL_DIR=/usr/share/cmake/Modules -DCMAKE_MODULE_LINKER_FLAGS= -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin -DCMAKE_INSTALL_SBINDIR:PATH=/usr/sbin -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib64 -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/usr/com -DCMAKE_INSTALL_INCLUDEDIR:PATH=/usr/include -DCMAKE_INSTALL_INFODIR:PATH=/usr/share/info -DCMAKE_INSTALL_MANDIR:PATH=/usr/share/man -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=/usr/lib/systemd/system -DCMAKE_INSTALL_INITDDIR:PATH=/etc/init.d -DCMAKE_INSTALL_RUNDIR:PATH=/run -DCMAKE_INSTALL_DOCDIR:PATH=/usr/share/doc/packages/rdma-core-13 -DCMAKE_INSTALL_UDEV_RULESDIR:PATH=/usr/lib/udev/rules.d [..] + ninja -v -j8 I don't know what to say.. If you want to duplicate what I am looking at install docker and do: $ buildlib/cbuild build-images tumbleweed $ buildlib/cbuild pkg tumbleweed --run-shell Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <20170309232352.GA12387-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309232352.GA12387-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-03-09 23:47 ` Bart Van Assche [not found] ` <1489103252.2597.20.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Bart Van Assche @ 2017-03-09 23:47 UTC (permalink / raw) To: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, 2017-03-09 at 16:23 -0700, Jason Gunthorpe wrote: > It seems like something else is going on with your system, I wonder if > your system could have a conflicting rpm macro? That might be what's causing trouble ... both /etc/rpm/macros.kde4 and /etc/rpm/macros.qt5 contain the following definition: %make_jobs %{__make} %{?_smp_mflags} VERBOSE=1 How about explicitly defining %make_jobs in the rdma-core spec to work around this? Thanks, Bart.-- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1489103252.2597.20.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <1489103252.2597.20.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> @ 2017-03-09 23:54 ` Jason Gunthorpe [not found] ` <20170309235406.GA16385-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-09 23:54 UTC (permalink / raw) To: Bart Van Assche Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Mar 09, 2017 at 11:47:46PM +0000, Bart Van Assche wrote: > On Thu, 2017-03-09 at 16:23 -0700, Jason Gunthorpe wrote: > > It seems like something else is going on with your system, I wonder if > > your system could have a conflicting rpm macro? > > That might be what's causing trouble ... both /etc/rpm/macros.kde4 and > /etc/rpm/macros.qt5 contain the following definition: Gurk. That seems like another suse bug :( > %make_jobs %{__make} %{?_smp_mflags} VERBOSE=1 > > How about explicitly defining %make_jobs in the rdma-core spec to work > around this? Yes, I think so, like this? diff --git a/rdma-core.spec b/rdma-core.spec index 6519bc370a230a..df65745ff9c468 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -26,7 +26,9 @@ BuildRequires: valgrind-devel # SuSE releases have it, and sometime around cmake 3.3.2-1.2 the macros learned to use it. BuildRequires: ninja,make %define __builder ninja -# cmake_install,make_jobs is specified by opensuse +# cmake_install is specified by opensuse. It also specifies make_jobs, but it +# doesn't work with __builder as other rpm macro packages define it too. +%define make_jobs ninja-build -v %{?_smp_mflags} # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <20170309235406.GA16385-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>]
* Re: libacm fails to build [not found] ` <20170309235406.GA16385-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> @ 2017-03-09 23:58 ` Bart Van Assche [not found] ` <1489103888.2597.21.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Bart Van Assche @ 2017-03-09 23:58 UTC (permalink / raw) To: jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, 2017-03-09 at 16:54 -0700, Jason Gunthorpe wrote: > Yes, I think so, like this? > > diff --git a/rdma-core.spec b/rdma-core.spec > index 6519bc370a230a..df65745ff9c468 100644 > --- a/rdma-core.spec > +++ b/rdma-core.spec > @@ -26,7 +26,9 @@ BuildRequires: valgrind-devel > # SuSE releases have it, and sometime around cmake 3.3.2-1.2 the macros learned to use it. > BuildRequires: ninja,make > %define __builder ninja > -# cmake_install,make_jobs is specified by opensuse > +# cmake_install is specified by opensuse. It also specifies make_jobs, but it > +# doesn't work with __builder as other rpm macro packages define it too. > +%define make_jobs ninja-build -v %{?_smp_mflags} > > # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags > # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style If ninja-build is changed into ninja or %{__builder} then I agree :-) Thanks, Bart.-- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1489103888.2597.21.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>]
* Re: libacm fails to build [not found] ` <1489103888.2597.21.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org> @ 2017-03-10 18:43 ` Jason Gunthorpe 0 siblings, 0 replies; 12+ messages in thread From: Jason Gunthorpe @ 2017-03-10 18:43 UTC (permalink / raw) To: Bart Van Assche Cc: pth-l3A5Bk7waGM@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Thu, Mar 09, 2017 at 11:58:21PM +0000, Bart Van Assche wrote: > On Thu, 2017-03-09 at 16:54 -0700, Jason Gunthorpe wrote: > > Yes, I think so, like this? > > > > diff --git a/rdma-core.spec b/rdma-core.spec > > index 6519bc370a230a..df65745ff9c468 100644 > > +++ b/rdma-core.spec > > @@ -26,7 +26,9 @@ BuildRequires: valgrind-devel > > # SuSE releases have it, and sometime around cmake 3.3.2-1.2 the macros learned to use it. > > BuildRequires: ninja,make > > %define __builder ninja > > -# cmake_install,make_jobs is specified by opensuse > > +# cmake_install is specified by opensuse. It also specifies make_jobs, but it > > +# doesn't work with __builder as other rpm macro packages define it too. > > +%define make_jobs ninja-build -v %{?_smp_mflags} > > > > # Tumbleweed's cmake RPM macro adds -Wl,--no-undefined to the module flags > > # which is totally inappropriate and breaks building 'ENABLE_EXPORTS' style > > If ninja-build is changed into ninja or %{__builder} then I agree :-) done https://github.com/linux-rdma/rdma-core/pull/92 Thanks Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2017-03-10 18:43 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 10:25 libacm fails to build Philipp Thomas
[not found] ` <20170309102527.3ni4pkuendwzqzrm-TXhXIaCUHZEYitT5tn2FcQ@public.gmane.org>
2017-03-09 17:10 ` Jason Gunthorpe
[not found] ` <20170309171014.GC12694-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 22:35 ` Bart Van Assche
[not found] ` <1489098918.2597.12.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 22:49 ` Jason Gunthorpe
[not found] ` <20170309224904.GA5867-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 22:53 ` Bart Van Assche
[not found] ` <1489099998.2597.16.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:04 ` Jason Gunthorpe
[not found] ` <20170309230453.GA7844-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:12 ` Bart Van Assche
[not found] ` <1489101151.2597.18.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:23 ` Jason Gunthorpe
[not found] ` <20170309232352.GA12387-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:47 ` Bart Van Assche
[not found] ` <1489103252.2597.20.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-09 23:54 ` Jason Gunthorpe
[not found] ` <20170309235406.GA16385-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-03-09 23:58 ` Bart Van Assche
[not found] ` <1489103888.2597.21.camel-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2017-03-10 18:43 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox