Bug#754879: FTBFS on i386
On 2014-07-16 03:55 +0200, Matthias Klose wrote:
> Am 15.07.2014 16:27, schrieb Michael Biebl:
>> Source: gcc-4.9
>> Version: 4.9.0-11
>> Severity: serious
>>
>> The package FTBFS on i386 and hurd-i386 but successfully built in the
>> past.
>>
>> Complete build log at [1]
>
> how helpful is this report?
>
> - i386: I'd appreciate an analysis what did go wrong
The error happens here:
,----
| cp -p $(find /«PKGBUILDDIR»/build -mindepth 3 -name '*.sum' ! -name libgo.sum) \
| debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran2/gfortran.sum'
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran5/gfortran.sum'
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran/gfortran.sum'
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran6/gfortran.sum'
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran4/gfortran.sum'
| cp: will not overwrite just-created 'debian/g++-4.9/usr/share/doc/gcc-4.9-base/test-summaries/gfortran.sum' with '/«PKGBUILDDIR»/build/gcc/testsuite/gfortran1/gfortran.sum'
`----
There are multiple files named gfortran.sum, and cp refuses to copy them
all to the same destination file. In the coreutils source I found the
following explanation (in src/copy.c):
,----
| /* Don't let the user destroy their data, even if they try hard:
| This mv command must fail (likewise for cp):
| rm -rf a b c; mkdir a b c; touch a/f b/f; mv a/f b/f c
| Otherwise, the contents of b/f would be lost.
| In the case of 'cp', b/f would be lost if the user simulated
| a move using cp and rm.
| Note that it works fine if you use --backup=numbered. */
`----
I wonder why this did not happen on other architectures as well, since
they also run the gfortran testsuite multiple times.
Cheers,
Sven
Reply to: