From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 3/3] eal: remove references to execinfo.h for musl Date: Fri, 10 Mar 2017 13:40:20 +0100 Message-ID: <1517181.dliHzHtphb@xps13> References: <1489147132-40922-1-git-send-email-wei.dai@intel.com> <1489147132-40922-4-git-send-email-wei.dai@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, john.mcnamara@intel.com, david.marchand@intel.com To: Wei Dai Return-path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id 1D708201 for ; Fri, 10 Mar 2017 13:40:21 +0100 (CET) Received: by mail-wm0-f41.google.com with SMTP id v186so9609249wmd.0 for ; Fri, 10 Mar 2017 04:40:21 -0800 (PST) In-Reply-To: <1489147132-40922-4-git-send-email-wei.dai@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2017-03-10 19:58, Wei Dai: > @@ -47,6 +50,7 @@ > /* dump the stack of the calling core */ > void rte_dump_stack(void) > { > +#ifndef RTE_LIBC_MUSL > void *func[BACKTRACE_SIZE]; > char **symb = NULL; > int size; > @@ -64,6 +68,7 @@ void rte_dump_stack(void) > } > > free(symb); > +#endif > } There are probably other libc implementations not supporting this feature. Instead of calling it "RTE_LIBC_MUSL", it should something like "ENABLE_BACKTRACE". Then you can add a musl section in the Linux quick start guide.