From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0082.outbound.protection.outlook.com [104.47.0.82]) by dpdk.org (Postfix) with ESMTP id F407B2BA2 for ; Wed, 13 Jul 2016 08:01:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=NJeyd3sNDBo5C3mFJMwWe+Q5H7j7zjlqv7eduKoSEtY=; b=rmgEKIqtLGX4Kw3McFTroEXVgN4qJlC8y7coD5Xj/4Bei+TDFl8JvuWfZnYpYukaUpzo1NOqtNHqZOCZyh7pi4CH07Jm4maUlqcdxfgLSy/lzSiOP9ZK/N+wW3FDTgwTVXNxvbgLgYlbRdmlsCvt5mb9gxGVWmoN027/BGm3oTg= Received: from HE1PR05MB1578.eurprd05.prod.outlook.com (10.164.50.16) by HE1PR05MB1580.eurprd05.prod.outlook.com (10.164.50.18) with Microsoft SMTP Server (TLS) id 15.1.534.14; Wed, 13 Jul 2016 06:01:48 +0000 Received: from HE1PR05MB1578.eurprd05.prod.outlook.com ([10.164.50.16]) by HE1PR05MB1578.eurprd05.prod.outlook.com ([10.164.50.16]) with mapi id 15.01.0534.022; Wed, 13 Jul 2016 06:01:49 +0000 From: Raslan Darawsheh To: Thomas Monjalon CC: "dev@dpdk.org" , Christian Ehrhardt Thread-Topic: [dpdk-dev] Compiling DPDK is not working on Red Hat 6.7 Thread-Index: AdHcJGDuYmCQzhStS5WOav6nShRcKAAARm0AAALhXvAAAYaBgAAlODvw Date: Wed, 13 Jul 2016 06:01:48 +0000 Message-ID: References: <2175995.EOO7pnvdQg@xps13> In-Reply-To: <2175995.EOO7pnvdQg@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; x-originating-ip: [212.14.243.54] x-ms-office365-filtering-correlation-id: 63100166-7726-4300-b7f3-08d3aae32db2 x-microsoft-exchange-diagnostics: 1; HE1PR05MB1580; 6:+1X6CduL6c3xglaabcSETEIEbeREWfCYgZyCc5UCJXDtwqTWzkklF6ftiYtzm3qwyX4PPK51Fj0S8s41IHtXVOUOUgGBYlIXM8TMNmxBciHEUk8ZqvvmGNxbvZFKikMzFohhnUkzvNEGbBg6TpvZTh8HqpgndGrzHAgdtlkQdGudunHSvNVQa8YsITbWgEoCPgzr1abqpC4T+ViVUy2WrzYBBLRIb3KDdVleGg/Vs7tAts6cqZvCm92KH6/oyOG+yvFuLhDnsiVGUeC3RDObJ47gD5ALA+U5YVl/IwT7JQsd/mh3aFfMGpaiih26LUAg3TNamXul2JMNtyWhEUOFKg==; 5:WdLr4ERNmDiJjqaDd4a3axoUcR8ATDXg9jmzpnbmddiz9oL66pC3GHrA886r8uTwa6jzmS+MMt42m35vferQj0MLr1ElQNWsrT6IIKxVW+HwmuRo9BllM6ix9r3DEA6OzFXkzLslFgT3T5iwmYZK4w==; 24:8SX9sZ5wV6Wn1lPkZqMGmYJy8E+iu3SVu62xZrBqeON7+NzTCtfWIUqS7Vs+ETO41xEEDUoI5uE2SI/XAB1l2iOogtHeneW1LsZUbDIPR+8=; 7:66zk8wccuZ5tvWCc8eenXjS6VT2B1VdsFmde4w1cccdPffE4ryJZfR80bbJuoHfP+NDcE2roZ/zTz4op0VRC5VL3oL5MMe9RarWUfUPldp493HtgjInla+akTjTXOYP+tRhCTzfhf94kPK3RDFOiwywpk22vB9BsYwMIl3d0OWvUrcW/STjxBDCWwrSz402MvxNc/JH7BTGzklW5b90s6VaobPhItd+LkEzlvf2sjupwvsJZ9PT4NMJwbA6nprUW x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR05MB1580; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:HE1PR05MB1580; BCL:0; PCL:0; RULEID:; SRVR:HE1PR05MB1580; x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(377454003)(377424004)(13464003)(97736004)(101416001)(9686002)(76576001)(8936002)(3280700002)(54356999)(2950100001)(10400500002)(2900100001)(76176999)(50986999)(3660700001)(33656002)(77096005)(66066001)(74316002)(7696003)(5003600100003)(7736002)(87936001)(7846002)(5002640100001)(305945005)(68736007)(2906002)(8676002)(81156014)(81166006)(86362001)(19580405001)(19580395003)(110136002)(93886004)(586003)(3846002)(6116002)(102836003)(106356001)(189998001)(105586002)(4326007)(92566002)(122556002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR05MB1580; H:HE1PR05MB1578.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2016 06:01:48.9006 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR05MB1580 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: Wed, 13 Jul 2016 06:01:50 -0000 It seems that the patch fixed the issue.=20 Kindest regards=20 Raslan Darawsheh -----Original Message----- From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com]=20 Sent: Tuesday, July 12, 2016 3:16 PM To: Raslan Darawsheh Cc: dev@dpdk.org; Christian Ehrhardt Subject: Re: [dpdk-dev] Compiling DPDK is not working on Red Hat 6.7 Hi, 2016-07-12 11:35, Raslan Darawsheh: > I think the option is there as you see: >=20 [...] > -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 +=3D -rpath=3D$(RTE_SDK_BIN)/lib endif =20 +MAPFLAGS =3D -Map=3D$@.map --cref + .PHONY: all all: install =20 @@ -190,15 +192,13 @@ build: _postbuild exe2cmd =3D $(strip $(call dotfile,$(patsubst %,%.cmd,$(1)))) =20 ifeq ($(LINK_USING_CC),1) -override EXTRA_LDFLAGS :=3D $(call linkerprefix,$(EXTRA_LDFLAGS)) -O_TO_EX= E =3D $(CC) $(CFLAGS) \ - $(call linkerprefix,$(LDLIBS)) \ - $(call linkerprefix,$(LDFLAGS)) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ - -Wl,-Map=3D$(@).map,--cref -o $@ $(OBJS-y) +O_TO_EXE =3D $(CC) -o $@ $(CFLAGS) $(OBJS-y) $(call linkerprefix, \ + $(LDLIBS) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ + $(MAPFLAGS)) else -O_TO_EXE =3D $(LD) $(LDLIBS) \ - $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ - -Map=3D$(@).map --cref -o $@ $(OBJS-y) +O_TO_EXE =3D $(LD) -o $@ $(OBJS-y) + $(LDLIBS) $(LDFLAGS) $(LDFLAGS_$(@)) $(EXTRA_LDFLAGS) \ + $(MAPFLAGS) endif O_TO_EXE_STR =3D $(subst ','\'',$(O_TO_EXE)) #'# fix syntax highlight O_T= O_EXE_DISP =3D $(if $(V),"$(O_TO_EXE_STR)"," LD $(@)")