|
|

楼主 |
发表于 2006-11-3 10:08:30
|
显示全部楼层
google 到有人遇到同样问题的分析:
Hi!
I'm building LFS SVN-20060420 and have the following error while running
"make -k check" for chapter6/tar:
...
make[2]: Leaving directory `/root/src/tmp/tar-1.15.1/tests'
make check-local
make[2]: Entering directory `/root/src/tmp/tar-1.15.1/tests'
/bin/sh ./testsuite
## -------------------------- ##
## GNU tar 1.15.1 test suite. ##
## -------------------------- ##
1: tar version ok
2: decompressing from stdin FAILED (pipe.at:50)
<the rest is ok>
After the testing
/root/src/tmp/tar-1.15.1/tests/testsuite.dir/02/testsuite.log looks as
follows:
2. pipe.at:29: testing ...
pipe.at:50:
mkdir v7
(cd v7
TAR_OPTIONS="-H v7"
export TAR_OPTIONS
rm -rf *
mkdir directory
genfile --length 10240 --pattern zeros > directory/file1
genfile --length 13 > directory/file2
tar cf archive directory
mv directory orig
cat archive | tar xfv -
echo "separator"
cmp orig/file1 directory/file1
echo "separator"
cmp orig/file2 directory/file2)
--- - 2006-05-04 00:08:15.466185000 +0400
+++ /root/src/tmp/tar-1.15.1/tests/testsuite.dir/at-stdout
2006-05-04 00:08:15.000000000 +0400
@@ -1,6 +1,6 @@
directory/
-directory/file1
directory/file2
+directory/file1
separator
separator
2. pipe.at:29: 2. decompressing from stdin (pipe.at:29): FAILED
(pipe.at:50)
It seems that the error is in the order tar places files to the archive
created. Having looked through the archive I saw that files are really
in the reverse order: file2 is the first while file1 is the second.
I carried out the similar test in my host system (Gentoo) with the same
"reverse" result.
Can I safely ignore the error? I'm afraid I must not to as I haven't
seen the error in build-logs, but what have I to do?
I think it also would be helpful if somebody carries out the test on
one's system and send me the results 
P.S. I use gcc-3.4.6 instead of gcc-4.0.3, and use 6.1.1 for installing
gcc. The test is failed even if I configure tar with CFLAGS="".
--
Nothing but perfection
pv
--------------------------------------------------------------------------
I found the problem which is in the kernel (if it IS at all).
Tar testsuite assumes that readdir () system call returns file1 and
file2 in the alphabetical order (file1 firstly, file2 secondly) but in
my case the assumption is wrong (may be due to using dir_index when
mounting ext3 partition). Moreover readdir must _not_ return filenames
in an order so no wonder the test failed. |
|