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 39B8FA0C4B; Sun, 8 Aug 2021 19:46:20 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD98240683; Sun, 8 Aug 2021 19:46:19 +0200 (CEST) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by mails.dpdk.org (Postfix) with ESMTP id 22A904067E for ; Sun, 8 Aug 2021 19:46:18 +0200 (CEST) Received: by mail-lf1-f44.google.com with SMTP id d4so149080lfk.9 for ; Sun, 08 Aug 2021 10:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=+QdUQLWvJFb0iph0JdjY22ebLFs6V4GTxjBaQscTHDI=; b=qeWNzocAvl1jU/o3VLnx7ZVwlFyW7Gv3CtRQCtcJGgZ0fAIk1ZqKPtZWKmlrD62w5C 6o5z4EVtm79dp18NzQJ2J1rpmphUcI7hoFZDZnKi64sIh7FV7qpqFwBl5v6cYxd9S3to n1h3bGuW9fZDclq2N1H7fGAcVVFjiqKBksrDWpTIYAkAewg5vv/eUp7DmmQdfuAu0SiT jgj6FcrrxOEJkcbPP9i+PCvtpjNgbiX7Ms9DaT/V/qDflcjHzeDPk9JEYUt2MFBgvV9v KB8lqpCfhAdgWfvSetKAA8q9ENjkjw/R1YpX0u0WEG+TIvc/zXzb1b16KpBbYgq++TNc FdMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=+QdUQLWvJFb0iph0JdjY22ebLFs6V4GTxjBaQscTHDI=; b=GqfuFISq/XusPr2nnKbggcF1hCNMc1HltfPBVHjPFJPwNHyAidtqumYyJLbQSsd7+O 6Y4ssjXWKq6SfEV5DPLwOcKcz/MZn5Qdlyc9onayz9kr+jNEzxMbl90c9JimX9Lshxv8 /RaD0bEeuiLYEH9GZSXkcFB3pIcwyrHT+CqM0MpEtCe1HR362RV/McnTrEtCWWfh1t2a +w3Qdy2O2Ou+HE4ss+KWwswaf2H+yyThFpkWVdguPN0r5b/2ViOaxnYESAXtddjRMlgd 8zlEOohqHjqN5jCD03gC04Q/vs9dNwlnHkqTElXliPnUgdkh9LKxPeTxPpHdeRxPS3dp wHjw== X-Gm-Message-State: AOAM530mhmRYK+YfJkUsOApBvV0n2b0i1y6+VGKlfvpnigu11yYlyyzD y5A+z0NkH2X1GhooohdVPeIGgaKCYDU1cC38c1aSMgUVovb5PA== X-Google-Smtp-Source: ABdhPJyFk7pudC+3fx6s/9CPVg7gvyzJXu4Lh3H1mMBFSlFM/tbRrdNPNqoqQcGjcGye17XrtKPflNAd2rBYZ4khq+0= X-Received: by 2002:a05:6512:3b94:: with SMTP id g20mr14715617lfv.0.1628444777197; Sun, 08 Aug 2021 10:46:17 -0700 (PDT) MIME-Version: 1.0 From: William Tu Date: Sun, 8 Aug 2021 10:45:40 -0700 Message-ID: To: dpdk-dev , Dmitry Kozliuk Cc: Sergey Madaminov Content-Type: text/plain; charset="UTF-8" Subject: [dpdk-dev] Linker error on rte_dump_stack() on Windows 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 Sender: "dev" Hi, While linking OVS to Windows DPDK library, static link to librte_eal.a, we hit some error about rte_dump_stack(). I don't know why other symbols work, but only a couple symbols showed errors here. Any suggestions about how to debug/fix this? Thank you! [5/15] Linking target utilities/ovs-vsctl.exeFAILED: utilities/ovs-vsctl.exe"clang" -Wl,/MACHINE:X64 -Wl,/OUT:utilities/ovs-vsctl.exe utilities/ovs-vsctl.exe.p/ovs-vsctl.c.obj "-Wl,/nologo" "-Wl,/release" "-Wl,/nologo" "-Wl,/OPT:REF" "lib\libopenvswitch.a" "-Wl,--no-undefined" "C:/dpdk/install/lib/librte_eal.a" "C:/dpdk/install/lib/librte_ethdev.a" "C:/dpdk/install/lib/librte_mempool.a" "C:/dpdk/install/lib/librte_mbuf.a" "C:/dpdk/install/lib/librte_meter.a""C:/dpdk/install/lib/librte_telemetry.a" "C:/dpdk/install/lib/librte_kvargs.a" "C:/PTHREADS-BUILT/lib/libpthreadVC3.lib" "-lWs2_32" "-lWbemUuid" "-lShlwapi" "-lIphlpapi" "-Wl,/SUBSYSTEM:CONSOLE" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" LINK : warning LNK4044: unrecognized option '/-no-undefined'; ignored librte_eal.a(eal_windows_eal_debug.c.obj) : error LNK2019: unresolved external symbol __imp_SymInitialize referenced in function rte_dump_stack librte_eal.a(eal_windows_eal_debug.c.obj) : error LNK2019: unresolved external symbol __imp_SymSetOptions referenced in function rte_dump_stack librte_eal.a(eal_windows_eal_debug.c.obj) : error LNK2019: unresolved external symbol __imp_SymFromAddr referenced in function rte_dump_stack librte_eal.a(eal_windows_eal_debug.c.obj) : error LNK2019: unresolved external symbol __imp_SymGetLineFromAddr64 referenced in function rte_dump_stack librte_eal.a(eal_windows_eal_debug.c.obj) : error LNK2019: unresolved external symbol __imp_SymCleanup referenced in function rte_dump_stack librte_eal.a(eal_windows_eal_memory.c.obj) : error LNK2019: unresolved external symbol __imp_SetupDiGetClassDevsA referenced in function eal_mem_virt2iova_init Running dumpbin, I can see the rte_dump_stack symbol. c:\dpdk\install\lib>dumpbin /ALL librte_eal.a | grep rte_dump_stack D9E52 rte_dump_stack 00000045 REL32 00000000 139 rte_dump_stack 139 00000000 UNDEF notype External | rte_dump_stack 00000000 ADDR32NB 00000000 145 rte_dump_stack 00000004 ADDR32NB 00000239 145 rte_dump_stack 145 00000000 SECT1 notype () External | rte_dump_stack other symbols look similar... c:\dpdk\install\lib>dumpbin /ALL librte_eal.a | grep rte_eal_cleanup CE92C rte_eal_cleanup 00000099 REL32 00000000 13C rte_eal_cleanup 13C 00000000 UNDEF notype External | rte_eal_cleanup 0000000C ADDR32NB 00000000 1B6 rte_eal_cleanup 00000010 ADDR32NB 00000027 1B6 rte_eal_cleanup 1B6 00000100 SECT1 notype () External | rte_eal_cleanup Thank you William