public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Garrett Cooper <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net,
	Akira Fujita <a-fujita@rs.jp.nec.com>,
	Miao Xie <miaox@cn.fujitsu.com>,
	Takashi Sato <t-sato@yk.jp.nec.com>
Subject: Re: [LTP] ext4/e4defrag.c testcases compilation error
Date: Wed, 24 Mar 2010 01:14:40 +0530	[thread overview]
Message-ID: <1269373481.5208.4.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <364299f41003230941r243483en1c334493cf9ccfb3@mail.gmail.com>

On Tue, 2010-03-23 at 09:41 -0700, Garrett Cooper wrote:
> On Tue, Mar 23, 2010 at 2:20 AM, Rishikesh K Rajak
> <risrajak@linux.vnet.ibm.com> wrote:
> >
> > Hi,
> >
> > While building ext4 testcases i am getting following error, let me know if
> > anyone aware about this with handy solution, else will work later today on this.
> >
> > gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
> > -I/root/ltp-dev-next/testcases/kernel/include -I../../../../../include
> > -I../../../../../include   -L../../../../../lib  e4defrag.c   -lltp -lm -o
> > e4defrag
> > e4defrag.c:165: error: expected specifier-qualifier-list before ‘__u64’
> > e4defrag.c:179: error: expected specifier-qualifier-list before ‘__u64’
> > e4defrag.c:185: error: expected specifier-qualifier-list before ‘__s32’
> > e4defrag.c:194: error: expected specifier-qualifier-list before ‘__u64’
> > e4defrag.c:206: error: expected specifier-qualifier-list before ‘__u64’
> > e4defrag.c:224: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘__le16’
> > e4defrag.c:225: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘__le32’
> > e4defrag.c:226: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘__le64’
> > e4defrag.c:232: error: expected specifier-qualifier-list before ‘__le32’
> > e4defrag.c:331: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘log_groups_per_flex’
> > e4defrag.c:332: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘blocks_per_group’
> > e4defrag.c:333: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘feature_incompat’
> > e4defrag.c:342: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> > ‘ext2fs_swab32’
> 
>     __u64, et all are kernel datatypes; I've had a lot of fun trying
> to integrate tests like these, so I'd definitely contact the
> maintainers.

Garret,

On my following system:

# uname -a
Linux <sniff> 2.6.31.5-127.fc12.ppc64 #1 SMP Sat Nov 7 20:58:24 EST 2009
ppc64 ppc64 ppc64 GNU/Linux
# rpm -qa | grep -i e2fsprogs
e2fsprogs-devel-1.41.9-5.fc12.ppc
e2fsprogs-libs-1.41.9-5.fc12.ppc
e2fsprogs-1.41.9-5.fc12.ppc

It just builds fine:

