bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling error


From: Jim Meyering
Subject: Re: compiling error
Date: Tue, 05 Aug 2008 23:10:44 +0200

[re-adding bug-coreutils in Cc:]

Jeph Cowan <address@hidden> wrote:
> Hi Jim.
>
> I tried both the patch and the subsequent commenting out of
> nmerge-no's ERR_SUBST line. Neither produced positive results. See
> attached file.
>
> Regards... -jeph

Thanks, Jeph.

It looks like mkstemp may be misbehaving on your system.
It seems to be setting the first byte of the template
string to \0.  Hence the bogus diagnostic.

Now, it'd be good to find out which version of mkstemp
the code is using: the one in lib/mkstemp.c or the one
from your C library.  To that end, please see if lib/mkstemp.o
exists.  If not, rebuild like this to ensure that sort is
linked to the coreutils-provided version:

    env gl_cv_func_working_mkstemp=no ./configure && make && make check

If lib/mkstemp.o already exists, it'd be good if you could
debug the failure, setting a breakpoint in gen_tempname and
stepping through it to see if/how it's malfunctioning.

Regarding the two other test failures, the tests could not report
enough because your system appears to lack a working "diff" program.
If you could install GNU diffutils

    http://ftp.gnu.org/pub/gnu/diffutils/diffutils-2.8.1.tar.gz

and then rerun coreutils'
"make check", the resulting output would be far more useful.

> Jim Meyering wrote:
>> Jeph Cowan <address@hidden> wrote:
>>
>>> Hi Jim/Ralf.
>>>
>>> A GNU make of coreutils-6.12.70-4f470 ran successfully. A 'make check'
>>> came up with three errors (misc/sort-merge, cp/thru-dangling, and
>>> mkdir/selinux.) Let me know if these are know/expected or if I need to
>>> do more investigation. A zip'd file of the errors is attached. Thanks
>>> again for your good support.
>>
>> Hi Jeph,
>>
>> Would you please try the patch I suggested here?
>>
>>   http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14202/focus=14203
>>
>> If that doesn't help, please try the next step suggested.
>>
>> I'll look at the others later.
>
> jeph Cowan
> Supercomputer Systems Group
> National Center for Atmospheric Research
> 1850 Table Mesa Drive
> Boulder, CO 80305
> 303-497-1294
> address@hidden
> sort-merge error after making these changes:
> -my $badtmp = 'does/not/exist';
> +my $badtmp = "/does/not/exist-$$";
> +-e $badtmp
> +  and (warn "skipping this test: $badtmp exists"), exit 77;
>
>
> ===========================================
>  3 of 346 tests failed
>  (45 tests were not run)
>  See tests/test-suite.log
>  Please report it to address@hidden
> ===========================================
>
> =======================================================
>    GNU coreutils 6.12.70-4f470: tests/test-suite.log
> =======================================================
>
> 3 of 346 tests failed.  (45 tests were not run).
>
> .. contents:: :depth: 2
>
>
> FAIL: misc/sort-merge.log (exit: 1)
> ===================================
>
> sort (GNU coreutils) 6.12.70-4f470
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Mike Haertel and Paul Eggert.
> m1...
> nmerge-0...
> nmerge-1...
> nmerge-neg...
> nmerge-nan...
> nmerge-big...
> nmerge-yes...
> nmerge-no...
> sort-merge: test nmerge-no: stderr mismatch, comparing nmerge-no.E (actual) 
> and nmerge-no.1 (expected)
> *** nmerge-no.E Tue Aug  5 11:59:09 2008
> --- nmerge-no.1 Tue Aug  5 11:59:09 2008
> ***************
> *** 1 ****
> ! sort: cannot create temporary file: : No such file or directory
> --- 1 ----
> ! sort: cannot create temporary file
> batch-size...
> Can't remove directory 
> /ptmp/jeph/coreutils-6.12.70-4f470/tests/sort-merge.tmp-W2kh: Device busy at 
> /usr/opt/perl5/lib/5.8.2/File/Temp.pm line 858
>
> ##################################
> Run 2
> Removing nmerge-no's ERR_SUBST line simply made the error go away.
>
>      # this should fail since nmerge < # of input files, so
>      # temp files are needed
>      #['nmerge-no', "-m --batch-size=2 -T$badtmp", @inputs,
>      #   {ERR_SUBST=>"s|: $badtmp/sort.+||"},
>      #   {ERR=>"$prog: cannot create temporary file\n"}, {EXIT=>2}],
>
> ===========================================
>  2 of 346 tests failed
>  (45 tests were not run)
>  See tests/test-suite.log
>  Please report it to address@hidden
> ===========================================
>
> =======================================================
>    GNU coreutils 6.12.70-4f470: tests/test-suite.log
> =======================================================
>
> 2 of 346 tests failed.  (45 tests were not run).
>
> .. contents:: :depth: 2
>
>
> FAIL: cp/thru-dangling.log (exit: 1)
> ====================================
>
> + cp --version
> cp (GNU coreutils) 6.12.70-4f470
> ....[snip]....




reply via email to

[Prev in Thread] Current Thread [Next in Thread]