get_mempolicy01 build failure in CVS]
FYI.
Regards--
Subrata
-------- Forwarded Message --------
From: Subrata Modak <[email protected]>
Reply-To: [email protected]
To: Garrett Cooper <[email protected]>
Subject: Re: get_mempolicy01 build failure in CVS
Date: Thu, 24 Dec 2009 21:41:46 +0530
Quoted 95 lines · Garrett Cooper
Quoted 88 lines · Garrett Cooper
Quoted 4 lines · Subrata Modak
However, apart from this, the other issues of build error when trying to compile LTP from 2 different locations in the same machine seems fixed w.r.t the libcontrollers and linsctp.
Quoted 81 lines
Can you just look into the below 2 build errors ?
Regards--
SubrataQuoted 75 lines · Subrata Modak
This as well:
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/include -I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/syscalls/mbind/../utils/ -I../../../../include -I../../../../include -L../../../../libmbind01.c-lltp -lnuma -o mbind01mbind01.c: In function ‘do_test’:
mbind01.c:271: warning: passing argument 1 of ‘nodemask_zero’ from
incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
mbind01.c:272: warning: implicit declaration of function ‘nodemask_set’
mbind01.c:273: warning: passing argument 1 of ‘nodemask_zero’ from
incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
mbind01.c:315: warning: passing argument 1 of ‘nodemask_zero’ from
incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
mbind01.c:319: warning: passing argument 1 of ‘nodemask_equal’ from
incompatible pointer type/usr/include/numa.h:66: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
mbind01.c:319: warning: passing argument 2 of ‘nodemask_equal’ from
incompatible pointer type/usr/include/numa.h:66: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’/tmp/ccIMfEh8.o: In function `do_test':/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/syscalls/mbind/mbind01.c:272: undefined reference to `nodemask_set'
collect2: ld returned 1 exit status
make[4]: *** [mbind01] Error 1Regards--
SubrataQuoted 40 lines · Subrata Modak
Garret,
This still exists:
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/include -I/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/syscalls/get_mempolicy/../utils -I../../../../include -I../../../../include -L../../../../libget_mempolicy01.c-lltp -lnuma -oget_mempolicy01get_mempolicy01.c: In function ‘do_test’:
get_mempolicy01.c:282: warning: passing argument 1 of ‘nodemask_zero’
from incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
get_mempolicy01.c:283: warning: implicit declaration of function
‘nodemask_set’
get_mempolicy01.c:284: warning: passing argument 1 of ‘nodemask_zero’
from incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
get_mempolicy01.c:337: warning: passing argument 1 of ‘nodemask_zero’
from incompatible pointer type/usr/include/numa.h:61: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
get_mempolicy01.c:338: warning: passing argument 1 of ‘nodemask_equal’
from incompatible pointer type/usr/include/numa.h:66: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’
get_mempolicy01.c:338: warning: passing argument 2 of ‘nodemask_equal’
from incompatible pointer type/usr/include/numa.h:66: note: expected ‘struct bitmask *’ but argument
is of type ‘structnodemask_t*’/tmp/ccGgUpUU.o: In function `do_test':/home/subratamodak/OFFICE_WORKS/LTP_PROJECT_CODE/LTP_NIGHTLY_SNAPSHOTS/21_DECEMBER_2009/ltp-intermediate-20091221/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c:283: undefined reference to `nodemask_set'
collect2: ld returned 1 exit status
make[4]: *** [get_mempolicy01] Error 1# uname -a Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux # cat /etc/issue Red Hat Enterprise Linux Client release 5.2 (Tikanga) Kernel \r on an \mQuoted 5 lines
I'll do that tonight because I grabbed the source for the package.
Whoever created / ported the test basically tooknuma.handnumaif.hand jammed them into a separate header file instead of using the system ones, so that's where the issue you're seeing is coming from now.
Quoted 5 lines
The compile issues should now be resolved as it's pulling from the
appropriate installed headers instead of the ad hoc ones, but the problem is that the tests need to be rewritten for libnuma v2, as the current ones are geared towards libnuma 0.9x (which I assume means that it covers libnuma 1.x).
I would prefer to play safe in that case, by removing these 2 source files and their references from the release tarball only. The same will be in CVS and will be subjected to FIXES.
Regards--
Subrata
Quoted 2 lines
Thanks,
-Garrett
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list