config/arm: replace native machine args
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): VI1PR0802MB2351266D8800FB6D9DD793669E839@VI1PR0802MB2351.eurprd08.prod.outlook.com
A message that is not in the archive (sent off-list or not yet received): BYAPR18MB2424C498BFE1BC89AC887A98C89E9@BYAPR18MB2424.namprd18.prod.outlook.com
A message that is not in the archive (sent off-list or not yet received): AM5PR0802MB2465B9E1ADC6959EBD24B09E9E9A9@AM5PR0802MB2465.eurprd08.prod.outlook.com
Quoted 194 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Monday, March 1, 2021 11:10 AM
To: Jerin Jacob Kollanukkaran <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsExternal Email
----------------------------------------------------------------------
Quoted 167 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Thursday, February 25, 2021 8:15 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 10 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Saturday, February 20, 2021 9:13 AM
To: Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 45 lines
External Email
--------------------------------------------------------------------
--Quoted 41 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Friday, February 19, 2021 8:10 PM
To: Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 31 lines
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Friday, February 19, 2021 12:33 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 20.11] config/arm: replace native machine argsQuoted 21 lines · Juraj Linkeš
Quoted 21 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, February 19, 2021 11:58 AM
To: [email protected]
Cc: Juraj Linkeš <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH 20.11] config/arm: replace native machine argsFrom: Juraj Linkeš <[email protected]>
[ backported from upstream commit
9186e5a07f35ae74a1f7fa2d89671b5f77eae407]There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function ‘crcr32_folding_round’:/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1:error:
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
inlining failed in call to
always_inline‘vmull_p64’:
target specific option mismatch
vmull_p64(poly64_ta,poly64_tb)../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1)));and clang:
gcc -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS
clang-9 -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS<no output> # no clang supportFix this by always specifying the proper machine args and never using the native flags.
Fixes 78ac8eac7e8a ("config/arm: use native machine buildarguments")
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Juraj Linkeš <[email protected]>Signed-off-by Luca Boccassi <[email protected]>---
This is a crude backport, but it fixes the build for arm64. It's a release blocker for 20.11.1, so I would appreciate a quickreview.
Quoted 33 lines
Quoted 33 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Thanks!
What does this fix? With or without the below change, the native machine
Quoted 9 lines
args are not used. The patch shoudn't actually change the configuration of the build at all, so I'm a bit confused.
It fixes the build on some build workers with thunderx hardware
- without this I get failures like:arm_neon.h:26647:1: error: inlining failed in call to '
always_inline' 'vmull_p64': target specific option mismatchI tried the patch and I'm seeing the same errors on a ThunderX server (with and without the patch). Is this actually the right patch?
One of the four failures looks like this:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function 'crcr32_folding_round':/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error:
inlining failed in call toalways_inline'vmull_p64': target specific option mismatch
vmull_p64(poly64_ta,poly64_tb) ^~~~~~~~~../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Quoted 7 lines
Quoted 1 line
Ruifeng, any ideas on how to fix this?
Gcc build on ThunderX platform is broken. Issue can be seen in some CentOS-8 OBS builds.
https://urldefense.proofpoint.com/v2/url?u=https-
3A__mails.dpdk.org_archives_dev_2020-2DNovember_192909.html&d=DwIGaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=1 DG
Quoted 1 line
ob4H4rxz6H8uITozGOCa0s5f4wCNtTa4UUKvcsvI&m=mgzJ6z43dsDFwI6rdgKC Uj
Quoted 6 lines
0GCMNjEKQAa7dfRZxvrdU&s=UWUJTFdGC2mD2x-rcuRnH1I7- 1jKFC40Bh5hFanzu0A&e=
I tried tuning compiler flags used, but could not resolve the issue.Need help from Marvell to look at this. Hi Jerin, do you have any thoughts on this?
Ruifeng, If you are able to reproduce this issue, Could you add "- march=armv8.1-a+crc+crypto" In ThunderX config and check is this Fixing the issue?
[main] [dpdk.org] $ git diff
config/arm/meson.build index renamed from config/arm/meson.build +0
-0
00bc4610a..ef65b4bb6100644config/arm/meson.build +3
-2@@ -96,15 +96,18 @@ implementer_cavium = { ], 'part_number_config': { '0xa1': { - 'machine_args': ['-mcpu=thunderxt88'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt88'], 'flags': flags_part_number_thunderx }, '0xa2': { - 'machine_args': ['-mcpu=thunderxt81'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse',config/arm/meson.build implementer_cavium = { · line 113
Quoted 10 lines
config/arm/meson.build +3
-1+ '-mcpu=thunderxt81'], 'flags': flags_part_number_thunderx }, '0xa3': { - 'machine_args': ['-mcpu=thunderxt83'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt83'], 'flags': flags_part_number_thunderx }, '0xaf': {Hi Jerin,
Quoted 2 lines
The patch doesn't work. Build failed at link stage. I used gcc 8.4 and tried build on thunderxt88.
Hi Ruifeng,
I talked to compiler experts here in Marvell. It looks like compiler issue, As a workaround couple of these could try:
1) Reduce the external libraries linked to the application like mlx5 etc
2) Add -mcmodel=large flag will fix "relocation truncated to fit" issue as testing purpose as we are not sure about the implication of this flag.
Quoted 175 lines
Logs as below:
[2513/2527] Linking target app/test/dpdk-test
FAILED: app/test/dpdk-test
cc -o app/test/dpdk-testapp/test/dpdk-test.p/commands.c.oapp/test/dpdk-test.p/packet_burst_generator.c.oapp/test/dpdk-test.p/test.c.oapp/test/dpdk-test.p/test_acl.c.oapp/test/dpdk-test.p/test_alarm.c.oapp/test/dpdk-test.p/test_atomic.c.oapp/test/dpdk-test.p/test_barrier.c.oapp/test/dpdk-test.p/test_bitops.c.oapp/test/dpdk-test.p/test_bitmap.c.oapp/test/dpdk-test.p/test_bpf.c.oapp/test/dpdk-test.p/test_byteorder.c.oapp/test/dpdk-test.p/test_cmdline.c.oapp/test/dpdk-test.p/test_cmdline_cirbuf.c.oapp/test/dpdk-test.p/test_cmdline_etheraddr.c.oapp/test/dpdk-test.p/test_cmdline_ipaddr.c.oapp/test/dpdk-test.p/test_cmdline_lib.c.oapp/test/dpdk-test.p/test_cmdline_num.c.oapp/test/dpdk-test.p/test_cmdline_portlist.c.oapp/test/dpdk-test.p/test_cmdline_string.c.oapp/test/dpdk-test.p/test_common.c.oapp/test/dpdk-test.p/test_cpuflags.c.oapp/test/dpdk-test.p/test_crc.c.oapp/test/dpdk-test.p/test_cryptodev.c.oapp/test/dpdk-test.p/test_cryptodev_asym.c.oapp/test/dpdk-test.p/test_cryptodev_blockcipher.c.oapp/test/dpdk-test.p/test_cryptodev_security_pdcp.c.oapp/test/dpdk-test.p/test_cycles.c.oapp/test/dpdk-test.p/test_debug.c.oapp/test/dpdk-test.p/test_distributor.c.oapp/test/dpdk-test.p/test_distributor_perf.c.oapp/test/dpdk-test.p/test_eal_flags.c.oapp/test/dpdk-test.p/test_eal_fs.c.oapp/test/dpdk-test.p/test_efd.c.oapp/test/dpdk-test.p/test_efd_perf.c.oapp/test/dpdk-test.p/test_errno.c.oapp/test/dpdk-test.p/test_ethdev_link.c.oapp/test/dpdk-test.p/test_event_crypto_adapter.c.oapp/test/dpdk-test.p/test_event_eth_rx_adapter.c.oapp/test/dpdk-test.p/test_event_ring.c.oapp/test/dpdk-test.p/test_event_timer_adapter.c.oapp/test/dpdk-test.p/test_eventdev.c.oapp/test/dpdk-test.p/test_external_mem.c.oapp/test/dpdk-test.p/test_fbarray.c.oapp/test/dpdk-test.p/test_fib.c.oapp/test/dpdk-test.p/test_fib_perf.c.oapp/test/dpdk-test.p/test_fib6.c.oapp/test/dpdk-test.p/test_fib6_perf.c.oapp/test/dpdk-test.p/test_func_reentrancy.c.oapp/test/dpdk-test.p/test_flow_classify.c.oapp/test/dpdk-test.p/test_graph.c.oapp/test/dpdk-test.p/test_graph_perf.c.oapp/test/dpdk-test.p/test_hash.c.oapp/test/dpdk-test.p/test_hash_functions.c.oapp/test/dpdk-test.p/test_hash_multiwriter.c.oapp/test/dpdk-test.p/test_hash_readwrite.c.oapp/test/dpdk-test.p/test_hash_perf.c.oapp/test/dpdk-test.p/test_hash_readwrite_lf_perf.c.oapp/test/dpdk-test.p/test_interrupts.c.oapp/test/dpdk-test.p/test_ipfrag.c.oapp/test/dpdk-test.p/test_ipsec.c.oapp/test/dpdk-test.p/test_ipsec_sad.c.oapp/test/dpdk-test.p/test_ipsec_perf.c.oapp/test/dpdk-test.p/test_kni.c.oapp/test/dpdk-test.p/test_kvargs.c.oapp/test/dpdk-test.p/test_lcores.c.oapp/test/dpdk-test.p/test_logs.c.oapp/test/dpdk-test.p/test_lpm.c.oapp/test/dpdk-test.p/test_lpm6.c.oapp/test/dpdk-test.p/test_lpm6_perf.c.oapp/test/dpdk-test.p/test_lpm_perf.c.oapp/test/dpdk-test.p/test_malloc.c.oapp/test/dpdk-test.p/test_mbuf.c.oapp/test/dpdk-test.p/test_member.c.oapp/test/dpdk-test.p/test_member_perf.c.oapp/test/dpdk-test.p/test_memcpy.c.oapp/test/dpdk-test.p/test_memcpy_perf.c.oapp/test/dpdk-test.p/test_memory.c.oapp/test/dpdk-test.p/test_mempool.c.oapp/test/dpdk-test.p/test_mempool_perf.c.oapp/test/dpdk-test.p/test_memzone.c.oapp/test/dpdk-test.p/test_meter.c.oapp/test/dpdk-test.p/test_metrics.c.oapp/test/dpdk-test.p/test_mcslock.c.oapp/test/dpdk-test.p/test_mp_secondary.c.oapp/test/dpdk-test.p/test_per_lcore.c.oapp/test/dpdk-test.p/test_pmd_perf.c.oapp/test/dpdk-test.p/test_power.c.oapp/test/dpdk-test.p/test_power_cpufreq.c.oapp/test/dpdk-test.p/test_power_kvm_vm.c.oapp/test/dpdk-test.p/test_prefetch.c.oapp/test/dpdk-test.p/test_rand_perf.c.oapp/test/dpdk-test.p/test_rawdev.c.oapp/test/dpdk-test.p/test_rcu_qsbr.c.oapp/test/dpdk-test.p/test_rcu_qsbr_perf.c.oapp/test/dpdk-test.p/test_reciprocal_division.c.oapp/test/dpdk-test.p/test_reciprocal_division_perf.c.oapp/test/dpdk-test.p/test_red.c.oapp/test/dpdk-test.p/test_reorder.c.oapp/test/dpdk-test.p/test_rib.c.oapp/test/dpdk-test.p/test_rib6.c.oapp/test/dpdk-test.p/test_ring.c.oapp/test/dpdk-test.p/test_ring_mpmc_stress.c.oapp/test/dpdk-test.p/test_ring_hts_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_perf.c.oapp/test/dpdk-test.p/test_ring_rts_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_stress.c.oapp/test/dpdk-test.p/test_rwlock.c.oapp/test/dpdk-test.p/test_sched.c.oapp/test/dpdk-test.p/test_security.c.oapp/test/dpdk-test.p/test_service_cores.c.oapp/test/dpdk-test.p/test_spinlock.c.oapp/test/dpdk-test.p/test_stack.c.oapp/test/dpdk-test.p/test_stack_perf.c.oapp/test/dpdk-test.p/test_string_fns.c.oapp/test/dpdk-test.p/test_table.c.oapp/test/dpdk-test.p/test_table_acl.c.oapp/test/dpdk-test.p/test_table_combined.c.oapp/test/dpdk-test.p/test_table_pipeline.c.oapp/test/dpdk-test.p/test_table_ports.c.oapp/test/dpdk-test.p/test_table_tables.c.oapp/test/dpdk-test.p/test_tailq.c.oapp/test/dpdk-test.p/test_thash.c.oapp/test/dpdk-test.p/test_timer.c.oapp/test/dpdk-test.p/test_timer_perf.c.oapp/test/dpdk-test.p/test_timer_racecond.c.oapp/test/dpdk-test.p/test_timer_secondary.c.oapp/test/dpdk-test.p/test_ticketlock.c.oapp/test/dpdk-test.p/test_trace.c.oapp/test/dpdk-test.p/test_trace_register.c.oapp/test/dpdk-test.p/test_trace_perf.c.oapp/test/dpdk-test.p/test_version.c.oapp/test/dpdk-test.p/virtual_pmd.c.oapp/test/dpdk-test.p/test_telemetry_json.c.oapp/test/dpdk-test.p/test_telemetry_data.c.oapp/test/dpdk-test.p/test_link_bonding.c.oapp/test/dpdk-test.p/test_link_bonding_rssconf.c.oapp/test/dpdk-test.p/test_link_bonding_mode4.c.oapp/test/dpdk-test.p/test_pmd_ring_perf.c.oapp/test/dpdk-test.p/test_pmd_ring.c.oapp/test/dpdk-test.p/test_event_eth_tx_adapter.c.oapp/test/dpdk-test.p/test_bitratestats.c.oapp/test/dpdk-test.p/test_latencystats.c.oapp/test/dpdk-test.p/sample_packet_forward.c.oapp/test/dpdk-test.p/test_pdump.c.oapp/test/dpdk-test.p/test_compressdev.c.o-Wl,--as- needed -Wl,--no-undefined -Wl,-O1 -Wl,--whole-archive -Wl,--start-grouplib/librte_node.alib/librte_graph.alib/librte_bpf.alib/librte_flow_classify.alib/librte_pipeline.alib/librte_table.alib/librte_port.alib/librte_fib.alib/librte_ipsec.alib/librte_vhost.alib/librte_stack.alib/librte_security.alib/librte_sched.alib/librte_reorder.alib/librte_rib.alib/librte_regexdev.alib/librte_rawdev.alib/librte_pdump.alib/librte_power.alib/librte_member.alib/librte_lpm.alib/librte_latencystats.alib/librte_kni.alib/librte_jobstats.alib/librte_ip_frag.alib/librte_gso.alib/librte_gro.alib/librte_eventdev.alib/librte_efd.alib/librte_distributor.alib/librte_cryptodev.alib/librte_compressdev.alib/librte_cfgfile.alib/librte_bitratestats.alib/librte_bbdev.alib/librte_acl.alib/librte_timer.alib/librte_hash.alib/librte_metrics.alib/librte_cmdline.alib/librte_pci.alib/librte_ethdev.alib/librte_meter.alib/librte_net.alib/librte_mbuf.alib/librte_mempool.alib/librte_rcu.alib/librte_ring.alib/librte_eal.alib/librte_telemetry.alib/librte_kvargs.adrivers/librte_common_cpt.adrivers/librte_common_dpaax.adrivers/librte_common_iavf.adrivers/librte_common_octeontx.adrivers/librte_common_octeontx2.adrivers/librte_common_sfc_efx.adrivers/librte_bus_dpaa.adrivers/librte_bus_fslmc.adrivers/librte_bus_ifpga.adrivers/librte_bus_pci.adrivers/librte_bus_vdev.adrivers/librte_bus_vmbus.adrivers/librte_common_mlx5.adrivers/librte_common_qat.adrivers/librte_mempool_bucket.adrivers/librte_mempool_dpaa.adrivers/librte_mempool_dpaa2.adrivers/librte_mempool_octeontx.adrivers/librte_mempool_octeontx2.adrivers/librte_mempool_ring.adrivers/librte_mempool_stack.adrivers/librte_net_af_packet.adrivers/librte_net_ark.adrivers/librte_net_atlantic.adrivers/librte_net_avp.adrivers/librte_net_axgbe.adrivers/librte_net_bond.adrivers/librte_net_bnx2x.adrivers/librte_net_bnxt.adrivers/librte_net_cxgbe.adrivers/librte_net_dpaa.adrivers/librte_net_dpaa2.adrivers/librte_net_e1000.adrivers/librte_net_ena.adrivers/librte_net_enetc.adrivers/librte_net_enic.adrivers/librte_net_failsafe.adrivers/librte_net_fm10k.adrivers/librte_net_i40e.adrivers/librte_net_hinic.adrivers/librte_net_hns3.adrivers/librte_net_iavf.adrivers/librte_net_ice.adrivers/librte_net_igc.adrivers/librte_net_ionic.adrivers/librte_net_ixgbe.adrivers/librte_net_kni.adrivers/librte_net_liquidio.adrivers/librte_net_memif.adrivers/librte_net_mlx4.adrivers/librte_net_mlx5.adrivers/librte_net_netvsc.adrivers/librte_net_nfp.adrivers/librte_net_null.adrivers/librte_net_octeontx.adrivers/librte_net_octeontx2.adrivers/librte_net_octeontx_ep.adrivers/librte_net_pfe.adrivers/librte_net_qede.adrivers/librte_net_ring.adrivers/librte_net_sfc.adrivers/librte_net_softnic.adrivers/librte_net_tap.adrivers/librte_net_thunderx.adrivers/librte_net_txgbe.adrivers/librte_net_vdev_netvsc.adrivers/librte_net_vhost.adrivers/librte_net_virtio.adrivers/librte_net_vmxnet3.adrivers/librte_raw_dpaa2_cmdif.adrivers/librte_raw_dpaa2_qdma.adrivers/librte_raw_ntb.adrivers/librte_raw_octeontx2_dma.adrivers/librte_raw_octeontx2_ep.adrivers/librte_raw_skeleton.adrivers/librte_crypto_bcmfs.adrivers/librte_crypto_caam_jr.adrivers/librte_crypto_ccp.adrivers/librte_crypto_dpaa_sec.adrivers/librte_crypto_dpaa2_sec.adrivers/librte_crypto_nitrox.adrivers/librte_crypto_null.adrivers/librte_crypto_octeontx.adrivers/librte_crypto_octeontx2.adrivers/librte_crypto_openssl.adrivers/librte_crypto_scheduler.adrivers/librte_crypto_virtio.adrivers/librte_compress_mlx5.adrivers/librte_compress_octeontx.adrivers/librte_compress_zlib.adrivers/librte_regex_mlx5.adrivers/librte_regex_octeontx2.adrivers/librte_vdpa_ifc.adrivers/librte_vdpa_mlx5.adrivers/librte_event_dpaa.adrivers/librte_event_dpaa2.adrivers/librte_event_octeontx2.adrivers/librte_event_opdl.adrivers/librte_event_skeleton.adrivers/librte_event_sw.adrivers/librte_event_dsw.adrivers/librte_event_octeontx.adrivers/librte_baseband_null.adrivers/librte_baseband_turbo_sw.adrivers/librte_baseband_fpga_lte_fec.adrivers/librte_baseband_fpga_5gnr_fec.adrivers/librte_baseband_acc100.a- Wl,--no-whole-archive -Wl,--no-as-needed -pthread -lm -ldl -lnuma/usr/lib/aarch64-linux-gnu/libz.so-lmlx5 -libverbs/usr/lib/aarch64-linux-gnu/libcrypto.so -lmlx4 -libverbs -lmlx5 -libverbs -lmlx5 -libverbs -lmlx5 - libverbs -lmlx5 -libverbs -Wl,--end-group -Wl,- rpath,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXapp/test/dpdk-test.p/test_hash_perf.c.o: In function `test_hash_perf':
test_hash_perf.c:(.text+0x1c74): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x1d8c): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x2508): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss'
collect2: error: ld returned 1 exit status [2527/2527] Linking target app/dpdk- test-bbdev
ninja: build stopped: subcommand failed.Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--
Kind regards,
Luca Boccassi
Quoted 218 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Sunday, March 7, 2021 9:35 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; [email protected]; [email protected]; Ashwin Sekhar Thalakalath Kottilveetil <[email protected]>; Andrew Pinski <[email protected]>
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 10 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Monday, March 1, 2021 11:10 AM
To: Jerin Jacob Kollanukkaran <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 68 lines
External Email
----------------------------------------------------------------------
Quoted 65 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Thursday, February 25, 2021 8:15 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 56 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Saturday, February 20, 2021 9:13 AM
To: Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsExternal Email
------------------------------------------------------------------
--
--Quoted 41 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Friday, February 19, 2021 8:10 PM
To: Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 30 lines
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Friday, February 19, 2021 12:33 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 20.11] config/arm: replace native machine argsQuoted 20 lines · Juraj Linkeš
Quoted 20 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, February 19, 2021 11:58 AM
To: [email protected]
Cc: Juraj Linkeš <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH 20.11] config/arm: replace native machine argsFrom: Juraj Linkeš <[email protected]>
[ backported from upstream commit
9186e5a07f35ae74a1f7fa2d89671b5f77eae407]There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function‘crcr32_folding_round’:
Quoted 65 lines
Quoted 65 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1:error:
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
inlining failed in call to
always_inline‘vmull_p64’:
target specific option mismatch
vmull_p64(poly64_ta,poly64_tb)../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1)));and clang:
gcc -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS
clang-9 -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS<no output> # no clang supportFix this by always specifying the proper machine args and never using the native flags.
Fixes 78ac8eac7e8a ("config/arm: use native machine buildarguments")
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Juraj Linkeš <[email protected]>Signed-off-by Luca Boccassi <[email protected]>---
This is a crude backport, but it fixes the build for arm64. It's a release blocker for 20.11.1, so I would appreciate a quickreview.
Quoted 36 lines
Quoted 35 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks!
What does this fix? With or without the below change, the native machine
args are not used. The patch shoudn't actually change the configuration of the build at all, so I'm a bit confused.
Quoted 7 lines
It fixes the build on some build workers with thunderx hardware
- without this I get failures like:arm_neon.h:26647:1: error: inlining failed in call to '
always_inline' 'vmull_p64': target specific option mismatchI tried the patch and I'm seeing the same errors on a ThunderX server (with and without the patch). Is this actually the right patch?
One of the four failures looks like this:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function 'crcr32_folding_round':/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error:
inlining failed in call toalways_inline'vmull_p64': target specific option mismatch
vmull_p64(poly64_ta,poly64_tb) ^~~~~~~~~../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Ruifeng, any ideas on how to fix this?
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Gcc build on ThunderX platform is broken. Issue can be seen in some
CentOS-8 OBS builds.
https://urldefense.proofpoint.com/v2/url?u=https-
3A__mails.dpdk.org_archives_dev_2020-2DNovember_192909.html&d=DwIGaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=1
Quoted 3 lines
Quoted 3 lines
DG
Quoted 1 line
ob4H4rxz6H8uITozGOCa0s5f4wCNtTa4UUKvcsvI&m=mgzJ6z43dsDFwI6rdgKC
Quoted 44 lines
Quoted 31 lines
Uj
Quoted 6 lines
0GCMNjEKQAa7dfRZxvrdU&s=UWUJTFdGC2mD2x-rcuRnH1I7- 1jKFC40Bh5hFanzu0A&e=
I tried tuning compiler flags used, but could not resolve the issue.Need help from Marvell to look at this. Hi Jerin, do you have any thoughts on this?
Ruifeng, If you are able to reproduce this issue, Could you add "- march=armv8.1-a+crc+crypto" In ThunderX config and check is this Fixing the issue?
[main] [dpdk.org] $ git diff
config/arm/meson.build index renamed from config/arm/meson.build +0
-0
00bc4610a..ef65b4bb6100644config/arm/meson.build +3
-2@@ -96,15 +96,18 @@ implementer_cavium = { ], 'part_number_config': { '0xa1': { - 'machine_args': ['-mcpu=thunderxt88'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt88'], 'flags': flags_part_number_thunderx }, '0xa2': { - 'machine_args': ['-mcpu=thunderxt81'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse',config/arm/meson.build implementer_cavium = { · line 113
Quoted 10 lines
config/arm/meson.build +3
-1+ '-mcpu=thunderxt81'], 'flags': flags_part_number_thunderx }, '0xa3': { - 'machine_args': ['-mcpu=thunderxt83'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt83'], 'flags': flags_part_number_thunderx }, '0xaf': {Hi Jerin,
Quoted 2 lines
The patch doesn't work. Build failed at link stage. I used gcc 8.4 and tried build on thunderxt88.
Quoted 5 lines
Hi Ruifeng,
I talked to compiler experts here in Marvell. It looks like compiler issue, As a workaround couple of these could try:
1) Reduce the external libraries linked to the application like mlx5 etc
I tried building with lots of drivers disabled. Not yet able to get a successful build.
Quoted 2 lines
2) Add -mcmodel=large flag will fix "relocation truncated to fit" issue as testing purpose as we are not sure about the implication of this flag.
Looks like this flag is not supported by gcc 8.4 that I am using.
One thing we can do to overcome the build failure is to switch to default / release build in OBS CI. OBS CI is running native build, so it could hit this issue when CI job is scheduled to thunderxt88 infrastructure. I think we should change to do release build (-Dmachine=default) which is more suitable for generic CI verification. As I checked, release build can pass on my thunderxt88 platform.
What do you think?
Quoted 232 lines
Quoted 232 lines
Logs as below:
[2513/2527] Linking target app/test/dpdk-test
FAILED: app/test/dpdk-test
cc -o app/test/dpdk-testapp/test/dpdk-test.p/commands.c.oapp/test/dpdk-test.p/packet_burst_generator.c.oapp/test/dpdk-test.p/test.c.oapp/test/dpdk-test.p/test_acl.c.oapp/test/dpdk-test.p/test_alarm.c.oapp/test/dpdk-test.p/test_atomic.c.oapp/test/dpdk-test.p/test_barrier.c.oapp/test/dpdk-test.p/test_bitops.c.oapp/test/dpdk-test.p/test_bitmap.c.oapp/test/dpdk-test.p/test_bpf.c.oapp/test/dpdk-test.p/test_byteorder.c.oapp/test/dpdk-test.p/test_cmdline.c.oapp/test/dpdk-test.p/test_cmdline_cirbuf.c.oapp/test/dpdk-test.p/test_cmdline_etheraddr.c.oapp/test/dpdk-test.p/test_cmdline_ipaddr.c.oapp/test/dpdk-test.p/test_cmdline_lib.c.oapp/test/dpdk-test.p/test_cmdline_num.c.oapp/test/dpdk-test.p/test_cmdline_portlist.c.oapp/test/dpdk-test.p/test_cmdline_string.c.oapp/test/dpdk-test.p/test_common.c.oapp/test/dpdk-test.p/test_cpuflags.c.oapp/test/dpdk-test.p/test_crc.c.oapp/test/dpdk-test.p/test_cryptodev.c.oapp/test/dpdk-test.p/test_cryptodev_asym.c.oapp/test/dpdk-test.p/test_cryptodev_blockcipher.c.oapp/test/dpdk-test.p/test_cryptodev_security_pdcp.c.oapp/test/dpdk-test.p/test_cycles.c.oapp/test/dpdk-test.p/test_debug.c.oapp/test/dpdk-test.p/test_distributor.c.oapp/test/dpdk-test.p/test_distributor_perf.c.oapp/test/dpdk-test.p/test_eal_flags.c.oapp/test/dpdk-test.p/test_eal_fs.c.oapp/test/dpdk-test.p/test_efd.c.oapp/test/dpdk-test.p/test_efd_perf.c.oapp/test/dpdk-test.p/test_errno.c.oapp/test/dpdk-test.p/test_ethdev_link.c.oapp/test/dpdk-test.p/test_event_crypto_adapter.c.oapp/test/dpdk-test.p/test_event_eth_rx_adapter.c.oapp/test/dpdk-test.p/test_event_ring.c.oapp/test/dpdk-test.p/test_event_timer_adapter.c.oapp/test/dpdk-test.p/test_eventdev.c.oapp/test/dpdk-test.p/test_external_mem.c.oapp/test/dpdk-test.p/test_fbarray.c.oapp/test/dpdk-test.p/test_fib.c.oapp/test/dpdk-test.p/test_fib_perf.c.oapp/test/dpdk-test.p/test_fib6.c.oapp/test/dpdk-test.p/test_fib6_perf.c.oapp/test/dpdk-test.p/test_func_reentrancy.c.oapp/test/dpdk-test.p/test_flow_classify.c.oapp/test/dpdk-test.p/test_graph.c.oapp/test/dpdk-test.p/test_graph_perf.c.oapp/test/dpdk-test.p/test_hash.c.oapp/test/dpdk-test.p/test_hash_functions.c.oapp/test/dpdk-test.p/test_hash_multiwriter.c.oapp/test/dpdk-test.p/test_hash_readwrite.c.oapp/test/dpdk-test.p/test_hash_perf.c.oapp/test/dpdk-test.p/test_hash_readwrite_lf_perf.c.oapp/test/dpdk-test.p/test_interrupts.c.oapp/test/dpdk-test.p/test_ipfrag.c.oapp/test/dpdk-test.p/test_ipsec.c.oapp/test/dpdk-test.p/test_ipsec_sad.c.oapp/test/dpdk-test.p/test_ipsec_perf.c.oapp/test/dpdk-test.p/test_kni.c.oapp/test/dpdk-test.p/test_kvargs.c.oapp/test/dpdk-test.p/test_lcores.c.oapp/test/dpdk-test.p/test_logs.c.oapp/test/dpdk-test.p/test_lpm.c.oapp/test/dpdk-test.p/test_lpm6.c.oapp/test/dpdk-test.p/test_lpm6_perf.c.oapp/test/dpdk-test.p/test_lpm_perf.c.oapp/test/dpdk-test.p/test_malloc.c.oapp/test/dpdk-test.p/test_mbuf.c.oapp/test/dpdk-test.p/test_member.c.oapp/test/dpdk-test.p/test_member_perf.c.oapp/test/dpdk-test.p/test_memcpy.c.oapp/test/dpdk-test.p/test_memcpy_perf.c.oapp/test/dpdk-test.p/test_memory.c.oapp/test/dpdk-test.p/test_mempool.c.oapp/test/dpdk-test.p/test_mempool_perf.c.oapp/test/dpdk-test.p/test_memzone.c.oapp/test/dpdk-test.p/test_meter.c.oapp/test/dpdk-test.p/test_metrics.c.oapp/test/dpdk-test.p/test_mcslock.c.oapp/test/dpdk-test.p/test_mp_secondary.c.oapp/test/dpdk-test.p/test_per_lcore.c.oapp/test/dpdk-test.p/test_pmd_perf.c.oapp/test/dpdk-test.p/test_power.c.oapp/test/dpdk-test.p/test_power_cpufreq.c.oapp/test/dpdk-test.p/test_power_kvm_vm.c.oapp/test/dpdk-test.p/test_prefetch.c.oapp/test/dpdk-test.p/test_rand_perf.c.oapp/test/dpdk-test.p/test_rawdev.c.oapp/test/dpdk-test.p/test_rcu_qsbr.c.oapp/test/dpdk-test.p/test_rcu_qsbr_perf.c.oapp/test/dpdk-test.p/test_reciprocal_division.c.oapp/test/dpdk-test.p/test_reciprocal_division_perf.c.oapp/test/dpdk-test.p/test_red.c.oapp/test/dpdk-test.p/test_reorder.c.oapp/test/dpdk-test.p/test_rib.c.oapp/test/dpdk-test.p/test_rib6.c.oapp/test/dpdk-test.p/test_ring.c.oapp/test/dpdk-test.p/test_ring_mpmc_stress.c.oapp/test/dpdk-test.p/test_ring_hts_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_perf.c.oapp/test/dpdk-test.p/test_ring_rts_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_stress.c.oapp/test/dpdk-test.p/test_rwlock.c.oapp/test/dpdk-test.p/test_sched.c.oapp/test/dpdk-test.p/test_security.c.oapp/test/dpdk-test.p/test_service_cores.c.oapp/test/dpdk-test.p/test_spinlock.c.oapp/test/dpdk-test.p/test_stack.c.oapp/test/dpdk-test.p/test_stack_perf.c.oapp/test/dpdk-test.p/test_string_fns.c.oapp/test/dpdk-test.p/test_table.c.oapp/test/dpdk-test.p/test_table_acl.c.oapp/test/dpdk-test.p/test_table_combined.c.oapp/test/dpdk-test.p/test_table_pipeline.c.oapp/test/dpdk-test.p/test_table_ports.c.oapp/test/dpdk-test.p/test_table_tables.c.oapp/test/dpdk-test.p/test_tailq.c.oapp/test/dpdk-test.p/test_thash.c.oapp/test/dpdk-test.p/test_timer.c.oapp/test/dpdk-test.p/test_timer_perf.c.oapp/test/dpdk-test.p/test_timer_racecond.c.oapp/test/dpdk-test.p/test_timer_secondary.c.oapp/test/dpdk-test.p/test_ticketlock.c.oapp/test/dpdk-test.p/test_trace.c.oapp/test/dpdk-test.p/test_trace_register.c.oapp/test/dpdk-test.p/test_trace_perf.c.oapp/test/dpdk-test.p/test_version.c.oapp/test/dpdk-test.p/virtual_pmd.c.oapp/test/dpdk-test.p/test_telemetry_json.c.oapp/test/dpdk-test.p/test_telemetry_data.c.oapp/test/dpdk-test.p/test_link_bonding.c.oapp/test/dpdk-test.p/test_link_bonding_rssconf.c.oapp/test/dpdk-test.p/test_link_bonding_mode4.c.oapp/test/dpdk-test.p/test_pmd_ring_perf.c.oapp/test/dpdk-test.p/test_pmd_ring.c.oapp/test/dpdk-test.p/test_event_eth_tx_adapter.c.oapp/test/dpdk-test.p/test_bitratestats.c.oapp/test/dpdk-test.p/test_latencystats.c.oapp/test/dpdk-test.p/sample_packet_forward.c.oapp/test/dpdk-test.p/test_pdump.c.oapp/test/dpdk-test.p/test_compressdev.c.o(quoted diff) +0
-2-Wl,--as- needed -Wl,--no-undefined -Wl,-O1 -Wl,--whole-archive -Wl,--start-group lib/librte_node.a lib/librte_graph.a
lib/librte_bpf.alib/librte_flow_classify.alib/librte_pipeline.alib/librte_table.alib/librte_port.alib/librte_fib.alib/librte_ipsec.alib/librte_vhost.alib/librte_stack.alib/librte_security.alib/librte_sched.alib/librte_reorder.alib/librte_rib.alib/librte_regexdev.alib/librte_rawdev.alib/librte_pdump.alib/librte_power.alib/librte_member.alib/librte_lpm.alib/librte_latencystats.alib/librte_kni.alib/librte_jobstats.alib/librte_ip_frag.alib/librte_gso.alib/librte_gro.alib/librte_eventdev.alib/librte_efd.alib/librte_distributor.alib/librte_cryptodev.alib/librte_compressdev.alib/librte_cfgfile.alib/librte_bitratestats.alib/librte_bbdev.alib/librte_acl.alib/librte_timer.alib/librte_hash.alib/librte_metrics.alib/librte_cmdline.alib/librte_pci.alib/librte_ethdev.alib/librte_meter.alib/librte_net.alib/librte_mbuf.alib/librte_mempool.alib/librte_rcu.alib/librte_ring.alib/librte_eal.alib/librte_telemetry.alib/librte_kvargs.adrivers/librte_common_cpt.adrivers/librte_common_dpaax.adrivers/librte_common_iavf.adrivers/librte_common_octeontx.adrivers/librte_common_octeontx2.adrivers/librte_common_sfc_efx.adrivers/librte_bus_dpaa.adrivers/librte_bus_fslmc.adrivers/librte_bus_ifpga.adrivers/librte_bus_pci.adrivers/librte_bus_vdev.adrivers/librte_bus_vmbus.adrivers/librte_common_mlx5.adrivers/librte_common_qat.adrivers/librte_mempool_bucket.adrivers/librte_mempool_dpaa.adrivers/librte_mempool_dpaa2.adrivers/librte_mempool_octeontx.adrivers/librte_mempool_octeontx2.adrivers/librte_mempool_ring.adrivers/librte_mempool_stack.adrivers/librte_net_af_packet.adrivers/librte_net_ark.adrivers/librte_net_atlantic.adrivers/librte_net_avp.adrivers/librte_net_axgbe.adrivers/librte_net_bond.adrivers/librte_net_bnx2x.adrivers/librte_net_bnxt.adrivers/librte_net_cxgbe.adrivers/librte_net_dpaa.adrivers/librte_net_dpaa2.adrivers/librte_net_e1000.adrivers/librte_net_ena.adrivers/librte_net_enetc.adrivers/librte_net_enic.adrivers/librte_net_failsafe.adrivers/librte_net_fm10k.adrivers/librte_net_i40e.adrivers/librte_net_hinic.adrivers/librte_net_hns3.adrivers/librte_net_iavf.adrivers/librte_net_ice.adrivers/librte_net_igc.adrivers/librte_net_ionic.adrivers/librte_net_ixgbe.adrivers/librte_net_kni.adrivers/librte_net_liquidio.adrivers/librte_net_memif.adrivers/librte_net_mlx4.adrivers/librte_net_mlx5.adrivers/librte_net_netvsc.adrivers/librte_net_nfp.adrivers/librte_net_null.adrivers/librte_net_octeontx.adrivers/librte_net_octeontx2.adrivers/librte_net_octeontx_ep.adrivers/librte_net_pfe.adrivers/librte_net_qede.adrivers/librte_net_ring.adrivers/librte_net_sfc.adrivers/librte_net_softnic.adrivers/librte_net_tap.adrivers/librte_net_thunderx.adrivers/librte_net_txgbe.adrivers/librte_net_vdev_netvsc.adrivers/librte_net_vhost.adrivers/librte_net_virtio.adrivers/librte_net_vmxnet3.adrivers/librte_raw_dpaa2_cmdif.adrivers/librte_raw_dpaa2_qdma.adrivers/librte_raw_ntb.adrivers/librte_raw_octeontx2_dma.adrivers/librte_raw_octeontx2_ep.adrivers/librte_raw_skeleton.adrivers/librte_crypto_bcmfs.adrivers/librte_crypto_caam_jr.adrivers/librte_crypto_ccp.adrivers/librte_crypto_dpaa_sec.adrivers/librte_crypto_dpaa2_sec.adrivers/librte_crypto_nitrox.adrivers/librte_crypto_null.adrivers/librte_crypto_octeontx.adrivers/librte_crypto_octeontx2.adrivers/librte_crypto_openssl.adrivers/librte_crypto_scheduler.adrivers/librte_crypto_virtio.adrivers/librte_compress_mlx5.adrivers/librte_compress_octeontx.adrivers/librte_compress_zlib.adrivers/librte_regex_mlx5.adrivers/librte_regex_octeontx2.adrivers/librte_vdpa_ifc.adrivers/librte_vdpa_mlx5.adrivers/librte_event_dpaa.adrivers/librte_event_dpaa2.adrivers/librte_event_octeontx2.adrivers/librte_event_opdl.adrivers/librte_event_skeleton.adrivers/librte_event_sw.adrivers/librte_event_dsw.adrivers/librte_event_octeontx.adrivers/librte_baseband_null.adrivers/librte_baseband_turbo_sw.adrivers/librte_baseband_fpga_lte_fec.adrivers/librte_baseband_fpga_5gnr_fec.adrivers/librte_baseband_acc100.a- Wl,--no-whole-archive -Wl,--no-as-needed -pthread -lm -ldl -lnuma/usr/lib/aarch64-linux-gnu/libz.so-lmlx5 -libverbs/usr/lib/aarch64-linux-gnu/libcrypto.so -lmlx4 -libverbs -lmlx5(quoted diff) +0
-2-libverbs -lmlx5 -libverbs -lmlx5 - libverbs -lmlx5 -libverbs -Wl,--end-group -Wl,-rpath,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
app/test/dpdk-test.p/test_hash_perf.c.o: In function `test_hash_perf':
test_hash_perf.c:(.text+0x1c74): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x1d8c): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x2508): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss'
collect2: error: ld returned 1 exit status [2527/2527] Linking target app/dpdk- test-bbdev
ninja: build stopped: subcommand failed.Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--
Kind regards,
Luca Boccassi
Quoted 224 lines · Ruifeng Wang
Quoted 213 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Sunday, March 7, 2021 9:35 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; [email protected]; [email protected]; Ashwin Sekhar Thalakalath Kottilveetil <[email protected]>; Andrew Pinski <[email protected]>
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 10 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Monday, March 1, 2021 11:10 AM
To: Jerin Jacob Kollanukkaran <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 68 lines
External Email
----------------------------------------------------------------------
Quoted 65 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Thursday, February 25, 2021 8:15 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 56 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Saturday, February 20, 2021 9:13 AM
To: Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsExternal Email
------------------------------------------------------------------
--
--Quoted 41 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Friday, February 19, 2021 8:10 PM
To: Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 30 lines
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Friday, February 19, 2021 12:33 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 20.11] config/arm: replace native machine argsQuoted 20 lines · Juraj Linkeš
Quoted 20 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, February 19, 2021 11:58 AM
To: [email protected]
Cc: Juraj Linkeš <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH 20.11] config/arm: replace native machine argsFrom: Juraj Linkeš <[email protected]>
[ backported from upstream commit
9186e5a07f35ae74a1f7fa2d89671b5f77eae407]There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function‘crcr32_folding_round’:
Quoted 63 lines
Quoted 63 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1:error:
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
inlining failed in call to
always_inline‘vmull_p64’:
target specific option mismatch
vmull_p64(poly64_ta,poly64_tb)../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1)));and clang:
gcc -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS
clang-9 -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS<no output> # no clang supportFix this by always specifying the proper machine args and never using the native flags.
Fixes 78ac8eac7e8a ("config/arm: use native machine buildarguments")
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Juraj Linkeš <[email protected]>Signed-off-by Luca Boccassi <[email protected]>---
This is a crude backport, but it fixes the build for arm64. It's a release blocker for 20.11.1, so I would appreciate a quickreview.
Quoted 34 lines
Quoted 34 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks!
What does this fix? With or without the below change, the native machine
args are not used. The patch shoudn't actually change the configuration of the build at all, so I'm a bit confused.
Quoted 7 lines
It fixes the build on some build workers with thunderx hardware
- without this I get failures like:arm_neon.h:26647:1: error: inlining failed in call to '
always_inline' 'vmull_p64': target specific option mismatchI tried the patch and I'm seeing the same errors on a ThunderX server (with and without the patch). Is this actually the right patch?
One of the four failures looks like this:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function 'crcr32_folding_round':/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error:
inlining failed in call toalways_inline'vmull_p64': target specific option mismatch
vmull_p64(poly64_ta,poly64_tb) ^~~~~~~~~../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Ruifeng, any ideas on how to fix this?
Gcc build on ThunderX platform is broken. Issue can be seen in some
CentOS-8 OBS builds.
https://urldefense.proofpoint.com/v2/url?u=https-
3A__mails.dpdk.org_archives_dev_2020-2DNovember_192909.html&d=DwIGaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=1
Quoted 1 line
Quoted 1 line
DG
ob4H4rxz6H8uITozGOCa0s5f4wCNtTa4UUKvcsvI&m=mgzJ6z43dsDFwI6rdgKC
Quoted 43 lines
Quoted 30 lines
Uj
Quoted 6 lines
0GCMNjEKQAa7dfRZxvrdU&s=UWUJTFdGC2mD2x-rcuRnH1I7- 1jKFC40Bh5hFanzu0A&e=
I tried tuning compiler flags used, but could not resolve the issue.Need help from Marvell to look at this. Hi Jerin, do you have any thoughts on this?
Ruifeng, If you are able to reproduce this issue, Could you add "- march=armv8.1-a+crc+crypto" In ThunderX config and check is this Fixing the issue?
[main] [dpdk.org] $ git diff
config/arm/meson.build index renamed from config/arm/meson.build +0
-0
00bc4610a..ef65b4bb6100644config/arm/meson.build +3
-2@@ -96,15 +96,18 @@ implementer_cavium = { ], 'part_number_config': { '0xa1': { - 'machine_args': ['-mcpu=thunderxt88'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt88'], 'flags': flags_part_number_thunderx }, '0xa2': { - 'machine_args': ['-mcpu=thunderxt81'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse',config/arm/meson.build implementer_cavium = { · line 113
Quoted 10 lines
config/arm/meson.build +3
-1+ '-mcpu=thunderxt81'], 'flags': flags_part_number_thunderx }, '0xa3': { - 'machine_args': ['-mcpu=thunderxt83'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt83'], 'flags': flags_part_number_thunderx }, '0xaf': {Hi Jerin,
Quoted 2 lines
The patch doesn't work. Build failed at link stage. I used gcc 8.4 and tried build on thunderxt88.
Quoted 5 lines
Hi Ruifeng,
I talked to compiler experts here in Marvell. It looks like compiler issue, As a workaround couple of these could try:
1) Reduce the external libraries linked to the application like mlx5 etcI tried building with lots of drivers disabled. Not yet able to get a successful build.
Quoted 2 lines
2) Add -mcmodel=large flag will fix "relocation truncated to fit" issue as testing purpose as we are not sure about the implication of this flag.
Quoted 8 lines
Looks like this flag is not supported by gcc 8.4 that I am using.
One thing we can do to overcome the build failure is to switch to default / release build in OBS CI. OBS CI is running native build, so it could hit this issue when CI job is scheduled to thunderxt88 infrastructure. I think we should change to do release build (-Dmachine=default) which is more suitable for generic CI verification. As I checked, release build can pass on my thunderxt88 platform.
What do you think?
Hi,
I've done as suggested, and it seems to fare better, thank you.
There is still a build error on CentOS 7, not sure if it is related though:
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c: In function 'otx2_tim_arm_tmo_tick_burst_mod':
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: error: could not split insn
[ 555s] struct rte_event_timer **tim, \
[ 555s] ^
[ 555s] ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of macro 'FP'
[ 555s] FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \
[ 555s] ^
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of macro 'TIM_ARM_TMO_FASTPATH_MODES'
[ 555s] TIM_ARM_TMO_FASTPATH_MODES
[ 555s] ^
[ 555s] (insn 252 250 255 (parallel [
[ 555s] (set (reg:DI 1 x1 [orig:230 D.17092 ] [230])
[ 555s] (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64]))
[ 555s] (set (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64])
[ 555s] (unspec_volatile:DI [
[ 555s] (plus:DI (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64])
[ 555s] (const_int 1099511627776 [0x10000000000]))
[ 555s] (const_int 2 [0x2])
[ 555s] ] UNSPECV_ATOMIC_OP))
[ 555s] (clobber (reg:CC 66 cc))
[ 555s] (clobber (reg:DI 4 x4))
[ 555s] (clobber (reg:SI 3 x3))
[ 555s] ]) ../drivers/event/octeontx2/otx2_tim_worker.h:81 1832 {atomic_fetch_adddi}
[ 555s] (expr_list:REG_UNUSED (reg:CC 66 cc)
[ 555s] (expr_list:REG_UNUSED (reg:DI 4 x4)
[ 555s] (expr_list:REG_UNUSED (reg:SI 3 x3)
[ 555s] (nil)))))
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: internal compiler error: in final_scan_insn, at final.c:2897
[ 555s] struct rte_event_timer **tim, \
[ 555s] ^
[ 555s] ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of macro 'FP'
[ 555s] FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \
[ 555s] ^
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of macro 'TIM_ARM_TMO_FASTPATH_MODES'
[ 555s] TIM_ARM_TMO_FASTPATH_MODES
[ 555s] ^
[ 555s] Please submit a full bug report,
[ 555s] with preprocessed source if appropriate.
[ 555s] See <http://bugzilla.redhat.com/bugzilla> for instructions.
[ 555s] {standard input}: Assembler messages:
[ 555s] {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
[ 555s] Preprocessed source stored into /tmp/ccpVQUdT.out file, please attach this to your bugreport.Signature · 2 lines
Kind regards, Luca Boccassi
Quoted 233 lines · Luca Boccassi
Quoted 231 lines · Ruifeng Wang
Quoted 213 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Sunday, March 7, 2021 9:35 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; [email protected]; [email protected]; Ashwin Sekhar Thalakalath Kottilveetil <[email protected]>; Andrew Pinski <[email protected]>
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 10 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Monday, March 1, 2021 11:10 AM
To: Jerin Jacob Kollanukkaran <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 68 lines
External Email
----------------------------------------------------------------------
Quoted 65 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Thursday, February 25, 2021 8:15 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 56 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Saturday, February 20, 2021 9:13 AM
To: Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsExternal Email
------------------------------------------------------------------
--
--Quoted 41 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Friday, February 19, 2021 8:10 PM
To: Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 30 lines
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Friday, February 19, 2021 12:33 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 20.11] config/arm: replace native machine argsQuoted 20 lines · Juraj Linkeš
Quoted 20 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, February 19, 2021 11:58 AM
To: [email protected]
Cc: Juraj Linkeš <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH 20.11] config/arm: replace native machine argsFrom: Juraj Linkeš <[email protected]>
[ backported from upstream commit
9186e5a07f35ae74a1f7fa2d89671b5f77eae407]There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function‘crcr32_folding_round’:
Quoted 63 lines
Quoted 63 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1:error:
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
inlining failed in call to
always_inline‘vmull_p64’:
target specific option mismatch
vmull_p64(poly64_ta,poly64_tb)../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1)));and clang:
gcc -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS
clang-9 -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS<no output> # no clang supportFix this by always specifying the proper machine args and never using the native flags.
Fixes 78ac8eac7e8a ("config/arm: use native machine buildarguments")
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Juraj Linkeš <[email protected]>Signed-off-by Luca Boccassi <[email protected]>---
This is a crude backport, but it fixes the build for arm64. It's a release blocker for 20.11.1, so I would appreciate a quickreview.
Quoted 34 lines
Quoted 34 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks!
What does this fix? With or without the below change, the native machine
args are not used. The patch shoudn't actually change the configuration of the build at all, so I'm a bit confused.
Quoted 7 lines
It fixes the build on some build workers with thunderx hardware
- without this I get failures like:arm_neon.h:26647:1: error: inlining failed in call to '
always_inline' 'vmull_p64': target specific option mismatchI tried the patch and I'm seeing the same errors on a ThunderX server (with and without the patch). Is this actually the right patch?
One of the four failures looks like this:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function 'crcr32_folding_round':/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error:
inlining failed in call toalways_inline'vmull_p64': target specific option mismatch
vmull_p64(poly64_ta,poly64_tb) ^~~~~~~~~../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Ruifeng, any ideas on how to fix this?
Gcc build on ThunderX platform is broken. Issue can be seen in some
CentOS-8 OBS builds.
https://urldefense.proofpoint.com/v2/url?u=https-
3A__mails.dpdk.org_archives_dev_2020-2DNovember_192909.html&d=DwIGaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=1
Quoted 1 line
Quoted 1 line
DG
ob4H4rxz6H8uITozGOCa0s5f4wCNtTa4UUKvcsvI&m=mgzJ6z43dsDFwI6rdgKC
Quoted 43 lines
Quoted 30 lines
Uj
Quoted 6 lines
0GCMNjEKQAa7dfRZxvrdU&s=UWUJTFdGC2mD2x-rcuRnH1I7- 1jKFC40Bh5hFanzu0A&e=
I tried tuning compiler flags used, but could not resolve the issue.Need help from Marvell to look at this. Hi Jerin, do you have any thoughts on this?
Ruifeng, If you are able to reproduce this issue, Could you add "- march=armv8.1-a+crc+crypto" In ThunderX config and check is this Fixing the issue?
[main] [dpdk.org] $ git diff
config/arm/meson.build index renamed from config/arm/meson.build +0
-0
00bc4610a..ef65b4bb6100644config/arm/meson.build +3
-2@@ -96,15 +96,18 @@ implementer_cavium = { ], 'part_number_config': { '0xa1': { - 'machine_args': ['-mcpu=thunderxt88'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt88'], 'flags': flags_part_number_thunderx }, '0xa2': { - 'machine_args': ['-mcpu=thunderxt81'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse',config/arm/meson.build implementer_cavium = { · line 113
Quoted 10 lines
config/arm/meson.build +3
-1+ '-mcpu=thunderxt81'], 'flags': flags_part_number_thunderx }, '0xa3': { - 'machine_args': ['-mcpu=thunderxt83'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt83'], 'flags': flags_part_number_thunderx }, '0xaf': {Hi Jerin,
Quoted 2 lines
The patch doesn't work. Build failed at link stage. I used gcc 8.4 and tried build on thunderxt88.
Quoted 5 lines
Hi Ruifeng,
I talked to compiler experts here in Marvell. It looks like compiler issue, As a workaround couple of these could try:
1) Reduce the external libraries linked to the application like mlx5 etcI tried building with lots of drivers disabled. Not yet able to get a successful build.
Quoted 2 lines
2) Add -mcmodel=large flag will fix "relocation truncated to fit" issue as testing purpose as we are not sure about the implication of this flag.
Looks like this flag is not supported by gcc 8.4 that I am using.
One thing we can do to overcome the build failure is to switch to default / release build in OBS CI. OBS CI is running native build, so it could hit this issue when CI job is scheduled to thunderxt88 infrastructure. I think we should change to do release build (-Dmachine=default) which is more suitable for generic CI verification. As I checked, release build can pass on my thunderxt88 platform.
Quoted 7 lines
Quoted 1 line
What do you think?
Hi,
I've done as suggested, and it seems to fare better, thank you.
There is still a build error on CentOS 7, not sure if it is related
That ICE is a known issue from the compiler. Please use gcc 4.8 at least for arm64 work.
Similar issue[1] present in some 5.2.1, 6.0 version too.
[1]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67143
Quoted 48 lines
though:
[ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c: In function 'otx2_tim_arm_tmo_tick_burst_mod': [ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: error: could not split insn [ 555s] struct rte_event_timer **tim, \ [ 555s] ^ [ 555s] ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of macro 'FP' [ 555s] FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \ [ 555s] ^ [ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of macro 'TIM_ARM_TMO_FASTPATH_MODES' [ 555s] TIM_ARM_TMO_FASTPATH_MODES [ 555s] ^ [ 555s] (insn 252 250 255 (parallel [ [ 555s] (set (reg:DI 1 x1 [orig:230 D.17092 ] [230]) [ 555s] (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64])) [ 555s] (set (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64]) [ 555s] (unspec_volatile:DI [ [ 555s] (plus:DI (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17094 ] [229]) [-1 S8 A64]) [ 555s] (const_int 1099511627776 [0x10000000000])) [ 555s] (const_int 2 [0x2]) [ 555s] ] UNSPECV_ATOMIC_OP)) [ 555s] (clobber (reg:CC 66 cc)) [ 555s] (clobber (reg:DI 4 x4)) [ 555s] (clobber (reg:SI 3 x3)) [ 555s] ]) ../drivers/event/octeontx2/otx2_tim_worker.h:81 1832 {atomic_fetch_adddi} [ 555s] (expr_list:REG_UNUSED (reg:CC 66 cc) [ 555s] (expr_list:REG_UNUSED (reg:DI 4 x4) [ 555s] (expr_list:REG_UNUSED (reg:SI 3 x3) [ 555s] (nil))))) [ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: internal compiler error: in final_scan_insn, at final.c:2897 [ 555s] struct rte_event_timer **tim, \ [ 555s] ^ [ 555s] ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of macro 'FP' [ 555s] FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \ [ 555s] ^ [ 555s] ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of macro 'TIM_ARM_TMO_FASTPATH_MODES' [ 555s] TIM_ARM_TMO_FASTPATH_MODES [ 555s] ^ [ 555s] Please submit a full bug report, [ 555s] with preprocessed source if appropriate. [ 555s] See <http://bugzilla.redhat.com/bugzilla> for instructions. [ 555s] {standard input}: Assembler messages: [ 555s] {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive [ 555s] Preprocessed source stored into /tmp/ccpVQUdT.out file, please attach this to your bugreport.--
Kind regards,
Luca Boccassi
Quoted 230 lines · Ruifeng Wang
Quoted 219 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Sunday, March 7, 2021 9:35 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; [email protected]; [email protected]; Ashwin Sekhar Thalakalath Kottilveetil <[email protected]>; Andrew Pinski <[email protected]>
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 10 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Monday, March 1, 2021 11:10 AM
To: Jerin Jacob Kollanukkaran <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 68 lines
External Email
----------------------------------------------------------------------
Quoted 65 lines
-----Original Message-----
From: Jerin Jacob Kollanukkaran <[email protected]>
Sent: Thursday, February 25, 2021 8:15 PM
To: Ruifeng Wang <[email protected]>; Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; nd <[email protected]>
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 56 lines
-----Original Message-----
From: Ruifeng Wang <[email protected]>
Sent: Saturday, February 20, 2021 9:13 AM
To: Juraj Linkeš <[email protected]>; Luca Boccassi <[email protected]>; [email protected]; Jerin Jacob Kollanukkaran <[email protected]>
Cc: [email protected]; nd <[email protected]>
Subject: [EXT] RE: [PATCH 20.11] config/arm: replace native machine argsExternal Email
------------------------------------------------------------------
--
--Quoted 41 lines
-----Original Message-----
From: Juraj Linkeš <[email protected]>
Sent: Friday, February 19, 2021 8:10 PM
To: Luca Boccassi <[email protected]>; [email protected]
Cc: [email protected]; Ruifeng Wang <[email protected]>; [email protected]
Subject: RE: [PATCH 20.11] config/arm: replace native machine argsQuoted 30 lines
-----Original Message-----
From: Luca Boccassi <[email protected]>
Sent: Friday, February 19, 2021 12:33 PM
To: Juraj Linkeš <[email protected]>; [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 20.11] config/arm: replace native machine argsQuoted 20 lines · Juraj Linkeš
Quoted 20 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Friday, February 19, 2021 11:58 AM
To: [email protected]
Cc: Juraj Linkeš <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: [PATCH 20.11] config/arm: replace native machine argsFrom: Juraj Linkeš <[email protected]>
[ backported from upstream commit
9186e5a07f35ae74a1f7fa2d89671b5f77eae407]There are compiler issues when building with -mcpu=native with popular compilers, such as GCC-8.4:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function‘crcr32_folding_round’:
Quoted 65 lines
Quoted 65 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1:error:
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
inlining failed in call to
always_inline‘vmull_p64’:
target specific option mismatch
vmull_p64(poly64_ta,poly64_tb)../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1)));and clang:
gcc -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS
clang-9 -E -dM -mcpu="native" - </dev/null| grep__ARM_FEATURE_ATOMICS<no output> # no clang supportFix this by always specifying the proper machine args and never using the native flags.
Fixes 78ac8eac7e8a ("config/arm: use native machine buildarguments")
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Signed-off-by Juraj Linkeš <[email protected]>Signed-off-by Luca Boccassi <[email protected]>---
This is a crude backport, but it fixes the build for arm64. It's a release blocker for 20.11.1, so I would appreciate a quickreview.
Quoted 36 lines
Quoted 35 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Thanks!
What does this fix? With or without the below change, the native machine
args are not used. The patch shoudn't actually change the configuration of the build at all, so I'm a bit confused.
Quoted 7 lines
It fixes the build on some build workers with thunderx hardware
- without this I get failures like:arm_neon.h:26647:1: error: inlining failed in call to '
always_inline' 'vmull_p64': target specific option mismatchI tried the patch and I'm seeing the same errors on a ThunderX server (with and without the patch). Is this actually the right patch?
One of the four failures looks like this:
In file included from../lib/librte_eal/arm/include/rte_vect.h:11,from ../lib/librte_net/net_crc_neon.c:10:
../lib/librte_net/net_crc_neon.c: In function 'crcr32_folding_round':/usr/lib/gcc/aarch64-linux-gnu/8/include/arm_neon.h:26094:1: error:
inlining failed in call toalways_inline'vmull_p64': target specific option mismatch
vmull_p64(poly64_ta,poly64_tb) ^~~~~~~~~../lib/librte_net/net_crc_neon.c:50:20: note: called from here
uint64x2_ttmp1 = vreinterpretq_u64_p128(vmull_p64(^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(fold), 0), ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vgetq_lane_p64(vreinterpretq_p64_u64(precomp), 1))); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Ruifeng, any ideas on how to fix this?
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
Gcc build on ThunderX platform is broken. Issue can be seen in some
CentOS-8 OBS builds.
https://urldefense.proofpoint.com/v2/url?u=https-
3A__mails.dpdk.org_archives_dev_2020-2DNovember_192909.html&d=DwIGaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=1
Quoted 3 lines
Quoted 3 lines
DG
Quoted 1 line
ob4H4rxz6H8uITozGOCa0s5f4wCNtTa4UUKvcsvI&m=mgzJ6z43dsDFwI6rdgKC
Quoted 44 lines
Quoted 31 lines
Uj
Quoted 6 lines
0GCMNjEKQAa7dfRZxvrdU&s=UWUJTFdGC2mD2x-rcuRnH1I7- 1jKFC40Bh5hFanzu0A&e=
I tried tuning compiler flags used, but could not resolve the issue.Need help from Marvell to look at this. Hi Jerin, do you have any thoughts on this?
Ruifeng, If you are able to reproduce this issue, Could you add "- march=armv8.1-a+crc+crypto" In ThunderX config and check is this Fixing the issue?
[main] [dpdk.org] $ git diff
config/arm/meson.build index renamed from config/arm/meson.build +0
-0
00bc4610a..ef65b4bb6100644config/arm/meson.build +3
-2@@ -96,15 +96,18 @@ implementer_cavium = { ], 'part_number_config': { '0xa1': { - 'machine_args': ['-mcpu=thunderxt88'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt88'], 'flags': flags_part_number_thunderx }, '0xa2': { - 'machine_args': ['-mcpu=thunderxt81'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse',config/arm/meson.build implementer_cavium = { · line 113
Quoted 10 lines
config/arm/meson.build +3
-1+ '-mcpu=thunderxt81'], 'flags': flags_part_number_thunderx }, '0xa3': { - 'machine_args': ['-mcpu=thunderxt83'], + 'machine_args': ['-march=armv8.1-a+crc+crypto+lse', + '-mcpu=thunderxt83'], 'flags': flags_part_number_thunderx }, '0xaf': {Hi Jerin,
Quoted 2 lines
The patch doesn't work. Build failed at link stage. I used gcc 8.4 and tried build on thunderxt88.
Quoted 5 lines
Hi Ruifeng,
I talked to compiler experts here in Marvell. It looks like compiler issue, As a workaround couple of these could try:
1) Reduce the external libraries linked to the application like mlx5 etcI tried building with lots of drivers disabled. Not yet able to get a successful build.
Quoted 2 lines
2) Add -mcmodel=large flag will fix "relocation truncated to fit" issue as testing purpose as we are not sure about the implication of this flag.
Quoted 8 lines
Looks like this flag is not supported by gcc 8.4 that I am using.
One thing we can do to overcome the build failure is to switch to default / release build in OBS CI. OBS CI is running native build, so it could hit this issue when CI job is scheduled to thunderxt88 infrastructure. I think we should change to do release build (-Dmachine=default) which is more suitable for generic CI verification. As I checked, release build can pass on my thunderxt88 platform.
What do you think?
Sounds good to me.
Quoted 233 lines
Quoted 232 lines
Quoted 232 lines
Logs as below:
[2513/2527] Linking target app/test/dpdk-test
FAILED: app/test/dpdk-test
cc -o app/test/dpdk-testapp/test/dpdk-test.p/commands.c.oapp/test/dpdk-test.p/packet_burst_generator.c.oapp/test/dpdk-test.p/test.c.oapp/test/dpdk-test.p/test_acl.c.oapp/test/dpdk-test.p/test_alarm.c.oapp/test/dpdk-test.p/test_atomic.c.oapp/test/dpdk-test.p/test_barrier.c.oapp/test/dpdk-test.p/test_bitops.c.oapp/test/dpdk-test.p/test_bitmap.c.oapp/test/dpdk-test.p/test_bpf.c.oapp/test/dpdk-test.p/test_byteorder.c.oapp/test/dpdk-test.p/test_cmdline.c.oapp/test/dpdk-test.p/test_cmdline_cirbuf.c.oapp/test/dpdk-test.p/test_cmdline_etheraddr.c.oapp/test/dpdk-test.p/test_cmdline_ipaddr.c.oapp/test/dpdk-test.p/test_cmdline_lib.c.oapp/test/dpdk-test.p/test_cmdline_num.c.oapp/test/dpdk-test.p/test_cmdline_portlist.c.oapp/test/dpdk-test.p/test_cmdline_string.c.oapp/test/dpdk-test.p/test_common.c.oapp/test/dpdk-test.p/test_cpuflags.c.oapp/test/dpdk-test.p/test_crc.c.oapp/test/dpdk-test.p/test_cryptodev.c.oapp/test/dpdk-test.p/test_cryptodev_asym.c.oapp/test/dpdk-test.p/test_cryptodev_blockcipher.c.oapp/test/dpdk-test.p/test_cryptodev_security_pdcp.c.oapp/test/dpdk-test.p/test_cycles.c.oapp/test/dpdk-test.p/test_debug.c.oapp/test/dpdk-test.p/test_distributor.c.oapp/test/dpdk-test.p/test_distributor_perf.c.oapp/test/dpdk-test.p/test_eal_flags.c.oapp/test/dpdk-test.p/test_eal_fs.c.oapp/test/dpdk-test.p/test_efd.c.oapp/test/dpdk-test.p/test_efd_perf.c.oapp/test/dpdk-test.p/test_errno.c.oapp/test/dpdk-test.p/test_ethdev_link.c.oapp/test/dpdk-test.p/test_event_crypto_adapter.c.oapp/test/dpdk-test.p/test_event_eth_rx_adapter.c.oapp/test/dpdk-test.p/test_event_ring.c.oapp/test/dpdk-test.p/test_event_timer_adapter.c.oapp/test/dpdk-test.p/test_eventdev.c.oapp/test/dpdk-test.p/test_external_mem.c.oapp/test/dpdk-test.p/test_fbarray.c.oapp/test/dpdk-test.p/test_fib.c.oapp/test/dpdk-test.p/test_fib_perf.c.oapp/test/dpdk-test.p/test_fib6.c.oapp/test/dpdk-test.p/test_fib6_perf.c.oapp/test/dpdk-test.p/test_func_reentrancy.c.oapp/test/dpdk-test.p/test_flow_classify.c.oapp/test/dpdk-test.p/test_graph.c.oapp/test/dpdk-test.p/test_graph_perf.c.oapp/test/dpdk-test.p/test_hash.c.oapp/test/dpdk-test.p/test_hash_functions.c.oapp/test/dpdk-test.p/test_hash_multiwriter.c.oapp/test/dpdk-test.p/test_hash_readwrite.c.oapp/test/dpdk-test.p/test_hash_perf.c.oapp/test/dpdk-test.p/test_hash_readwrite_lf_perf.c.oapp/test/dpdk-test.p/test_interrupts.c.oapp/test/dpdk-test.p/test_ipfrag.c.oapp/test/dpdk-test.p/test_ipsec.c.oapp/test/dpdk-test.p/test_ipsec_sad.c.oapp/test/dpdk-test.p/test_ipsec_perf.c.oapp/test/dpdk-test.p/test_kni.c.oapp/test/dpdk-test.p/test_kvargs.c.oapp/test/dpdk-test.p/test_lcores.c.oapp/test/dpdk-test.p/test_logs.c.oapp/test/dpdk-test.p/test_lpm.c.oapp/test/dpdk-test.p/test_lpm6.c.oapp/test/dpdk-test.p/test_lpm6_perf.c.oapp/test/dpdk-test.p/test_lpm_perf.c.oapp/test/dpdk-test.p/test_malloc.c.oapp/test/dpdk-test.p/test_mbuf.c.oapp/test/dpdk-test.p/test_member.c.oapp/test/dpdk-test.p/test_member_perf.c.oapp/test/dpdk-test.p/test_memcpy.c.oapp/test/dpdk-test.p/test_memcpy_perf.c.oapp/test/dpdk-test.p/test_memory.c.oapp/test/dpdk-test.p/test_mempool.c.oapp/test/dpdk-test.p/test_mempool_perf.c.oapp/test/dpdk-test.p/test_memzone.c.oapp/test/dpdk-test.p/test_meter.c.oapp/test/dpdk-test.p/test_metrics.c.oapp/test/dpdk-test.p/test_mcslock.c.oapp/test/dpdk-test.p/test_mp_secondary.c.oapp/test/dpdk-test.p/test_per_lcore.c.oapp/test/dpdk-test.p/test_pmd_perf.c.oapp/test/dpdk-test.p/test_power.c.oapp/test/dpdk-test.p/test_power_cpufreq.c.oapp/test/dpdk-test.p/test_power_kvm_vm.c.oapp/test/dpdk-test.p/test_prefetch.c.oapp/test/dpdk-test.p/test_rand_perf.c.oapp/test/dpdk-test.p/test_rawdev.c.oapp/test/dpdk-test.p/test_rcu_qsbr.c.oapp/test/dpdk-test.p/test_rcu_qsbr_perf.c.oapp/test/dpdk-test.p/test_reciprocal_division.c.oapp/test/dpdk-test.p/test_reciprocal_division_perf.c.oapp/test/dpdk-test.p/test_red.c.oapp/test/dpdk-test.p/test_reorder.c.oapp/test/dpdk-test.p/test_rib.c.oapp/test/dpdk-test.p/test_rib6.c.oapp/test/dpdk-test.p/test_ring.c.oapp/test/dpdk-test.p/test_ring_mpmc_stress.c.oapp/test/dpdk-test.p/test_ring_hts_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress.c.oapp/test/dpdk-test.p/test_ring_mt_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_perf.c.oapp/test/dpdk-test.p/test_ring_rts_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress.c.oapp/test/dpdk-test.p/test_ring_st_peek_stress_zc.c.oapp/test/dpdk-test.p/test_ring_stress.c.oapp/test/dpdk-test.p/test_rwlock.c.oapp/test/dpdk-test.p/test_sched.c.oapp/test/dpdk-test.p/test_security.c.oapp/test/dpdk-test.p/test_service_cores.c.oapp/test/dpdk-test.p/test_spinlock.c.oapp/test/dpdk-test.p/test_stack.c.oapp/test/dpdk-test.p/test_stack_perf.c.oapp/test/dpdk-test.p/test_string_fns.c.oapp/test/dpdk-test.p/test_table.c.oapp/test/dpdk-test.p/test_table_acl.c.oapp/test/dpdk-test.p/test_table_combined.c.oapp/test/dpdk-test.p/test_table_pipeline.c.oapp/test/dpdk-test.p/test_table_ports.c.oapp/test/dpdk-test.p/test_table_tables.c.oapp/test/dpdk-test.p/test_tailq.c.oapp/test/dpdk-test.p/test_thash.c.oapp/test/dpdk-test.p/test_timer.c.oapp/test/dpdk-test.p/test_timer_perf.c.oapp/test/dpdk-test.p/test_timer_racecond.c.oapp/test/dpdk-test.p/test_timer_secondary.c.oapp/test/dpdk-test.p/test_ticketlock.c.oapp/test/dpdk-test.p/test_trace.c.oapp/test/dpdk-test.p/test_trace_register.c.oapp/test/dpdk-test.p/test_trace_perf.c.oapp/test/dpdk-test.p/test_version.c.oapp/test/dpdk-test.p/virtual_pmd.c.oapp/test/dpdk-test.p/test_telemetry_json.c.oapp/test/dpdk-test.p/test_telemetry_data.c.oapp/test/dpdk-test.p/test_link_bonding.c.oapp/test/dpdk-test.p/test_link_bonding_rssconf.c.oapp/test/dpdk-test.p/test_link_bonding_mode4.c.oapp/test/dpdk-test.p/test_pmd_ring_perf.c.oapp/test/dpdk-test.p/test_pmd_ring.c.oapp/test/dpdk-test.p/test_event_eth_tx_adapter.c.oapp/test/dpdk-test.p/test_bitratestats.c.oapp/test/dpdk-test.p/test_latencystats.c.oapp/test/dpdk-test.p/sample_packet_forward.c.oapp/test/dpdk-test.p/test_pdump.c.oapp/test/dpdk-test.p/test_compressdev.c.o(quoted diff) +0
-2-Wl,--as- needed -Wl,--no-undefined -Wl,-O1 -Wl,--whole-archive -Wl,--start-group lib/librte_node.a lib/librte_graph.a
lib/librte_bpf.alib/librte_flow_classify.alib/librte_pipeline.alib/librte_table.alib/librte_port.alib/librte_fib.alib/librte_ipsec.alib/librte_vhost.alib/librte_stack.alib/librte_security.alib/librte_sched.alib/librte_reorder.alib/librte_rib.alib/librte_regexdev.alib/librte_rawdev.alib/librte_pdump.alib/librte_power.alib/librte_member.alib/librte_lpm.alib/librte_latencystats.alib/librte_kni.alib/librte_jobstats.alib/librte_ip_frag.alib/librte_gso.alib/librte_gro.alib/librte_eventdev.alib/librte_efd.alib/librte_distributor.alib/librte_cryptodev.alib/librte_compressdev.alib/librte_cfgfile.alib/librte_bitratestats.alib/librte_bbdev.alib/librte_acl.alib/librte_timer.alib/librte_hash.alib/librte_metrics.alib/librte_cmdline.alib/librte_pci.alib/librte_ethdev.alib/librte_meter.alib/librte_net.alib/librte_mbuf.alib/librte_mempool.alib/librte_rcu.alib/librte_ring.alib/librte_eal.alib/librte_telemetry.alib/librte_kvargs.adrivers/librte_common_cpt.adrivers/librte_common_dpaax.adrivers/librte_common_iavf.adrivers/librte_common_octeontx.adrivers/librte_common_octeontx2.adrivers/librte_common_sfc_efx.adrivers/librte_bus_dpaa.adrivers/librte_bus_fslmc.adrivers/librte_bus_ifpga.adrivers/librte_bus_pci.adrivers/librte_bus_vdev.adrivers/librte_bus_vmbus.adrivers/librte_common_mlx5.adrivers/librte_common_qat.adrivers/librte_mempool_bucket.adrivers/librte_mempool_dpaa.adrivers/librte_mempool_dpaa2.adrivers/librte_mempool_octeontx.adrivers/librte_mempool_octeontx2.adrivers/librte_mempool_ring.adrivers/librte_mempool_stack.adrivers/librte_net_af_packet.adrivers/librte_net_ark.adrivers/librte_net_atlantic.adrivers/librte_net_avp.adrivers/librte_net_axgbe.adrivers/librte_net_bond.adrivers/librte_net_bnx2x.adrivers/librte_net_bnxt.adrivers/librte_net_cxgbe.adrivers/librte_net_dpaa.adrivers/librte_net_dpaa2.adrivers/librte_net_e1000.adrivers/librte_net_ena.adrivers/librte_net_enetc.adrivers/librte_net_enic.adrivers/librte_net_failsafe.adrivers/librte_net_fm10k.adrivers/librte_net_i40e.adrivers/librte_net_hinic.adrivers/librte_net_hns3.adrivers/librte_net_iavf.adrivers/librte_net_ice.adrivers/librte_net_igc.adrivers/librte_net_ionic.adrivers/librte_net_ixgbe.adrivers/librte_net_kni.adrivers/librte_net_liquidio.adrivers/librte_net_memif.adrivers/librte_net_mlx4.adrivers/librte_net_mlx5.adrivers/librte_net_netvsc.adrivers/librte_net_nfp.adrivers/librte_net_null.adrivers/librte_net_octeontx.adrivers/librte_net_octeontx2.adrivers/librte_net_octeontx_ep.adrivers/librte_net_pfe.adrivers/librte_net_qede.adrivers/librte_net_ring.adrivers/librte_net_sfc.adrivers/librte_net_softnic.adrivers/librte_net_tap.adrivers/librte_net_thunderx.adrivers/librte_net_txgbe.adrivers/librte_net_vdev_netvsc.adrivers/librte_net_vhost.adrivers/librte_net_virtio.adrivers/librte_net_vmxnet3.adrivers/librte_raw_dpaa2_cmdif.adrivers/librte_raw_dpaa2_qdma.adrivers/librte_raw_ntb.adrivers/librte_raw_octeontx2_dma.adrivers/librte_raw_octeontx2_ep.adrivers/librte_raw_skeleton.adrivers/librte_crypto_bcmfs.adrivers/librte_crypto_caam_jr.adrivers/librte_crypto_ccp.adrivers/librte_crypto_dpaa_sec.adrivers/librte_crypto_dpaa2_sec.adrivers/librte_crypto_nitrox.adrivers/librte_crypto_null.adrivers/librte_crypto_octeontx.adrivers/librte_crypto_octeontx2.adrivers/librte_crypto_openssl.adrivers/librte_crypto_scheduler.adrivers/librte_crypto_virtio.adrivers/librte_compress_mlx5.adrivers/librte_compress_octeontx.adrivers/librte_compress_zlib.adrivers/librte_regex_mlx5.adrivers/librte_regex_octeontx2.adrivers/librte_vdpa_ifc.adrivers/librte_vdpa_mlx5.adrivers/librte_event_dpaa.adrivers/librte_event_dpaa2.adrivers/librte_event_octeontx2.adrivers/librte_event_opdl.adrivers/librte_event_skeleton.adrivers/librte_event_sw.adrivers/librte_event_dsw.adrivers/librte_event_octeontx.adrivers/librte_baseband_null.adrivers/librte_baseband_turbo_sw.adrivers/librte_baseband_fpga_lte_fec.adrivers/librte_baseband_fpga_5gnr_fec.adrivers/librte_baseband_acc100.a- Wl,--no-whole-archive -Wl,--no-as-needed -pthread -lm -ldl -lnuma/usr/lib/aarch64-linux-gnu/libz.so-lmlx5 -libverbs/usr/lib/aarch64-linux-gnu/libcrypto.so -lmlx4 -libverbs -lmlx5(quoted diff) +0
-2-libverbs -lmlx5 -libverbs -lmlx5 - libverbs -lmlx5 -libverbs -Wl,--end-group -Wl,-rpath,XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
app/test/dpdk-test.p/test_hash_perf.c.o: In function `test_hash_perf':
test_hash_perf.c:(.text+0x1c74): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x1d8c): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss' test_hash_perf.c:(.text+0x2508): relocation truncated to fit:R_AARCH64_ADR_PREL_PG_HI21against `.bss'
collect2: error: ld returned 1 exit status [2527/2527] Linking target app/dpdk- test-bbdev
ninja: build stopped: subcommand failed.Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
--
Kind regards,
Luca Boccassi