compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930
A message that is not in the archive (sent off-list or not yet received): [email protected]
Trying to build ltp-full-20090930 on SLES-11. The "make all" gets the following:
...
make[5]: Entering directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o cpuinfo.o cpuinfo.c
gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libbitmask.o libbitmask.c
gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libcpuset.o libcpuset.clibcpuset.c: In function ‘get_mempolicy’:
libcpuset.c:3092: error: ‘__NR_get_mempolicy’ undeclared (first use in this function)
libcpuset.c:3092: error: (Each undeclared identifier is reported only once libcpuset.c:3092: error: for each function it appears in.) libcpuset.c: In function ‘set_mempolicy’:
libcpuset.c:3097: error: ‘__NR_set_mempolicy’ undeclared (first use in this function)
make[5]: *** [libcpuset.o] Error 1
make[5]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset' make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/ltp-full-20090930/testcases/kernel' make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/ltp-full-20090930/testcases'
make: *** [all] Error 2
As far as I can tell the architecture does not support get_mempolicy and set_mem_policy.
Here are the configure logs and stuff from the build attempt:
(See attached file: ltp-full-20090930-s390x-builderr.tar.gz)
Thanks,
- Mark Ver
office: Building 710 / Room 2-RF-10
phone: (845) 435-7794 [tie 8 295-7794]
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Quoted 34 lines · Mark Ver
Trying to build ltp-full-20090930 on SLES-11. The "make all" gets the following:
...
make[5]: Entering directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o cpuinfo.ocpuinfo.cgcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libbitmask.olibbitmask.c
gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libcpuset.olibcpuset.clibcpuset.c: In function ‘get_mempolicy’:
libcpuset.c:3092: error: ‘__NR_get_mempolicy’ undeclared (first use in this function)
libcpuset.c:3092: error: (Each undeclared identifier is reported only once libcpuset.c:3092: error: for each function it appears in.)libcpuset.c: In function ‘set_mempolicy’:
libcpuset.c:3097: error: ‘__NR_set_mempolicy’ undeclared (first use in this function)
make[5]: *** [libcpuset.o] Error 1
make[5]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset' make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/ltp-full-20090930/testcases/kernel' make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/ltp-full-20090930/testcases'
make: *** [all] Error 2
Quoted 5 lines
As far as I can tell the architecture does not support
get_mempolicyandset_mem_policy.Here are the configure logs and stuff from the build attempt:
(See attached file: ltp-full-20090930-s390x-builderr.tar.gz)
The constant is defined for the platform, but not with the correct name:
/usr/src/linux/arch/s390/kernel/syscalls.S:NI_SYSCALL
/* 269 sys_get_mempolicy */
/usr/src/linux/arch/s390/include/asm/unistd.h:/* Number 269 is reserved for new sys_get_mempolicy */ /usr/src/linux/arch/s390/include/asm/unistd.h:#define __IGNORE_get_mempolicy
This needs to be added to testcases/kernel/include/generate.sh for linux_syscall_numbers.h, or an arch specific #ifdef should be added for that test / to an autoconf test that would automatically determine whether or not your platform had a usable get_mempolicy syscall.
Hope that helps describe what needs to take place next... -Garrett
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Quoted 44 lines
Quoted 30 lines
make[5]: Entering directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o cpuinfo.o
cpuinfo.cgcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libbitmask.olibbitmask.c
gcc -g -O2 -Wall -g -Wextra -I../../../../include -c -o libcpuset.olibcpuset.clibcpuset.c: In function ?get_mempolicy?:
libcpuset.c:3092: error: ?__NR_get_mempolicy? undeclared (first use in this function)
libcpuset.c:3092: error: (Each undeclared identifier is reported only once libcpuset.c:3092: error: for each function it appears in.)libcpuset.c: In function ?set_mempolicy?:
libcpuset.c:3097: error: ?__NR_set_mempolicy? undeclared (first use in this function)
make[5]: *** [libcpuset.o] Error 1
make[5]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset/cpuset_lib' make[4]: *** [all] Error 2
make[4]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers/cpuset' make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/ltp-full-20090930/testcases/kernel/controllers'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/ltp-full-20090930/testcases/kernel' make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/ltp-full-20090930/testcases'
make: *** [all] Error 2Quoted 5 lines
As far as I can tell the architecture does not support
get_mempolicyandset_mem_policy.Here are the configure logs and stuff from the build attempt:
(See attached file: ltp-full-20090930-s390x-builderr.tar.gz)The constant is defined for the platform, but not with the correct name:
/usr/src/linux/arch/s390/kernel/syscalls.S:NI_SYSCALL
/* 269 sys_get_mempolicy *//usr/src/linux/arch/s390/include/asm/unistd.h:/* Number 269 is reserved for new
sys_get_mempolicy*/ /usr/src/linux/arch/s390/include/asm/unistd.h:#define__IGNORE_get_mempolicy
Quoted 6 lines
This needs to be added to
testcases/kernel/include/generate.shforlinux_syscall_numbers.h, or an arch specific #ifdef should be added for that test / to an autoconf test that would automatically determine whether or not your platform had a usableget_mempolicysyscall.Hope that helps describe what needs to take place next...
This is even simplier. Just look into testcases/kernel/include/ directory and add "get_mempolicy xxx" and "set_mempolicy yyy" into corresponding file (for you it's s390.in). The build porcess should generate file linux_syscall_numbers.h for you. Anyway I'm preparing patch fixing this.
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list