[#5475] build mkfs.ubifs on trunk head fails
Submitted By: Mingquan Pan
Open Date
2009-08-31 19:46:31 Close Date
2009-10-21 03:54:27
Priority:
Medium Assignee:
Sonic Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Rejected
Uboot version or rev.:
Toolchain version or rev.:
09r1-rc9
App binary format:
N/A
Summary: build mkfs.ubifs on trunk head fails
Details:
build mkfs.ubifs on trunk head fails.
[ ! -d "mtd-utils" ] || ( touch mtd-utils/.sgbuilt_user && make -C mtd-utils ) || exit $?
make[3]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'
unset CC CFLAGS CPPFLAGS CROSS LDFLAGS; make -C 606f38a2221648ca5c5fa292c9f71d2ddd59fa66/ WITHOUT_XATTR=1 SUBDIRS= BUILDDIR=$PWD/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/ TARGETS=" mkfs.jffs2 "
make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
common.mk:68: no file name for `-include'
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.jffs2.o mkfs.jffs2.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.mkfs.jffs2.c.dep
mkfs.jffs2.c: In function `recursive_populate_directory':
mkfs.jffs2.c:1336: warning: long unsigned int format, different type arg (arg 3)
mkfs.jffs2.c:1345: warning: long unsigned int format, different type arg (arg 3)
mkfs.jffs2.c:1354: warning: long unsigned int format, different type arg (arg 3)
mkfs.jffs2.c:1384: warning: long unsigned int format, different type arg (arg 3)
mkfs.jffs2.c:1395: warning: long unsigned int format, different type arg (arg 3)
mkfs.jffs2.c: At top level:
mkfs.jffs2.c:1519: warning: initialization discards qualifiers from pointer target type
mkfs.jffs2.c:1521: warning: initialization discards qualifiers from pointer target type
mkfs.jffs2.c: In function `main':
mkfs.jffs2.c:1881: warning: passing arg 2 of `recursive_add_host_directory' discards qualifiers from pointer target type
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/crc32.o crc32.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.crc32.c.dep
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_rtime.o compr_rtime.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_rtime.c.dep
compr_rtime.c:104: warning: initialization discards qualifiers from pointer target type
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_zlib.o compr_zlib.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_zlib.c.dep
compr_zlib.c:130: warning: initialization discards qualifiers from pointer target type
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o compr_lzo.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr_lzo.c.dep
compr_lzo.c:84: warning: initialization discards qualifiers from pointer target type
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr.o compr.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.compr.c.dep
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
gcc -I./include -DWITHOUT_XATTR -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/rbtree.o rbtree.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/.rbtree.c.dep
gcc -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -g -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.jffs2 /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.jffs2.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/crc32.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_rtime.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_zlib.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr_lzo.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/compr.o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/rbtree.o -lz -llzo2
make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
for f in mkfs.jffs2 ; do ln -sf build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host//$f $f ; done
unset CC CFLAGS CPPFLAGS CROSS LDFLAGS; make -C 606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs WITHOUT_XATTR=1 SUBDIRS= BUILDDIR=$PWD/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs TARGETS=" mkfs.ubifs"
make[4]: Entering directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs'
../common.mk:68: no file name for `-include'
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/crc16.o crc16.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.crc16.c.dep
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/crc32.o crc32.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.crc32.c.dep
mkdir -p /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c -o /home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/lpt.o lpt.c -g -Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.lpt.c.dep
In file included from lpt.c:23:
mkfs.ubifs.h:48:23: uuid/uuid.h: No such file or directory
make[4]: *** [/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/lpt.o] Error 1
make[4]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'
make[2]: *** [mtd-utils] Error 2
make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/user'
Follow-ups
--- Mike Frysinger 2009-09-01 09:33:30
you need to install libuuid on your host
--- Mingquan Pan 2009-09-09 05:14:09
Yeah, you are right. I didn't install e2fsprogs-devel on this machine.
but after that, build mkfs.ubifs.c still fails at:
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/lrzsz/src'
make[3]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/lrzsz'
[ ! -d "mtd-utils" ] || ( touch mtd-utils/.sgbuilt_user &&
make -C mtd-utils ) || exit $?
make[3]: Entering directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'
unset CC CFLAGS CPPFLAGS CROSS LDFLAGS; make -C
606f38a2221648ca5c5fa292c9f71d2ddd59fa66/ WITHOUT_XATTR=1 SUBDIRS=
BUILDDIR=$PWD/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/
TARGETS=" mkfs.jffs2 "
make[4]: Entering directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66'
for f in mkfs.jffs2 ; do ln -sf
build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host//$f $f ; done
unset CC CFLAGS CPPFLAGS CROSS LDFLAGS; make -C
606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs WITHOUT_XATTR=1 SUBDIRS=
BUILDDIR=$PWD/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs
TARGETS=" mkfs.ubifs"
make[4]: Entering directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs'
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/lpt.o
lpt.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.lpt.c.dep
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/compr.o
compr.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.compr.c.dep
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/devtable.o
devtable.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.devtable.c.dep
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/hashtable/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/hashtable/hashtable.o
hashtable/hashtable.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.hashtable.c.dep
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/hashtable/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/hashtable/hashtable_itr.o
hashtable/hashtable_itr.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.hashtable_itr.c.dep
mkdir -p
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/
gcc -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -Wwrite-strings -Wno-sign-compare -c
-o
/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/mkfs.ubifs.o
mkfs.ubifs.c -g
-Wp,-MD,/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/.mkfs.ubifs.c.dep
mkfs.ubifs.c: In function `add_inode_with_data':
mkfs.ubifs.c:983: error: `FS_COMPR_FL' undeclared (first use in this function)
mkfs.ubifs.c:983: error: (Each undeclared identifier is reported only once
mkfs.ubifs.c:983: error: for each function it appears in.)
mkfs.ubifs.c:985: error: `FS_SYNC_FL' undeclared (first use in this function)
mkfs.ubifs.c:987: error: `FS_IMMUTABLE_FL' undeclared (first use in this
function)
mkfs.ubifs.c:989: error: `FS_APPEND_FL' undeclared (first use in this
function)
mkfs.ubifs.c:991: error: `FS_DIRSYNC_FL' undeclared (first use in this
function)
mkfs.ubifs.c: In function `add_dir_inode':
mkfs.ubifs.c:1064: error: `FS_IOC_GETFLAGS' undeclared (first use in this
function)
mkfs.ubifs.c: In function `add_dent_node':
mkfs.ubifs.c:1124: warning: long unsigned int format, different type arg (arg
4)
mkfs.ubifs.c:1124: warning: long unsigned int format, different type arg (arg
6)
mkfs.ubifs.c: In function `add_file':
mkfs.ubifs.c:1250: error: `FS_COMPR_FL' undeclared (first use in this
function)
mkfs.ubifs.c: In function `add_non_dir':
mkfs.ubifs.c:1294: error: `FS_IOC_GETFLAGS' undeclared (first use in this
function)
make[4]: ***
[/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/build-606f38a2221648ca5c5fa292c9f71d2ddd59fa66-host/mkfs.ubifs/mkfs.ubifs.o]
Error 1
make[4]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils/606f38a2221648ca5c5fa292c9f71d2ddd59fa66/mkfs.ubifs'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user/mtd-utils'
make[2]: *** [mtd-utils] Error 2
make[2]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/test/work/cruise/checkouts/uclinux-dist/user'
make: *** [subdirs] Error 1
--- Mike Frysinger 2009-09-09 05:52:39
so update the kernel headers on your host. those defines come from
/usr/include/linux/*.
--- Mingquan Pan 2009-10-21 03:54:26
Yes, after updating suse to 11, the kernel with ubifs support can build to the
end and works now. Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found