Subject: bug#20877: closed (Re: bug#20877: Building coreutils on ubuntu 15.04 64bit fails.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 26 Jun 2015 16:03:03 +0000

Your bug report

#20877: Building coreutils on ubuntu 15.04 64bit fails.

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
20877: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20877
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#20877: Building coreutils on ubuntu 15.04 64bit fails.
From: [email-masked] (Ludovic Courtès)
To: crocket <[email-masked]>
Cc: [email-masked]
Date: Fri, 26 Jun 2015 18:01:44 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

crocket <[email-masked]> skribis:

> 5. '/' includes '/tmp'. '/' is a btrfs. The mount options are
> rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag

OK, this seems to be the culprit, see:

  http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20570

As a workaround, using substitutes is indeed the best solution.
I’m closing the bug.

Thanks,
Ludo’.

Subject: Building coreutils on ubuntu 15.04 64bit fails.
From: crocket <[email-masked]>
To: [email-masked]
Date: Tue, 23 Jun 2015 15:40:01 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

The relevant log is below.

FAIL: tests/dd/sparse
=====================

++ initial_cwd_=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23
++ fail=0
+++ testdir_prefix_
+++ printf gt
++ pfx_=gt
+++ mktempd_ /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23
gt-sparse.sh.XXXX
+++ case $# in
+++ destdir_=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23
+++ template_=gt-sparse.sh.XXXX
+++ MAX_TRIES_=4
+++ case $destdir_ in
+++ case $template_ in
++++ unset TMPDIR
+++ d=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
+++ case $d in
+++ test -d /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
++++ ls -dgo /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
++++ tr S -
+++ perms='drwx------ 1 0 Jun 23 06:20
/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r'
+++ case $perms in
+++ test 0 = 0
+++ echo /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
+++ return
++ test_dir_=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
++ cd /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
++ gl_init_sh_nl_='
'
++ IFS='
'
++ for sig_ in 1 2 3 13 15
+++ expr 1 + 128
++ eval 'trap '\''Exit 129'\'' 1'
+++ trap 'Exit 129' 1
++ for sig_ in 1 2 3 13 15
+++ expr 2 + 128
++ eval 'trap '\''Exit 130'\'' 2'
+++ trap 'Exit 130' 2
++ for sig_ in 1 2 3 13 15
+++ expr 3 + 128
++ eval 'trap '\''Exit 131'\'' 3'
+++ trap 'Exit 131' 3
++ for sig_ in 1 2 3 13 15
+++ expr 13 + 128
++ eval 'trap '\''Exit 141'\'' 13'
+++ trap 'Exit 141' 13
++ for sig_ in 1 2 3 13 15
+++ expr 15 + 128
++ eval 'trap '\''Exit 143'\'' 15'
+++ trap 'Exit 143' 15
++ trap remove_tmp_ 0
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ case $path_dir_ in
+ abs_path_dir_=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/./src
+ case $abs_path_dir_ in
+ PATH=/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/./src:/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/src:/gnu/store/4cqxziv972qclw5h91cna38ymhgp27kj-perl-5.16.1/bin:/gnu/store/7glba8xinjagxrrn5jvwc1zn6yhmwny5-tar-1.28/bin:/gnu/store/5wprk589d74v7q245flfc7nwaa2jay4a-gzip-1.6/bin:/gnu/store/517bypd0afws7idfni5agsrj96fwzkpz-bzip2-1.0.6/bin:/gnu/store/2zf393ks3j1imkmjjxmgws4b3wdzhf6z-xz-5.0.4/bin:/gnu/store/0myjhxzqiw9qjr6i0vi8xkmb235kdsmd-file-5.22/bin:/gnu/store/znhi2hw8jqy9wh0nfrj9bj1cvw8lai10-diffutils-3.3/bin:/gnu/store/b6i4zpwhll3n6zqjvwb62w0z44yix35h-patch-2.7.5/bin:/gnu/store/iynp61jf8wsbdiccfnm7bw9c6dw3w0bp-sed-4.2.2/bin:/gnu/store/9n0w4rmqvbx6zx7i0bqrcvskz4ibkdva-findutils-4.4.2/bin:/gnu/store/g9filnayyrgvrgpa9z0hizzdjnwxgrf2-gawk-4.1.3/bin:/gnu/store/fma5d5dw5kpl012jqx373pw2nxyhjnxb-grep-2.21/bin:/gnu/store/3y0yy361wcry9plv20fnnf24xkdypiw8-coreutils-8.23/bin:/gnu/store/2j6h8kc7iyfgl518c9f85rj7ysimib37-make-4.1/bin:/gnu/store/r3mg86j35z90gbfbc3ry0467yv2nnqhx-bash-4.3.33/bin:/gnu/store/fr42ixmrvhmaql59pdmnay6wzqfqmd13-ld-wrapper-0/bin:/gnu/store/pqrrl6lk3wzss99ljv8a4irapppp46fv-binutils-2.25/bin:/gnu/store/pirylg2g4wwacm9skli5znlak75c124s-gcc-4.9.2/bin:/gnu/store/hl4cvmwp1xyrq2b3zssdscd9gy1xwmzc-glibc-2.21/bin:/gnu/store/hl4cvmwp1xyrq2b3zssdscd9gy1xwmzc-glibc-2.21/sbin:/gnu/store/j9ilclfawf7r60hxxadbazc1w6zlkw1m-acl-2.2.52/bin:/sbin:/usr/sbin
+ create_exe_shims_ /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/./src
+ case $EXEEXT in
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ dd
+ test yes = yes
+ local i
+ for i in '$*'
+ env dd --version
dd (coreutils) 8.23
Copyright (C) 2014 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 Paul Rubin, David MacKenzie, and Stuart Kemp.
+ require_sparse_support_
+ test 0 = 0
+ t=sparse.6589
+ dd bs=1 seek=128K of=sparse.6589
++ du -sk sparse.6589
+ set x 0 sparse.6589
+ kb_size=0
+ rm -f sparse.6589
+ test 0 -ge 128
+ truncate -s1M sparse
+ dd bs=32K if=sparse of=sparse.dd conv=sparse
32+0 records in
32+0 records out
1048576 bytes (1.0 MB) copied, 0.000969889 s, 1.1 GB/s
++ stat -c %s sparse
++ stat -c %s sparse.dd
+ test 1048576 = 1048576
+ printf 'a\000\000b'
+ printf ab
+ dd if=file.in bs=1 conv=sparse oflag=append
4+0 records in
4+0 records out
4 bytes (4 B) copied, 6.8489e-05 s, 58.4 kB/s
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
+ printf ____
+ printf a__b
+ dd if=file.in bs=1 conv=sparse,notrunc of=out
4+0 records in
4+0 records out
4 bytes (4 B) copied, 6.158e-05 s, 65.0 kB/s
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 = 2
+ test xexp = x/dev/null
+ test xout = x/dev/null
+ return 2
+ case $? in
+ compare_ exp out
+ diff -u exp out
+ dd if=file.in bs=1 conv=sparse
+ cat
4+0 records in
4+0 records out
4 bytes (4 B) copied, 7.2044e-05 s, 55.5 kB/s
+ cmp file.in file.out
+ rm -f file.in
+ dd if=/dev/urandom of=file.in bs=1M count=3 iflag=fullblock
3+0 records in
3+0 records out
3145728 bytes (3.1 MB) copied, 0.17728 s, 17.7 MB/s
+ dd if=/dev/zero of=file.in bs=1M count=1 seek=1 conv=notrunc
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00103902 s, 1.0 GB/s
++ kb_alloc file.in
++ du -k file.in
++ cut -f1
+ test 3072 -gt 3000
+ dd if=file.in of=file.out bs=2M conv=sparse
1+1 records in
1+1 records out
3145728 bytes (3.1 MB) copied, 0.00737519 s, 427 MB/s
++ kb_alloc file.out
++ du -k file.out
++ cut -f1
+ test 2500 -lt 512
+ fail=1
+ rm -f file.out
+ truncate --size=3M file.out
+ dd if=file.in of=file.out bs=1M conv=sparse,notrunc
3+0 records in
3+0 records out
3145728 bytes (3.1 MB) copied, 0.00387069 s, 813 MB/s
++ kb_alloc file.out
++ du -k file.out
++ cut -f1
+ test 2048 -lt 2500
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ cd /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23
+ chmod -R u+rwx
/tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
+ rm -rf /tmp/nix-build-coreutils-8.23.drv-0/coreutils-8.23/gt-sparse.sh.LY7r
+ exit 1