# make
make -C ffsb-6.0-rc2 -f
"/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile" all
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2'
make  all-am
make[2]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2'
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
fileops.o -MD -MP -MF .deps/fileops.Tpo -c -o fileops.o fileops.c
mv -f .deps/fileops.Tpo .deps/fileops.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT rand.o
-MD -MP -MF .deps/rand.Tpo -c -o rand.o rand.c
mv -f .deps/rand.Tpo .deps/rand.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT main.o
-MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT fh.o
-MD -MP -MF .deps/fh.Tpo -c -o fh.o fh.c
mv -f .deps/fh.Tpo .deps/fh.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
filelist.o -MD -MP -MF .deps/filelist.Tpo -c -o filelist.o filelist.c
mv -f .deps/filelist.Tpo .deps/filelist.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
metaops.o -MD -MP -MF .deps/metaops.Tpo -c -o metaops.o metaops.c
mv -f .deps/metaops.Tpo .deps/metaops.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
rwlock.o -MD -MP -MF .deps/rwlock.Tpo -c -o rwlock.o rwlock.c
mv -f .deps/rwlock.Tpo .deps/rwlock.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
cirlist.o -MD -MP -MF .deps/cirlist.Tpo -c -o cirlist.o cirlist.c
mv -f .deps/cirlist.Tpo .deps/cirlist.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT rbt.o
-MD -MP -MF .deps/rbt.Tpo -c -o rbt.o rbt.c
mv -f .deps/rbt.Tpo .deps/rbt.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_tg.o -MD -MP -MF .deps/ffsb_tg.Tpo -c -o ffsb_tg.o ffsb_tg.c
mv -f .deps/ffsb_tg.Tpo .deps/ffsb_tg.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_fs.o -MD -MP -MF .deps/ffsb_fs.Tpo -c -o ffsb_fs.o ffsb_fs.c
mv -f .deps/ffsb_fs.Tpo .deps/ffsb_fs.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_thread.o -MD -MP -MF .deps/ffsb_thread.Tpo -c -o ffsb_thread.o
ffsb_thread.c
mv -f .deps/ffsb_thread.Tpo .deps/ffsb_thread.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_op.o -MD -MP -MF .deps/ffsb_op.Tpo -c -o ffsb_op.o ffsb_op.c
mv -f .deps/ffsb_op.Tpo .deps/ffsb_op.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT util.o
-MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
parser.o -MD -MP -MF .deps/parser.Tpo -c -o parser.o parser.c
mv -f .deps/parser.Tpo .deps/parser.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_fc.o -MD -MP -MF .deps/ffsb_fc.Tpo -c -o ffsb_fc.o ffsb_fc.c
mv -f .deps/ffsb_fc.Tpo .deps/ffsb_fc.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT
ffsb_stats.o -MD -MP -MF .deps/ffsb_stats.Tpo -c -o ffsb_stats.o
ffsb_stats.c
mv -f .deps/ffsb_stats.Tpo .deps/ffsb_stats.Po
gcc -DHAVE_CONFIG_H -I.    -D_GNU_SOURCE -g -O2 -D_REENTRANT -MT list.o
-MD -MP -MF .deps/list.Tpo -c -o list.o list.c
mv -f .deps/list.Tpo .deps/list.Po
gcc -D_GNU_SOURCE -g -O2 -D_REENTRANT   -o ffsb fileops.o rand.o main.o
fh.o filelist.o metaops.o rwlock.o cirlist.o rbt.o ffsb_tg.o ffsb_fs.o
ffsb_thread.o ffsb_op.o util.o parser.o ffsb_fc.o ffsb_stats.o list.o
-lpthread -lm 
make[2]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2'
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2'
cp ffsb-6.0-rc2/ffsb ffsb
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-inode-version'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/root/subrata/ltp/ltp-dev/testcases/kernel/include
-I../../../../../include -I../../../../../include   -L../../../../../lib
ext4_test_inode_version.c   -lltp -lm -o ext4_test_inode_version
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-inode-version'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/root/subrata/ltp/ltp-dev/testcases/kernel/include
-I../../../../../include -I../../../../../include   -L../../../../../lib
ext4_file_time.c   -lltp -lm -o ext4_file_time
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-online-defrag'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/root/subrata/ltp/ltp-dev/testcases/kernel/include
-I../../../../../include -I../../../../../include   -L../../../../../lib
e4defrag.c   -lltp -lm -o e4defrag
e4defrag.c: In function ‘file_statistic’:
e4defrag.c:1250: warning: ‘best_ext_count’ may be used uninitialized in
this function
e4defrag.c: In function ‘file_defrag’:
e4defrag.c:1585: warning: ‘donor_physical_cnt’ may be used uninitialized
in this function
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-online-defrag'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit'
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/root/subrata/ltp/ltp-dev/testcases/kernel/include
-I../../../../../include -I../../../../../include   -L../../../../../lib
create_long_dirs.c   -lltp -lm -o create_long_dirs
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/root/subrata/ltp/ltp-dev/testcases/kernel/include
-I../../../../../include -I../../../../../include   -L../../../../../lib
create_short_dirs.c   -lltp -lm -o create_short_dirs
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit'
make[1]: Entering directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory
`/root/subrata/ltp/ltp-dev/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups'
# echo $?
0

The Packages version required and instructions are mentioned in
testcases/kernel/fs/ext4-new-features/README. Yes, somebody has to
download and install those packages first. Luckily i had them all in my
fedora12 system.

Regards--
Subrata

> Thanks,
> -Garrett
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2010-03-23 19:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23  9:20 [LTP] ext4/e4defrag.c testcases compilation error Rishikesh K Rajak
2010-03-23 16:41 ` Garrett Cooper
2010-03-23 19:44   ` Subrata Modak [this message]
2010-03-26  4:56 ` Rishikesh K Rajak

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=1269373481.5208.4.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=a-fujita@rs.jp.nec.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=miaox@cn.fujitsu.com \
    --cc=t-sato@yk.jp.nec.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