From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 3168B2B9D for ; Fri, 22 Jul 2016 16:47:18 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 22 Jul 2016 07:47:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,405,1464678000"; d="scan'208";a="1022027371" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by orsmga002.jf.intel.com with ESMTP; 22 Jul 2016 07:47:16 -0700 Received: from irsmsx111.ger.corp.intel.com (10.108.20.4) by irsmsx105.ger.corp.intel.com (163.33.3.28) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 22 Jul 2016 15:47:15 +0100 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.123]) by irsmsx111.ger.corp.intel.com ([169.254.2.113]) with mapi id 14.03.0248.002; Fri, 22 Jul 2016 15:47:15 +0100 From: "Azarewicz, PiotrX T" To: Thomas Monjalon CC: "Gu, YongjieX" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] mk: fix static link with glibc < 2.17 Thread-Index: AQHR4NkDQLlRXzmyakSHHuBqgpmUDKAgdxCAgAIIpoCAAfiN4P//8z8AgAAXgfD///EqgIAAGMBw Date: Fri, 22 Jul 2016 14:47:15 +0000 Message-ID: <4837007523CC9A4B9414D20C13DE6E64136EC53F@IRSMSX102.ger.corp.intel.com> References: <1468835025-3333-1-git-send-email-thomas.monjalon@6wind.com> <1680274.k5QNW9e4Yu@xps13> <4837007523CC9A4B9414D20C13DE6E64136EC4FB@IRSMSX102.ger.corp.intel.com> <3192148.AlCuAgdt9y@xps13> In-Reply-To: <3192148.AlCuAgdt9y@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 14:47:18 -0000 > > > > > > Tested-by: Yongjie Gu > > > > > > > > > > Applied > > > > > > > > OS: UB1204 > > > > GCC: 4.6.4 > > > > Kernel: 3.13.0-45 > > > > glibc 2.15 > > > > > > > > x86_64-native-linuxapp-gcc: FAIL > > > > > > Please don't be a bot and explain us the error you see. > > > > 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' >=20 > 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=3Dnative -DRTE_MACHINE_CPUFLAG_SSE -DRTE_= MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3 -DRTE_MACHINE_CPUFLAG_SSSE3= -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2 -DRTE_MACHINE_CP= UFLAG_AES -DRTE_MACHINE_CPUFLAG_PCLMULQDQ -DRTE_MACHINE_CPUFLAG_AVX -I/hom= e/ptazarex/dpdk_master/x86_64-native-linuxapp-gcc/include -include /home/pt= azarex/dpdk_master/x86_64-native-linuxapp-gcc/include/rte_config.h -O3 -W -= Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wold-= style-definition -Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual = -Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Werror -Wno-= missing-field-initializers -Wno-uninitialized -D_GNU_SOURCE commands.o test= .o resource.o test_resource.o test_resource_c.res.o test_prefetch.o test_by= teorder.o test_per_lcore.o test_atomic.o test_malloc.o test_cycles.o test_s= pinlock.o test_memory.o test_memzone.o test_ring.o test_ring_perf.o test_pm= d_perf.o test_table.o test_table_pipeline.o test_table_tables.o test_table_= ports.o test_table_combined.o test_table_acl.o test_rwlock.o test_timer.o t= est_timer_perf.o test_timer_racecond.o test_mempool.o test_mempool_perf.o t= est_mbuf.o test_logs.o test_memcpy.o test_memcpy_perf.o test_hash.o test_th= ash.o test_hash_perf.o test_hash_functions.o test_hash_scaling.o test_hash_= multiwriter.o test_lpm.o test_lpm_perf.o test_lpm6.o test_lpm6_perf.o test_= debug.o test_errno.o test_tailq.o test_string_fns.o test_cpuflags.o test_mp= _secondary.o test_eal_flags.o test_eal_fs.o test_alarm.o test_interrupts.o = test_version.o test_func_reentrancy.o test_cmdline.o test_cmdline_num.o tes= t_cmdline_etheraddr.o test_cmdline_portlist.o test_cmdline_ipaddr.o test_cm= dline_cirbuf.o test_cmdline_string.o test_cmdline_lib.o test_red.o test_sch= ed.o test_meter.o test_kni.o test_power.o test_power_acpi_cpufreq.o test_po= wer_kvm_vm.o test_common.o test_distributor.o test_distributor_perf.o test_= reorder.o test_devargs.o virtual_pmd.o packet_burst_generator.o test_acl.o = test_link_bonding.o test_link_bonding_mode4.o test_link_bonding_rssconf.o t= est_pmd_ring.o test_pmd_ring_perf.o test_cryptodev_aes.o test_cryptodev_per= f.o test_cryptodev.o test_kvargs.o -Wl, -lrt=20 -Wl,-lm -L/home/ptazarex/dpdk_master/x86_64-native-linuxapp-gcc/lib -Wl,-lr= te_kni -Wl,-lrte_pipeline -Wl,-lrte_table -Wl,-lrte_port -Wl,-lrte_pdump -W= l,-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_t= imer -Wl,-lrte_hash -Wl,-lrte_vhost -Wl,-lrte_kvargs -Wl,-lrte_mbuf -Wl,-le= thdev -Wl,-lrte_cryptodev -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -W= l,-lrte_cmdline -Wl,-lrte_cfgfile -Wl,-lrte_pmd_bond -Wl,-lrte_pmd_af_packe= t -Wl,-lrte_pmd_bnxt -Wl,-lrte_pmd_cxgbe -Wl,-lrte_pmd_e1000 -Wl,-lrte_pmd_= ena -Wl,-lrte_pmd_enic -Wl,-lrte_pmd_fm10k -Wl,-lrte_pmd_i40e -Wl,-lrte_pmd= _ixgbe -Wl,-lrte_pmd_null -Wl,-lrte_pmd_ring -Wl,-lrte_pmd_virtio -Wl,-lrte= _pmd_vhost -Wl,-lrte_pmd_vmxnet3_uio -Wl,-lrte_pmd_null_crypto -Wl,--no-who= le-archive -Wl,-ldl -Wl,-export-dynamic -Wl,-export-dynamic -Wl,-export-dyn= amic -L/home/ptazarex/dpdk_master/x86_64-native-linuxapp-gcc/lib -Wl,--as-n= eeded -Wl,-Map=3Dtest.map -Wl,--cref /home/ptazarex/dpdk_master/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'