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 CED64A00C3 for ; Thu, 21 Apr 2022 03:20:11 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 62072410E1; Thu, 21 Apr 2022 03:20:11 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id A498F40C35 for ; Thu, 21 Apr 2022 03:20:10 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id b7so3401776plh.2 for ; Wed, 20 Apr 2022 18:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Z47sxH50S4wsk1g9LnpOdkGNJ1xozY+8Ey6EIYvFd7w=; b=61+rsTW+4fwihQOzfgpzDDin376EJ4JIGvLoTrrSmX5qBiK13vSKDkN7gQw0F8w7nF e3dlklaWPHg039gPnFxtTkDyU6SRKOqMQsIfncZMuAZyZPq4RggYAPJUJ7HcerQF/2dl CCZAbuyZa4CAVVFIR00URFFgQiSmleG4nDmfrWNPj2WBLAhetqi20CAHEjjL8/zXhyfa ENTh/tkzq+vSwGzvAzC+9JrXP3oj8cIBVlSdY9/2fagqRodhMwSRWwr0lSQchtmBnwzD 3iMlVlNq23TwFYgemDH/7yvRspOM8jtR0UsyE7Q94O3T7BAbhT4gQY8tnp9vuhcKjnRZ xnAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z47sxH50S4wsk1g9LnpOdkGNJ1xozY+8Ey6EIYvFd7w=; b=y+KJJt8M6nWQQvKmDS7vqiL7BidL6y8jLGJ40dG1u1MjjPnERb9fhVb+HZXKCLkNfR drhFBklqmvhkCrPXeM1WI4/b7IFQYKOFUEriY0H1oPXKwY3G2jS1DE4ov+DK9VJ+3BAK +lQv0qC27QkTSFeWilPdmTjEvkzuYzrX33XYW2WnCUY+u0dBnUR3KUsqAwQ+G+VjDu6m cluzusdCHStk0TJ4OzKpSb0bgPJW2Wr4fVfXC4KTT29hgRZKBrjJDzutn52wbg62KmOC TpDa15lvsbh4S7hCwntHIN0wCanTyVsFPC5b+IzfY2qFreOeWrrhII4EcqOQ1TL6CKvV eGNQ== X-Gm-Message-State: AOAM533LHPuv+DQmNCScwN3IpjvtP9gVxSQjrwe/eQ0DwQbpSumSqTTn KEddgKExChAczeVximR6TT1h1A== X-Google-Smtp-Source: ABdhPJyuQX9ApU1Pqg4Yoiu1RafDM6xrsBq7RJWFx/o4Cm1K/wSIbtuXvin9uSh5fz7lDyBrdRx0dA== X-Received: by 2002:a17:903:188:b0:15a:6ee:6a23 with SMTP id z8-20020a170903018800b0015a06ee6a23mr11901082plg.45.1650504009731; Wed, 20 Apr 2022 18:20:09 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id j1-20020a17090a7e8100b001d2edf4b513sm426009pjl.56.2022.04.20.18.20.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 18:20:09 -0700 (PDT) Date: Wed, 20 Apr 2022 18:20:07 -0700 From: Stephen Hemminger To: YZ Xie Cc: users@dpdk.org Subject: Re: execinfo.h: No such file or directory when cross compile with musl-gcc Message-ID: <20220420182007.73d14ee9@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org On Thu, 21 Apr 2022 08:54:54 +0800 YZ Xie wrote: > platform:generic > arch:aarch64 > cpu:'armv8-a > > compile error log: > FAILED: lib/librte_eal.a.p/eal_linux_eal_debug.c.o > aarch64-openwrt-linux-musl-gcc -Ilib/librte_eal.a.p -Ilib -I../lib -I. -I.. > -Iconfig -I../config -Ilib/eal/include -I../lib/eal/include > -Ilib/eal/linux/include -I../lib/eal/linux/include -Ilib/eal/arm/include > -I../lib/eal/arm/include -Ilib/eal/common -I../lib/eal/common -Ilib/eal > -I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/metrics -I../lib/metrics > -Ilib/telemetry -I../lib/telemetry > -I/root/src/software/openwrt-sdk-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64/staging_dir/target-aarch64_generic_musl/usr/include > -I/root/src/software/openwrt-sdk-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/usr/include > -I/root/src/software/openwrt-sdk-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/include/fortify > -I/root/src/software/openwrt-sdk-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64/staging_dir/toolchain-aarch64_generic_gcc-11.2.0_musl/include > -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch > -Wextra -include rte_config.h -Wcast-qual -Wdeprecated -Wformat > -Wformat-nonliteral -Wformat-security -Wmissing-declarations > -Wmissing-prototypes -Wnested-externs -Wold-style-definition > -Wpointer-arith -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings > -Wno-address-of-packed-member -Wno-packed-not-aligned > -Wno-missing-field-initializers -Wno-zero-length-bounds -D_GNU_SOURCE -Os > -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts > -Wno-error=unused-but-set-variable -Wno-error=unused-result > -ffile-prefix-map=/root/src/software/openwrt-sdk-rockchip-armv8_gcc-11.2.0_musl.Linux-x86_64/build_dir/target-aarch64_generic_musl/dpdk-22.03=dpdk-22.03 > -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 > -Wl,-z,now -Wl,-z,relro -fPIC -march=armv8-a+crc -moutline-atomics > -DALLOW_EXPERIMENTAL_API -DALLOW_INTERNAL_API -Wno-format-truncation > '-DABI_VERSION="22.1"' -DRTE_LIBEAL_USE_GETENTROPY > -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal -MD -MQ > lib/librte_eal.a.p/eal_linux_eal_debug.c.o -MF > lib/librte_eal.a.p/eal_linux_eal_debug.c.o.d -o > lib/librte_eal.a.p/eal_linux_eal_debug.c.o -c ../lib/eal/linux/eal_debug.c > ../lib/eal/linux/eal_debug.c:6:10: fatal error: execinfo.h: No such file or > directory > 6 | #include > | ^~~~~~~~~~~~ You need to disable RTE_BACKTRACE_STACK in the config. musl is a small library and probably doesn't have backtrace_symbols()