From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 55B67A04FF; Thu, 5 May 2022 18:59:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FC584014F; Thu, 5 May 2022 18:59:51 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3175A40042 for ; Thu, 5 May 2022 18:59:49 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 2284CA0501; Thu, 5 May 2022 18:59:49 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1005] Build failure with gcc11 in When Using Environment Modules Date: Thu, 05 May 2022 16:59:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: meson X-Bugzilla-Version: 22.03 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: drc@linux.vnet.ibm.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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org https://bugs.dpdk.org/show_bug.cgi?id=3D1005 Bug ID: 1005 Summary: Build failure with gcc11 in When Using Environment Modules Product: DPDK Version: 22.03 Hardware: POWER OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: meson Assignee: dev@dpdk.org Reporter: drc@linux.vnet.ibm.com Target Milestone: --- Install and enable IBM Advanced Toolchain 15.0 using environment modules: $ module load at15.0 $=C2=A0gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/opt/at15.0/libexec/gcc/powerpc64le-linux-gnu/11.2.1/= lto-wrapper Target: powerpc64le-linux-gnu Configured with: /build/at15.0_RHEL8_ppc64le-ppc64le/114/at15.0-2.redhat-8_ppc64le_ppc64le/s= ources/gcc/configure --build=3Dpowerpc64le-linux-gnu --host=3Dpowerpc64le-linux-gnu --target=3Dpowerpc64le-linux-gnu --with-cpu=3Ddefault64 --prefix=3D/opt/at1= 5.0 --with-long-double-128 --enable-secureplt --disable-multilib --with-advance-toolchain=3Dat15.0 --with-glibc-version=3D2.34 --with-local-prefix=3D/opt/at15.0 --enable-threads=3Dposix --enable-languages=3Dc,c++,fortran,go --enable-__cxa_atexit --enable-shared --enable-checking=3Drelease --enable-lto --enable-gnu-indirect-function --enable-initfini-array --enable-linker-build-id --with-system-zlib --with-gmp-include=3D/opt/at15.0/include --with-gmp-lib=3D/opt/at15.0/lib64 --with-mpfr-include=3D/opt/at15.0/include --with-mpfr-lib=3D/opt/at15.0/lib= 64 --with-mpc-include=3D/opt/at15.0/include --with-mpc-lib=3D/opt/at15.0/lib64 --without-ppl --without-cloog --without-libelf --with-host-libstdcxx=3D'-L/opt/at15.0/lib64 -lstdc++ -lsupc++ -lgmp -lgmpx= x -lm' --with-cpu=3Dpower8 --with-tune=3Dpower10 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.2.1 20220211 (Advance-Toolchain 15.0-2) [64575dfb22ae] (GCC) Compile DPDK: $ meson -v 0.61.2 $ meson build $ ninja -C build Observe link errors: ninja: Entering directory `build' [3324/3341] Linking target app/dpdk-test-acl FAILED: app/dpdk-test-acl cc -o app/dpdk-test-acl app/dpdk-test-acl.p/test-acl_main.c.o -Wl,--as-nee= ded -Wl,--no-undefined -Wl,-O1 -Wl,--whole-archive -Wl,--start-group lib/librte_node.a lib/librte_graph.a lib/librte_flow_classify.a lib/librte_pipeline.a lib/librte_table.a lib/librte_pdump.a lib/librte_port= .a lib/librte_fib.a lib/librte_ipsec.a lib/librte_vhost.a lib/librte_stack.a lib/librte_security.a lib/librte_sched.a lib/librte_reorder.a lib/librte_ri= b.a lib/librte_dmadev.a lib/librte_regexdev.a lib/librte_rawdev.a lib/librte_power.a lib/librte_pcapng.a lib/librte_member.a lib/librte_lpm.a lib/librte_latencystats.a lib/librte_kni.a lib/librte_jobstats.a lib/librte_ip_frag.a lib/librte_gso.a lib/librte_gro.a lib/librte_gpudev.a lib/librte_eventdev.a lib/librte_efd.a lib/librte_distributor.a lib/librte_cryptodev.a lib/librte_compressdev.a lib/librte_cfgfile.a lib/librte_bpf.a lib/librte_bitratestats.a lib/librte_bbdev.a lib/librte_ac= l.a lib/librte_timer.a lib/librte_hash.a lib/librte_metrics.a lib/librte_cmdlin= e.a lib/librte_pci.a lib/librte_ethdev.a lib/librte_meter.a lib/librte_net.a lib/librte_mbuf.a lib/librte_mempool.a lib/librte_rcu.a lib/librte_ring.a lib/librte_eal.a lib/librte_telemetry.a lib/librte_kvargs.a drivers/librte_common_cpt.a drivers/librte_common_dpaax.a drivers/librte_common_iavf.a drivers/librte_common_octeontx.a drivers/librte_bus_auxiliary.a drivers/librte_bus_dpaa.a drivers/librte_bus_fslmc.a drivers/librte_bus_ifpga.a drivers/librte_bus_pc= i.a drivers/librte_bus_vdev.a drivers/librte_bus_vmbus.a drivers/librte_common_cnxk.a drivers/librte_common_mlx5.a drivers/librte_common_qat.a drivers/librte_mempool_bucket.a drivers/librte_mempool_cnxk.a drivers/librte_mempool_dpaa.a drivers/librte_mempool_dpaa2.a drivers/librte_mempool_octeontx.a drivers/librte_mempool_ring.a drivers/librte_mempool_stack.a drivers/librte_dma_cnxk.a drivers/librte_dma_dpaa.a drivers/librte_dma_skeleton.a drivers/librte_net_af_packet.a drivers/librte_net_ark.a drivers/librte_net_atlantic.a drivers/librte_net_a= vp.a drivers/librte_net_axgbe.a drivers/librte_net_bnx2x.a drivers/librte_net_bn= xt.a drivers/librte_net_bond.a drivers/librte_net_cnxk.a drivers/librte_net_cxgb= e.a drivers/librte_net_dpaa.a drivers/librte_net_dpaa2.a drivers/librte_net_e10= 00.a drivers/librte_net_ena.a drivers/librte_net_enetc.a drivers/librte_net_enetfec.a drivers/librte_net_enic.a drivers/librte_net_failsafe.a drivers/librte_net_fm10k.a drivers/librte_net_hinic.a drivers/librte_net_i40e.a drivers/librte_net_iav= f.a drivers/librte_net_ice.a drivers/librte_net_igc.a drivers/librte_net_ionic.a drivers/librte_net_ipn3ke.a drivers/librte_net_ixgbe.a drivers/librte_net_k= ni.a drivers/librte_net_liquidio.a drivers/librte_net_memif.a drivers/librte_net_mlx4.a drivers/librte_net_mlx5.a drivers/librte_net_netv= sc.a drivers/librte_net_nfp.a drivers/librte_net_ngbe.a drivers/librte_net_null.a drivers/librte_net_octeontx.a drivers/librte_net_octeontx_ep.a drivers/librte_net_pcap.a drivers/librte_net_pfe.a drivers/librte_net_qede.a drivers/librte_net_ring.a drivers/librte_net_softnic.a drivers/librte_net_t= ap.a drivers/librte_net_thunderx.a drivers/librte_net_txgbe.a drivers/librte_net_vdev_netvsc.a drivers/librte_net_vhost.a drivers/librte_net_virtio.a drivers/librte_net_vmxnet3.a drivers/librte_raw_cnxk_bphy.a drivers/librte_raw_cnxk_gpio.a drivers/librte_raw_dpaa2_cmdif.a drivers/librte_raw_dpaa2_qdma.a drivers/librte_raw_ifpga.a drivers/librte_raw_ntb.a drivers/librte_raw_skeleton.a drivers/librte_crypto_bcmfs.a drivers/librte_crypto_caam_jr.a drivers/librte_crypto_ccp.a drivers/librte_crypto_cnxk.a drivers/librte_crypto_dpaa_sec.a drivers/librte_crypto_dpaa2_sec.a drivers/librte_crypto_mlx5.a drivers/librte_crypto_nitrox.a drivers/librte_crypto_null.a drivers/librte_crypto_octeontx.a drivers/librte_crypto_openssl.a drivers/librte_crypto_scheduler.a drivers/librte_crypto_virtio.a drivers/librte_compress_mlx5.a drivers/librte_compress_octeontx.a drivers/librte_compress_zlib.a drivers/librte_regex_mlx5.a drivers/librte_regex_cn9k.a drivers/librte_vdpa_ifc.a drivers/librte_vdpa_mlx5.a drivers/librte_event_cnxk.a drivers/librte_event_dpaa.a drivers/librte_event_dpaa2.a drivers/librte_event_dsw.a drivers/librte_event_opdl.a drivers/librte_event_skeleton.a drivers/librte_event_sw.a drivers/librte_event_octeontx.a drivers/librte_baseband_acc100.a drivers/librte_baseband_fpga_5gnr_fec.a drivers/librte_baseband_fpga_lte_fe= c.a drivers/librte_baseband_la12xx.a drivers/librte_baseband_null.a drivers/librte_baseband_turbo_sw.a -Wl,--no-whole-archive -Wl,--no-as-needed -pthread -lm -ldl -lnuma -lfdt -Wl,-rpath,/lib/../lib64:XXXXXXXXXXXXXXXXXX -Wl,-rpath-link,/lib/../lib64 -Wl,--export-dynamic /usr/lib64/libpcap.so /usr/lib64/libelf.so /lib/../lib64/libmlx5.so /lib/../lib64/libibverbs.so /usr/lib64/libcrypto.so /usr/lib64/libz.so /lib/../lib64/libmlx4.so -lrt -Wl,--end-group /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_dlopen_mode@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__nanosleep_nocancel@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_current_sigrtmin_private@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_dlclose@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_siglongjmp@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_longjmp@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_allocate_rtsig_private@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_thread_freeres@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_dlsym@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_current_sigrtmax_private@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__pause_nocancel@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `__libc_pthread_init@GLIBC_PRIVATE' /opt/at15.0/lib/gcc/powerpc64le-linux-gnu/11.2.1/../../../../powerpc64le-li= nux-gnu/bin/ld: /lib/../lib64/libpthread.so.0: undefined reference to `_dl_make_stack_executable@GLIBC_PRIVATE' collect2: error: ld returned 1 exit status ... Issue appears to be related to glibc 2.34 reorganization (https://developers.redhat.com/articles/2021/12/17/why-glibc-234-removed-li= bpthread#the_developer_view) and library path enabled by meson (-Wl,-rpath-link,/lib/../lib64). --=20 You are receiving this mail because: You are the assignee for the bug.=