From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.bisdn.de (mx.bisdn.de [185.27.182.31]) by dpdk.org (Postfix) with ESMTP id CBA197E80 for ; Wed, 22 Oct 2014 09:48:41 +0200 (CEST) Received: from [192.168.1.43] (42.Red-79-146-253.dynamicIP.rima-tde.net [79.146.253.42]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.bisdn.de (Postfix) with ESMTPSA id 8B3BFA2DA9 for ; Wed, 22 Oct 2014 09:57:00 +0200 (CEST) Message-ID: <5447636C.7090701@bisdn.de> Date: Wed, 22 Oct 2014 09:57:32 +0200 From: Marc Sune User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: "" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] clang compilation error in librte_table 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, 22 Oct 2014 07:48:42 -0000 Hello, There seems to be compilation issues with clang(3.0-6.2) and current HEAD (0c6bc8e) within librte_table: == Build lib/librte_table CC rte_table_lpm.o CC rte_table_lpm_ipv6.o CC rte_table_hash_key8.o /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:212:4: error: implicit declaration of function '_mm_minpos_epu16' is invalid in C99 [-Werror,-Wimplicit-function-declaration] lru_update(bucket, i); ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:14: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:212:4: error: initializing '__m128i' with an expression of incompatible type 'int'; lru_update(bucket, i); ^~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:229:4: error: initializing '__m128i' with an expression of incompatible type 'int'; lru_update(bucket, i); ^~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:241:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lru_update(bucket, pos); ^~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:858:4: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup1_stage2_lru(pkt_index, mbuf, bucket, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:624:2: note: expanded from: lru_update(bucket2, pos); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:912:3: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:912:3: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:936:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:936:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:948:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:948:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:979:4: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup1_stage2_lru(pkt_index, mbuf, bucket, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:624:2: note: expanded from: lru_update(bucket2, pos); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1033:3: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1033:3: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1057:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1057:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1069:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:793:2: note: expanded from: lru_update(bucket20, pos20); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:1069:2: error: initializing '__m128i' with an expression of incompatible type 'int'; lookup2_stage2_lru(pkt20_index, pkt21_index, mbuf20, mbuf21, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/marc/dpdk/lib/librte_table/rte_table_hash_key8.c:794:2: note: expanded from: lru_update(bucket21, pos21); \ ^ /home/marc/dpdk/lib/librte_table/rte_lru.h:157:10: note: expanded from: __m128i d = _mm_minpos_epu16(c); \ ^ ~~~~~~~~~~~~~~~~~~~ 18 errors generated. make[5]: *** [rte_table_hash_key8.o] Error 1 make[4]: *** [librte_table] Error 2 make[3]: *** [lib] Error 2 make[2]: *** [all] Error 2 make[1]: *** [x86_64-native-linuxapp-clang_install] Error 2 make: *** [install] Error 2 regards marc