public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net, Mark Ver <markver@us.ibm.com>
Subject: Re: [LTP] compile fails for libcpuset.c on SLES-11 s390x with	ltp-full-20090930
Date: Thu, 15 Oct 2009 18:20:44 +0200	[thread overview]
Message-ID: <20091015162044.GA4152@schrodinger.suse.cz> (raw)
In-Reply-To: <364299f40910132042o1ec2bd0eyf4eff3bb1b28756b@mail.gmail.com>

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

      reply	other threads:[~2009-10-15 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091015162044.GA4152@schrodinger.suse.cz \
    --to=chrubis@suse.cz \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=markver@us.ibm.com \
    --cc=yanegomi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox