IvantheDugtrio / veclib

Vector library for porting SSE2 instructions to other architectures
MIT License
14 stars 3 forks source link

invalid parameter combination for AltiVec intrinsic #2

Open davidzengxhsh opened 7 years ago

davidzengxhsh commented 7 years ago

I am trying to build the ixgbe device driver in DPDK, but I got the following error message: /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h: In function 'vec_load1q': /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h:30:31: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (__m128i) vec_ld (0, (vector unsigned char) address); ^ /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h: In function 'vec_loadu1q': /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h:37:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] src1 = vec_ld(0, (vector unsigned char) address); ^ /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h:38:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] src2 = vec_ld(16, (vector unsigned char) address); ^ /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h:43:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return vec_xl (0, (unsigned char ) address); ^ /home/ioa/david/dpdk-16.11.port/drivers/net/ixgbe/vec128int.h:43:5: error: invalid parameter combination for AltiVec intrinsic return vec_xl (0, (unsigned char *) address);

Could you help?

davidzengxhsh commented 7 years ago

BTW, I compiled on Ubuntu 16.10 with gcc 6.2.0 Linux ubuntu16 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:14:41 UTC 2016 ppc64le ppc64le ppc64le GNU/Linux gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12)