Results for 5.5.0 20171010 (Debian 5.5.0-8) testsuite on mipsel-unknown-linux-gnu

2018-02-02 Thread Matthias Klose
LAST_UPDATED: Obtained from SVN: tags/gcc_5_5_0_release revision 253577

Target: mipsel-linux-gnu
gcc version 5.5.0 20171010 (Debian 5.5.0-8) 

=== acats tests ===

=== acats Summary ===
# of expected passes2320
# of unexpected failures0
Native configuration is mipsel-unknown-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/abi/abi-tag19.C  -std=c++11  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++14  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++98  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11 (test for excess errors)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -fomit-frame-pointer  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix ===

# of expected passes82869
# of unexpected failures10
# of unexpected successes   2
# of expected failures  291
# of unsupported tests  3880

Running target unix/-fstack-protector
FAIL: g++.dg/abi/abi-tag19.C  -std=c++11  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++14  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/abi/abi-tag19.C  -std=c++98  scan-assembler _ZN1YIiE1fB1aEv
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++11 (test for excess errors)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14  (test for errors, line 16)
FAIL: g++.dg/cpp0x/lambda/lambda-70218.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/guality/pr55665.C   -O2  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -fomit-frame-pointer  line 23 p == 40
FAIL: g++.dg/guality/pr55665.C   -O3 -g  line 23 p == 40
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++11 execution test
XPASS: g++.dg/tls/thread_local-order2.C  -std=c++14 execution test

=== g++ Summary for unix/-fstack-protector ===

# of expected passes82869
# of unexpected failures10
# of unexpected successes   2
# of expected failures  291
# of unsupported tests  3880

=== g++ Summary ===

# of expected passes165738
# of unexpected failures20
# of unexpected successes   4
# of expected failures  582
# of unsupported tests  7760
/build/gcc-5-0CDW7v/gcc-5-5.5.0/build/gcc/xg++  version 5.5.0 20171010 (Debian 
5.5.0-8) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/cpp/trad/include.c (test for excess errors)
FAIL: gcc.dg/pic-2.c (test for excess errors)
FAIL: gcc.dg/pic-3.c (test for excess errors)
FAIL: gcc.dg/pic-4.c (test for excess errors)
FAIL: gcc.dg/pie-2.c (test for excess errors)
FAIL: gcc.dg/pie-3.c (test for excess errors)
FAIL: gcc.dg/pie-4.c (test for excess errors)
FAIL: gcc.dg/uninit-19.c  (test for warnings, line 22)
FAIL: gcc.dg/uninit-19.c (test for excess errors)
XPASS: c-c++-common/goacc/acc_on_device-2.c scan-rtl-dump-times expand 
"(call [^n]* acc_on_device" 0
FAIL: gcc.dg/graphite/id-pr46845.c (internal compiler error)
FAIL: gcc.dg/graphite/id-pr46845.c (test for excess errors)
FAIL: gcc.dg/graphite/scop-19.c scan-tree-dump-times graphite "number of SCoPs: 
0" 1
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/guality.c   -O0  execution test
XPASS: gcc.dg/guality/guality.c   -O1  execution test
XPASS: gcc.dg/guality/guality.c   -O2  execution test
XPASS: gcc.dg/guality/guality.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
XPASS: gcc.dg/guality/guality.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
XPASS: gcc.dg/guality/guality.c   -O3 -fomit-frame-pointer  execution test
XPASS: gcc.dg/guality/guality.c   -O3 -g  execution test
XPASS: gcc.dg/guality/guality.c   -Os  execution test
XPASS: gcc.dg/guality/inline-params.c   -O2  execution test
XPASS: gcc.dg/guality/inline-params.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
XPASS: gcc.dg/guality/inline-params.c   -O3 -fomit-frame-pointer  execution test
XPASS: gcc.dg/guality/inline-params.c   -O3 -g  execution test
XPASS: gcc.dg/guality/inline-params.c   -Os  execution test
FAIL: gcc.dg/guality/nrv-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 20 a2.i[0] == 42
FAIL: gcc.dg/guality/pr36728-1.c   -O2  line 16 arg2 == 2
FAIL: gcc.dg/guality/pr36728-1.c   -O2  line 18 arg1 == 1
FAIL: gcc.dg/guality/pr36728-1.c   -O2  line 18 

