From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7CA0AA0527; Mon, 9 Nov 2020 08:45:42 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 29D405913; Mon, 9 Nov 2020 08:45:41 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by dpdk.org (Postfix) with ESMTP id 2C65158C4 for ; Mon, 9 Nov 2020 08:45:38 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 11A9FA052A; Mon, 9 Nov 2020 08:45:38 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Mon, 09 Nov 2020 07:45:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: other X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alialnu@mellanox.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 572] [aarch64] build failures in event/octeontx2 and mempool/octeontx2 with old gcc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D572 Bug ID: 572 Summary: [aarch64] build failures in event/octeontx2 and mempool/octeontx2 with old gcc Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: other Assignee: dev@dpdk.org Reporter: alialnu@mellanox.com Target Milestone: --- On CentOS 7 (aarch64) with gcc 4.8.5 20150623, I can reproduce the following build error in event/octeontx2 with buildtype set to release (default): """ [2231/2485] Compiling C object drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_tim_worker.c.o FAILED: drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_tim_worker.c.o ccache cc -Idrivers/libtmp_rte_event_octeontx2.a.p -Idrivers -I../drivers -Idrivers/event/octeontx2 -I../drivers/event/octeontx2 -Idrivers/crypto/octeontx2 -I../drivers/crypto/octeontx2 -Idrivers/common/c= pt -I../drivers/common/cpt -Ilib/librte_eventdev -I../lib/librte_eventdev -I. = -I.. -Iconfig -I../config -Ilib/librte_eal/include -I../lib/librte_eal/include -Ilib/librte_eal/linux/include -I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include -I../lib/librte_eal/arm/include -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_metrics -I../lib/librte_metrics -Ilib/librte_telemetry -I../lib/librte_telemetry -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_ethdev -I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte= _net -Ilib/librte_mbuf -I../lib/librte_mbuf -Ilib/librte_mempool -I../lib/librte_mempool -Ilib/librte_meter -I../lib/librte_meter -Ilib/librte_hash -I../lib/librte_hash -Ilib/librte_rcu -I../lib/librte_rcu -Ilib/librte_timer -I../lib/librte_timer -Ilib/librte_cryptodev -I../lib/librte_cryptodev -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/librte_pci -I../lib/librte_pci -Idrivers/common/octeontx2 -I../drivers/common/octeontx2 -Idrivers/mempool/octeontx2 -I../drivers/mempool/octeontx2 -Idrivers/net/octeontx2 -I../drivers/net/octeontx2 -Idrivers/crypto/octeontx -I../drivers/crypto/octeontx -Ilib/librte_security -I../lib/librte_security -Idrivers/bus/vdev -I../drivers/bus/vdev -pipe -D_FILE_OFFSET_BITS=3D64 -Wa= ll -Winvalid-pch -Werror -O3 -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -MD -MQ drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_tim_worker.c.o = -MF drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_tim_worker.c.o.= d -o drivers/libtmp_rte_event_octeontx2.a.p/event_octeontx2_otx2_tim_worker.c.o = -c ../drivers/event/octeontx2/otx2_tim_worker.c ../drivers/event/octeontx2/otx2_tim_worker.c: In function =E2=80=98otx2_tim_arm_tmo_tick_burst_mod=E2=80=99: ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: error: could not split insn struct rte_event_timer **tim, \ ^ ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of ma= cro =E2=80=98FP=E2=80=99 FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \ ^ ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of m= acro =E2=80=98TIM_ARM_TMO_FASTPATH_MODES=E2=80=99 TIM_ARM_TMO_FASTPATH_MODES ^ (insn 252 250 255 (parallel [ (set (reg:DI 1 x1 [orig:230 D.17049 ] [230]) (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17051 ] [229]) [-1 = S8 A64])) (set (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.17051 ] [229]) [-1 = S8 A64]) (unspec_volatile:DI [ (plus:DI (mem/v:DI (reg/f:DI 10 x10 [orig:229 D.170= 51 ] [229]) [-1 S8 A64]) (const_int 1099511627776 [0x10000000000])) (const_int 2 [0x2]) ] UNSPECV_ATOMIC_OP)) (clobber (reg:CC 66 cc)) (clobber (reg:DI 4 x4)) (clobber (reg:SI 3 x3)) ]) ../drivers/event/octeontx2/otx2_tim_worker.h:81 1832 {atomic_fetch_adddi} (expr_list:REG_UNUSED (reg:CC 66 cc) (expr_list:REG_UNUSED (reg:DI 4 x4) (expr_list:REG_UNUSED (reg:SI 3 x3) (nil))))) ../drivers/event/octeontx2/otx2_tim_worker.c:154:18: internal compiler erro= r: in final_scan_insn, at final.c:2897 struct rte_event_timer **tim, \ ^ ../drivers/event/octeontx2/otx2_tim_evdev.h:208:1: note: in expansion of ma= cro =E2=80=98FP=E2=80=99 FP(mod, 0, 0, 0, OTX2_TIM_BKT_MOD | OTX2_TIM_ENA_DFB) \ ^ ../drivers/event/octeontx2/otx2_tim_worker.c:161:1: note: in expansion of m= acro =E2=80=98TIM_ARM_TMO_FASTPATH_MODES=E2=80=99 TIM_ARM_TMO_FASTPATH_MODES ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. {standard input}: Assembler messages: {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive Preprocessed source stored into /tmp/ccPcVz1F.out file, please attach this = to your bugreport. """ With buildtype set to debug, the following error reproduces in mempool/octeontx2: """ [868/2485] Compiling C object drivers/libtmp_rte_mempool_octeontx2.a.p/mempool_octeontx2_otx2_mempool_ops= .c.o FAILED: drivers/libtmp_rte_mempool_octeontx2.a.p/mempool_octeontx2_otx2_mempool_ops= .c.o ccache cc -Idrivers/libtmp_rte_mempool_octeontx2.a.p -Idrivers -I../drivers -Idrivers/mempool/octeontx2 -I../drivers/mempool/octeontx2 -Ilib/librte_mem= pool -I../lib/librte_mempool -I. -I.. -Iconfig -I../config -Ilib/librte_eal/incl= ude -I../lib/librte_eal/include -Ilib/librte_eal/linux/include -I../lib/librte_eal/linux/include -Ilib/librte_eal/arm/include -I../lib/librte_eal/arm/include -Ilib/librte_eal/common -I../lib/librte_eal/common -Ilib/librte_eal -I../lib/librte_eal -Ilib/librte_kvargs -I../lib/librte_kvargs -Ilib/librte_metrics -I../lib/librte_metrics -Ilib/librte_telemetry -I../lib/librte_telemetry -Ilib/librte_ring -I../lib/librte_ring -Ilib/librte_mbuf -I../lib/librte_mb= uf -Idrivers/bus/pci -I../drivers/bus/pci -I../drivers/bus/pci/linux -Ilib/librte_pci -I../lib/librte_pci -Idrivers/common/octeontx2 -I../drivers/common/octeontx2 -Ilib/librte_ethdev -I../lib/librte_ethdev -Ilib/librte_net -I../lib/librte_net -Ilib/librte_meter -I../lib/librte_met= er -pipe -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -Werror -g -include rte_config.h -Wextra -Wcast-qual -Wdeprecated -Wformat-nonliteral -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wnested-exte= rns -Wold-style-definition -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers -D_GNU_SOURCE -fPIC -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -MD -MQ drivers/libtmp_rte_mempool_octeontx2.a.p/mempool_octeontx2_otx2_mempool_ops= .c.o -MF drivers/libtmp_rte_mempool_octeontx2.a.p/mempool_octeontx2_otx2_mempool_ops= .c.o.d -o drivers/libtmp_rte_mempool_octeontx2.a.p/mempool_octeontx2_otx2_mempool_ops= .c.o -c ../drivers/mempool/octeontx2/otx2_mempool_ops.c In file included from ../lib/librte_eal/arm/include/rte_spinlock.h:16:0, from ../lib/librte_mempool/rte_mempool.h:44, from ../drivers/mempool/octeontx2/otx2_mempool_ops.c:5: ../drivers/mempool/octeontx2/otx2_mempool_ops.c: In function =E2=80=98npa_lf_aura_op_alloc_bulk=E2=80=99: ../lib/librte_eal/include/rte_common.h:35:13: error: can=E2=80=99t find a r= egister in class =E2=80=98GENERAL_REGS=E2=80=99 while reloading =E2=80=98asm=E2=80=99 #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:72:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ In file included from ../lib/librte_eal/arm/include/rte_vect.h:11:0, from ../drivers/mempool/octeontx2/otx2_mempool_ops.c:6: /usr/lib/gcc/aarch64-redhat-linux/4.8.5/include/arm_neon.h:7457:3: error: = =E2=80=98asm=E2=80=99 operand has impossible constraints __asm__ ("dup %0.2d,%x1" ^ In file included from ../lib/librte_eal/arm/include/rte_spinlock.h:16:0, from ../lib/librte_mempool/rte_mempool.h:44, from ../drivers/mempool/octeontx2/otx2_mempool_ops.c:5: ../lib/librte_eal/include/rte_common.h:35:13: error: =E2=80=98asm=E2=80=99 = operand has impossible constraints #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:72:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ ../lib/librte_eal/include/rte_common.h:35:13: error: =E2=80=98asm=E2=80=99 = operand has impossible constraints #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:154:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ ../lib/librte_eal/include/rte_common.h:35:13: error: =E2=80=98asm=E2=80=99 = operand has impossible constraints #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:201:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ ../lib/librte_eal/include/rte_common.h:35:13: error: =E2=80=98asm=E2=80=99 = operand has impossible constraints #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:230:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ ../lib/librte_eal/include/rte_common.h:35:13: error: =E2=80=98asm=E2=80=99 = operand has impossible constraints #define asm __asm__ ^ ../drivers/mempool/octeontx2/otx2_mempool_ops.c:250:3: note: in expansion of macro =E2=80=98asm=E2=80=99 asm volatile ( ^ [877/2485] Generating rte_common_sfc_efx.sym_chk with a custom command (wra= pped by meson to capture output) """ This was fixed in makefiles some time ago. Related: http://inbox.dpdk.org/dev/20180507054943.GA23226@jerin/ http://inbox.dpdk.org/dev/20191104133009.7763-1-alialnu@mellanox.com/ Need to do a similar fix in the meson build files. --=20 You are receiving this mail because: You are the assignee for the bug.=