From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 40D7C4A63 for ; Fri, 22 Jul 2016 17:05:30 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id f65so60984489wmi.0 for ; Fri, 22 Jul 2016 08:05:30 -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=8xu+2DsuryP6kj0M/fTCiZtxfu37JmS0p/5lqIaMp8M=; b=l043Sz/+SixGd8cs4ZnakfAUyiJ6aQ/N78gzpDv5AkiL1U8C5V5IZ4sKtvhLBkZh31 jFLQwN3EhLPkiOcg7SsEnMRK769N6Gtnj+rO1AMyXGfrtVkZrgvvtbrdsb7gY47j/GAN trJmdfuiZZnLQVy5CKhMOOo3bpXCy1xhpzdiNIhrU1wD0fQmHzLZZtfqG8rUlgLH/rGR VoxacRrwBmugnqcg0JlNkRgodev157iGBpS6C55cEBkS4WaMimX5s0NHrzRDW1J7dsMp ohXYFqFkHuZvv/fLHGLM965v7iE1k7/lANDGk9rpN7nyvz+XXeW42c0U17NDPDVAvPRV Z1Rg== 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=8xu+2DsuryP6kj0M/fTCiZtxfu37JmS0p/5lqIaMp8M=; b=NwTtLYSB+o9Eiy9PddglMCMjjE2QmEpGS3O+yBxdhuJO28AQQ71ah4UD/id5h4aWE8 nad8batTy1vD1Lhh3MZz55qc2KbQ0CiPKnQDVPe22zoqkk6ViIqh/lokP0cw9nlsLy0k AlAv5+py0kkkWVgiEVahSVAB0HjJvI1f3VmjO7+H0yy8BKgKlgofY4UnLtrbQ1sRqL7o ZWeQHnNuaA7ylcmgP82Frr8QeY962jvVI1zJ3TNMGCWgCkJwlf6pvYQsI37ZRPaa5+L4 AQX5Xs6QIWKoQKJbvlciHjpyR99uzKG/nEBYqERIz9CwPvxuN5p/LNGfFCh4YekQI6FT hUJg== X-Gm-Message-State: AEkoouvEOZn0sii3+jHlV/tMpYzmy3AZTmBT0BPF9WPAeQGyUd6VHMdA8tkKjaAvUWINRlwn X-Received: by 10.194.184.175 with SMTP id ev15mr1353516wjc.90.1469199930028; Fri, 22 Jul 2016 08:05:30 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id w129sm12992202wmd.9.2016.07.22.08.05.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jul 2016 08:05:29 -0700 (PDT) From: Thomas Monjalon To: "Azarewicz, PiotrX T" Cc: "Gu, YongjieX" , dev@dpdk.org Date: Fri, 22 Jul 2016 17:05:28 +0200 Message-ID: <6703957.6mWDc13pAY@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <4837007523CC9A4B9414D20C13DE6E64136EC53F@IRSMSX102.ger.corp.intel.com> References: <1468835025-3333-1-git-send-email-thomas.monjalon@6wind.com> <3192148.AlCuAgdt9y@xps13> <4837007523CC9A4B9414D20C13DE6E64136EC53F@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17 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: Fri, 22 Jul 2016 15:05:30 -0000 2016-07-22 14:47, Azarewicz, PiotrX T: > > > I was trying rc3 + fix and latest (today) dpdk version. The same fail > > message: > > > > > > /x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_timer.o): In function > > `get_tsc_freq': > > > eal_timer.c:(.text+0x128): undefined reference to `clock_gettime' > > > eal_timer.c:(.text+0x166): undefined reference to `clock_gettime' > > > /x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_alarm.o): In function > > `eal_alarm_callback': > > > eal_alarm.c:(.text+0xda): undefined reference to `clock_gettime' > > > /x86_64-native-linuxapp-gcc/lib/librte_eal.a(eal_alarm.o): In function > > `rte_eal_alarm_set': > > > eal_alarm.c:(.text+0x211): undefined reference to `clock_gettime' > > > > Interesting. > > Could check the command line in verbose mode to see where is -lrt please? > > Here you are. > -lrt is in separate line: > > gcc -o test -m64 -pthread -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 [...] > test_cryptodev_aes.o test_cryptodev_perf.o test_cryptodev.o test_kvargs.o -Wl, > -lrt > -Wl,-lm -L/home/ptazarex/dpdk_master/x86_64-native-linuxapp-gcc/lib -Wl,-lrte_kni -Wl,-lrte_pipeline -Wl,-lrte_table -Wl,-lrte_port -Wl,-lrte_pdump -Wl,-lrte_distributor -Wl,-lrte_reorder -Wl,-lrte_ip_frag -Wl,-lrte_meter -Wl,-lrte_sched -Wl,-lrte_lpm -Wl,--whole-archive -Wl,-lrte_acl -Wl,--no-whole-archive -Wl,-lrte_jobstats -Wl,-lrte_power -Wl,--whole-archive -Wl,-lrte_timer -Wl,-lrte_hash -Wl,-lrte_vhost -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-lethdev -Wl,-lrte_cryptodev -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -Wl,-lrte_cmdline -Wl,-lrte_cfgfile -Wl,-lrte_pmd_bond - [...] The problem is that -lrt appears before -lrte_eal. The question is: where does it come from? It is even before _LDLIBS-y += -L$(RTE_SDK_BIN)/lib... mystery