Bug#889133: gfortran-7: gfortran mod files include full paths, making software bit unreproducible

2018-02-02 Thread Alastair McKinstry

> Please could you take this upstream to the fortran and gcc mailing lists? I'd
> rather like to see something like
>
>-fdebug-prefix-map=
>
> which should go upstream.

I've forwarded the patch to the gfortran list, but I'm not sure what you
mean. I know of no code that uses the value in the header, which appears
to be fairly random based on the compile line (either foo.f90, 
./pkg/foo.f90 or /build/pkg/foo.f90 depending on build system).

I imagine just using basename() is simpler and more likely to be
accepted into production quickly (ie gcc-7, gcc-8)


-- 
Alastair McKinstry, , , 
https://diaspora.sceal.ie/u/amckinstry
Misentropy: doubting that the Universe is becoming more disordered. 




signature.asc
Description: OpenPGP digital signature


Bug#889133: gfortran-7: gfortran mod files include full paths, making software bit unreproducible

2018-02-02 Thread Matthias Klose
On 02.02.2018 10:23, Alastair McKinstry wrote:
> Package: gfortran-7
> Version: 0.7.2-1
> Severity: normal
> Tags: upstream patch
> 
> gfortran creates binary .mod and .smod files. These are compressed files, 
> which look like:
> (viewed with e.g. zmore /usr/include/cgns.mod ):
> 
> GFORTRAN module version '14' created from 
> /build/libcgns-XmhIxt/libcgns-3.3.0/src/cgns_f.F90
> (() () () () () () () () () () () () () () () () () () () () () () () ()
> () () ())
> 
> The full path of the compiled fortran file is included, which can break 
> reproducible builds.
> 
> A trivial patch is included, to strip the path.

Please could you take this upstream to the fortran and gcc mailing lists? I'd
rather like to see something like

   -fdebug-prefix-map=

which should go upstream.



Bug#889133: gfortran-7: gfortran mod files include full paths, making software bit unreproducible

2018-02-02 Thread Alastair McKinstry
Package: gfortran-7
Version: 0.7.2-1
Severity: normal
Tags: upstream patch

gfortran creates binary .mod and .smod files. These are compressed files, which 
look like:
(viewed with e.g. zmore /usr/include/cgns.mod ):

GFORTRAN module version '14' created from 
/build/libcgns-XmhIxt/libcgns-3.3.0/src/cgns_f.F90
(() () () () () () () () () () () () () () () () () () () () () () () ()
() () ())

The full path of the compiled fortran file is included, which can break 
reproducible builds.

A trivial patch is included, to strip the path.

-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-5-686-pae (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.UTF-8), LANGUAGE=en_IE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to en_IE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Description: Drop the full pathname from module file descriptions, as
 this breaks reproducible builds
Author: Alastair McKinstry
Last-Updated: 2018-02-02
Forwarded: no

Index: gcc-7-7.2.0/src/gcc/fortran/module.c
===
--- gcc-7-7.2.0.orig/src/gcc/fortran/module.c
+++ gcc-7-7.2.0/src/gcc/fortran/module.c
@@ -79,6 +79,10 @@ along with GCC; see the file COPYING3.
 #include "scanner.h"
 #include 
 
+/* for GNU / POSIX basename */
+#define _GNU_SOURCE
+#include 
+
 #define MODULE_EXTENSION ".mod"
 #define SUBMODULE_EXTENSION ".smod"
 
@@ -6063,8 +6067,9 @@ dump_module (const char *name, int dump_
 gfc_fatal_error ("Can't open module file %qs for writing at %C: %s",
 filename_tmp, xstrerror (errno));
 
+  /* Use basename to make builds bit-reproducible */
   gzprintf (module_fp, "GFORTRAN module version '%s' created from %s\n",
-   MOD_VERSION, gfc_source_file);
+MOD_VERSION, basename(gfc_source_file));
 
   /* Write the module itself.  */
   iomode = IO_OUTPUT;