DPDK patches and discussions
 help / color / mirror / Atom feed
From: Marc Sune <marc.sune@bisdn.de>
To: "<dev@dpdk.org>" <dev@dpdk.org>
Subject: [dpdk-dev] clang compilation error in librte_table
Date: Wed, 22 Oct 2014 09:57:32 +0200
Message-ID: <5447636C.7090701@bisdn.de> (raw)

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

                 reply	other threads:[~2014-10-22  7:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5447636C.7090701@bisdn.de \
    --to=marc.sune@bisdn.de \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git