From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id DF210DE3 for ; Tue, 12 Jul 2016 14:15:42 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id o80so22762325wme.1 for ; Tue, 12 Jul 2016 05:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=wqsXPIVPwJQfaakb6wgfw7U07MjX9C74Yq1g1343nSQ=; b=cs3f7T5uI0Y7dJ/n2AAqVOcUK2fxu3PhkHv7nQWLxU9iT5PZa8AU3GFx9FLakEVufE FGYYgtSZykkU9hN/65d8YWy7GUCCAsWOl+NZtoMZiLLV6kplOMbqtwrSdWR3UDghaxk+ CTli6hFJVToL/3LC0GMCKTVEhlLhfeWm2ZqjLhJIk2IXyyaeMUCqJrCwlUl3xFy/xpDR vsK6mlf6X/6+eK5yqegPDamqOXi5Q7dmaCnhPWDsz6p4xCKjAh61eEFIdOOCIngp5MTZ 2x+0yBrqFJrgiLvQzBjI3pWKCOuVXyMdBpVPbHFfu7sEMwPZQSGd/60KMjg5JR7OuOro JVWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=wqsXPIVPwJQfaakb6wgfw7U07MjX9C74Yq1g1343nSQ=; b=M2/IGvEMbKdJ4oFNTlioCcCn2ECTFhXj7JETWCUxVOowWRWX70oqmmw/8e/czOrJLl EG1Kxdi6G5AOR1aQXkDQMWb1s6vqCNEZBRgKSLgDCaJHdGhM0BOMMDSEcJffY68SOxvR VUOPJmQVklZ11KnGgFrrXDi/b9gMaAm3Z7rJK+s8KudBABE4X4J2ZT0lSeTAQGgCohjm waNi9jZElUqXkFZKI279+lSD97SrfXoX+rdrrh6bW9/IDZEmKoqi9LHSX+lKvvlYztJM 9mLUAPpgSSGavS5Aq5LfVnXyhtahrfj2gcWndq8TuVMiSqJ2ISs1yG2Rne0HmU5MChl1 mkpw== X-Gm-Message-State: ALyK8tJahicOtwT538wymndynGxaBDW42z9ousKBuU0NeHVI8ZuIyAoMjmgt385vle92G9NG X-Received: by 10.28.125.80 with SMTP id y77mr2959328wmc.25.1468325742650; Tue, 12 Jul 2016 05:15:42 -0700 (PDT) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id q187sm6952473wma.17.2016.07.12.05.15.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Jul 2016 05:15:41 -0700 (PDT) From: Thomas Monjalon To: Raslan Darawsheh Cc: dev@dpdk.org, Christian Ehrhardt Date: Tue, 12 Jul 2016 14:15:39 +0200 Message-ID: <2175995.EOO7pnvdQg@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] Compiling DPDK is not working on Red Hat 6.7 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 12:15:43 -0000 Hi, 2016-07-12 11:35, Raslan Darawsheh: > I think the option is there as you see: > [...] > -Wl,--as-needed -Wl,-lrt -Wl,-lm |...] -Wl,-lrte_eal [...] > eal_timer.c:(.text+0x152): undefined reference to `clock_gettime' I suspect we need -lrt after -lrte_eal. Please could you try the following patch? --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -176,6 +176,8 @@ ifeq ($(RTE_DEVEL_BUILD)$(CONFIG_RTE_BUILD_SHARED_LIB),yy) LDFLAGS += -rpath=$(RTE_SDK_BIN)/lib endif +MAPFLAGS = -Map=$@.map --cref + .PHONY: all all: install @@ -190,15 +192,13 @@ build: _postbuild exe2cmd = $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) ifeq ($(LINK_USING_CC),1) -override EXTRA_LDFLAGS := $(call linkerprefix,$(EXTRA_LDFLAGS)) -O_TO_EXE = $(CC) $(CFLAGS) \ - $(call linkerprefix,$(LDLIBS)) \ - $(call linkerprefix,$(LDFLAGS)) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ - -Wl,-Map=$(@).map,--cref -o $@ $(OBJS-y) +O_TO_EXE = $(CC) -o $@ $(CFLAGS) $(OBJS-y) $(call linkerprefix, \ + $(LDLIBS) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ + $(MAPFLAGS)) else -O_TO_EXE = $(LD) $(LDLIBS) \ - $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ - -Map=$(@).map --cref -o $@ $(OBJS-y) +O_TO_EXE = $(LD) -o $@ $(OBJS-y) + $(LDLIBS) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ + $(MAPFLAGS) endif O_TO_EXE_STR = $(subst ','\'',$(O_TO_EXE)) #'# fix syntax highlight O_TO_EXE_DISP = $(if $(V),"$(O_TO_EXE_STR)"," LD $(@)")