On Mon, Mar 15, 2010 at 7:14 AM, Subrata Modak
<[email protected]> wrote:
> On Mon, 2010-03-15 at 09:29 +0530, Rishikesh K Rajak wrote:
>> Hi Subrata,
>>
>> can you confirm if this error still occurs with latest git and also you have
>> numa-devel package installed ?
>>
>> or, just add "numaif.h" to cpuset_syscall_test.c and try to rebuild. Let us
>> know the result too.
>
> With the latest GIT and installation of NUMA-DEVEL, the said problem
> seems to go away:
>
> # ls -l testcases/kernel/controllers/cpuset/cpuset_syscall_test/
> total 168
> -rwxr-xr-x 1 root         root         140039 Mar 15 19:40
> cpuset_syscall_test
> -rw-rw-r-- 1 subratamodak subratamodak   6525 Mar 15 19:37
> cpuset_syscall_test.c
> -rwxrwxr-x 1 subratamodak subratamodak   9191 Mar 15 19:37
> cpuset_syscall_testset.sh
> -rw-rw-r-- 1 subratamodak subratamodak   1073 Mar 15 19:37 Makefile
>
> # rpm -qa | grep -i numa
> numactl-0.9.8-8.el5
> numactl-devel-0.9.8-8.el5

That isn't even remotely close to the latest version of numa-devel
(latest version is 2.x).

> However, a new error is introduced as below:
>
> gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
> -I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_CHECKOUT_DIRECTORY/GIT_CHECKOUT/GIT_DEV_BUILD/testcases/kernel/include
>  -D_GNU_SOURCE 
> -I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_CHECKOUT_DIRECTORY/GIT_CHECKOUT/GIT_DEV_BUILD/testcases/kernel/hotplug/memory_hotplug
>  -I../../../../include -I../../../../include  -c -o commands.o commands.c
> commands.c:62: error: conflicting types for ‘nodemask_isset’
> /usr/include/numa.h:55: note: previous definition of ‘nodemask_isset’
> was here
> commands.c:72: error: redefinition of ‘nodemask_set’
> /usr/include/numa.h:44: note: previous definition of ‘nodemask_set’ was
> here
> commands.c: In function ‘get_arg_nodeid_list’:
> commands.c:396: warning: implicit declaration of function
> ‘numa_get_membind_compat’
> commands.c:396: error: incompatible types when assigning to type
> ‘nodemask_t’ from type ‘int’
> commands.c: In function ‘get_current_nodeid_list’:
> commands.c:454: error: incompatible types when assigning to type
> ‘nodemask_t’ from type ‘int’
> commands.c: In function ‘show_seg’:
> commands.c:665: warning: unused variable ‘gcp’
> commands.c: In function ‘anon_seg’:
> commands.c:685: warning: unused variable ‘gcp’
> commands.c: In function ‘file_seg’:
> commands.c:724: warning: unused variable ‘gcp’
> commands.c: In function ‘remove_seg’:
> commands.c:762: warning: unused variable ‘gcp’
> commands.c: In function ‘touch_seg’:
> commands.c:785: warning: unused variable ‘gcp’
> commands.c: In function ‘unmap_seg’:
> commands.c:820: warning: unused variable ‘gcp’
> commands.c: In function ‘map_seg’:
> commands.c:842: warning: unused variable ‘gcp’
> commands.c: In function ‘mbind_seg’:
> commands.c:883: warning: unused variable ‘gcp’
> commands.c: In function ‘shmem_seg’:
> commands.c:949: warning: unused variable ‘gcp’
> commands.c: In function ‘where_seg’:
> commands.c:991: warning: unused variable ‘ret’
> make[4]: *** [commands.o] Error 1

Yes, and this is because some APIs in numa.h changed between pre-1.x,
1.x, and 2.x. A config.log for the new workspace would be especially
helpful.
Thanks,
-Garrett

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to