From: "Mitani" <mitani@ryobi.co.jp>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] Build failure with 2010-01-07 cvs
Date: Thu, 7 Jan 2010 16:55:10 +0900 [thread overview]
Message-ID: <000301ca8f6e$bc72b8d0$35582a70$@co.jp> (raw)
Hi,
I tried to make with latest version (2010-01-07 cvs) in RHEL4.8
(2.6.9-89.ELsmp).
But it failed with following message:
------------
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/home/LTP/ltp-2010-01-07/testcases/kernel/include -g
-I/home/LTP/ltp-2010-01-07/testcases/kernel/syscalls/get_mempolicy/../utils
-DNUMA_VERSION1_COMPATIBILITY -I../../../../include -I../../../../include
-L../../../../lib get_mempolicy01.c -lltp -lnuma -o get_mempolicy01
In file included from get_mempolicy01.c:78:
/home/LTP/ltp-2010-01-07/testcases/kernel/syscalls/get_mempolicy/../utils/nu
ma_helpers.h:81: error: redefinition of 'nodemask_set'
/usr/include/numa.h:45: error: previous definition of 'nodemask_set' was
here
/home/LTP/ltp-2010-01-07/testcases/kernel/syscalls/get_mempolicy/../utils/nu
ma_helpers.h:95: error: redefinition of 'nodemask_dump'
/home/LTP/ltp-2010-01-07/testcases/kernel/syscalls/get_mempolicy/../utils/nu
maif.h:85: error: previous definition of 'nodemask_dump' was here
make[4]: *** [get_mempolicy01] Error 1
------------
"numa_helpers.h" is as follows (comments are omitted):
------------
#ifndef LTP_NUMA_HELPERS_H
#define LTP_NUMA_HELPERS_H
#include "config.h"
#if HAVE_NUMA_H
#include <numa.h>
static inline void nodemask_set(nodemask_t *mask, int node)
{ <----- L.81
mask->n[node / (8*sizeof(unsigned long))] |=
(1UL << (node % (8*sizeof(unsigned long))));
}
static inline void nodemask_dump(const char *header, const nodemask_t *mask)
{ <----- L.95
int i;
EPRINTF("%s", header);
for (i = 0; i < NUMA_NUM_NODES/(sizeof(unsigned long)*8); i++)
EPRINTF(" 0x%08lx", mask->n[i]);
EPRINTF("\n");
}
#else
typedef struct nodemask_t { };
static inline void nodemask_set(nodemask_t *mask, int node)
{
return;
}
static inline void nodemask_dump(const char *header, const nodemask_t *mask)
{
return;
}
#endif
#endif
------------
In my system, HAVE_NUMA_H is defined as 1.
The function "nodemask_set" defined in "/usr/include/numa.h" is same
as the one of "numa_helpers.h".
And the function "nodemask_dump" defined in "${LTPROOT}/testcases/kernel
/syscalls/utils/numa_helpers" is same as the one of "numa_helpers.h".
Why are the same definitions necessary in "numa_helpers.h" on purpose?
I'm glad if I get your help.
Regards--
-Tomonori Mitani
------------------------------------------------------------------------------
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2010-01-07 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-07 7:55 Mitani [this message]
2010-01-07 9:32 ` [LTP] Build failure with 2010-01-07 cvs Garrett Cooper
2010-01-07 11:37 ` Subrata Modak
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='000301ca8f6e$bc72b8d0$35582a70$@co.jp' \
--to=mitani@ryobi.co.jp \
--cc=ltp-list@lists.sourceforge.net \
/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