* [LTP] compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930
[not found] <mailman.29696.1255455058.5878.ltp-list@lists.sourceforge.net>
@ 2009-10-14 2:18 ` Mark Ver
2009-10-14 3:42 ` Garrett Cooper
0 siblings, 1 reply; 3+ messages in thread
From: Mark Ver @ 2009-10-14 2:18 UTC (permalink / raw)
To: ltp-list
[-- Attachment #1.1: Type: text/plain, Size: 1767 bytes --]
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.c
libcpuset.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]
[-- Attachment #1.2: Type: text/html, Size: 1950 bytes --]
[-- Attachment #2: ltp-full-20090930-s390x-builderr.tar.gz --]
[-- Type: application/octet-stream, Size: 37460 bytes --]
[-- Attachment #3: Type: text/plain, Size: 399 bytes --]
------------------------------------------------------------------------------
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
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930
2009-10-14 2:18 ` [LTP] compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930 Mark Ver
@ 2009-10-14 3:42 ` Garrett Cooper
2009-10-15 16:20 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Garrett Cooper @ 2009-10-14 3:42 UTC (permalink / raw)
To: Mark Ver; +Cc: ltp-list
On Tue, Oct 13, 2009 at 7:18 PM, Mark Ver <markver@us.ibm.com> wrote:
> 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.c
> libcpuset.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)
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930
2009-10-14 3:42 ` Garrett Cooper
@ 2009-10-15 16:20 ` Cyril Hrubis
0 siblings, 0 replies; 3+ messages in thread
From: Cyril Hrubis @ 2009-10-15 16:20 UTC (permalink / raw)
To: Garrett Cooper; +Cc: ltp-list, Mark Ver
Hi!
> > 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.c
> > libcpuset.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)
>
> 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...
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.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-15 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.29696.1255455058.5878.ltp-list@lists.sourceforge.net>
2009-10-14 2:18 ` [LTP] compile fails for libcpuset.c on SLES-11 s390x with ltp-full-20090930 Mark Ver
2009-10-14 3:42 ` Garrett Cooper
2009-10-15 16:20 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox