Bug#833829: libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*

2016-09-06 Thread Andreas Beckmann
Control: retitle -1 libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*
Control: affects -1 + src:vlc

On Tue, 9 Aug 2016 11:39:54 +0200 Matthias Klose  wrote:
> > I'm unable to build a package because crtfastmath.o is missing from this
> > package. Architecture is kfreebsd-i386. I don't see this bug on the
> > kfreebsd-amd64
> > 
> > ,
> > | cc -Wall -DPIC   -O2 -pipe -fno-tree-dominator-opts -fno-tree-pre 
> > -ffast-math -DUSE_MMX -DUSE_SSE -DUSE_SSE2 -g -D_FILE_OFFSET_BITS=64 
> > -D_LARGEFILE_SOURCE -fPIC -pthreadluma.c   -o luma
> > | /usr/bin/ld: cannot find crtfastmath.o: No such file or directory
> > `
> 
> https://buildd.debian.org/status/fetch.php?pkg=gcc-6&arch=kfreebsd-i386&ver=6.1.1-11&stamp=1470331624
> 
> looks like this is never built, and the install step succeeds despite it
> complains about not finding this file.

Seems to be specific to gcc-6, the file is available in libgcc-4.9-dev,
libgcc-5-dev, and gcc-snapshot (7.0.0).

This bug is the cause for the FTBFS of vlc on both kfreebsd-amd64 and
kfreebsd-i386:

https://buildd.debian.org/status/fetch.php?pkg=vlc&arch=kfreebsd-amd64&ver=2.2.4-3%2Bb4&stamp=1472902929
https://buildd.debian.org/status/fetch.php?pkg=vlc&arch=kfreebsd-i386&ver=2.2.4-3%2Bb4&stamp=1472905628

Andreas



Processed: Re: Bug#833829: libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*

2016-09-06 Thread Debian Bug Tracking System
Processing control commands:

> retitle -1 libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*
Bug #833829 [libgcc-6-dev] libgcc-6-dev: Missing crtfastmath.o
Changed Bug title to 'libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*' from 
'libgcc-6-dev: Missing crtfastmath.o'.
> affects -1 + src:vlc
Bug #833829 [libgcc-6-dev] libgcc-6-dev: Missing crtfastmath.o on kfreebsd-*
Added indication that 833829 affects src:vlc

-- 
833829: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833829
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#836848: libasan3: AddressSanitizer breaks when LD_PRELOAD is defined

2016-09-06 Thread Vincent Lefevre
Package: libasan3
Version: 6.2.0-3
Severity: normal

When LD_PRELOAD is defined (which can be a consequence of gtk3-nocsd
being installed and the user being in an X11 session), I get:

cventin:~> gcc -fsanitize=address t.c
cventin:~> ./a.out
==22051==ASan runtime does not come first in initial library list; you should 
either link runtime to your application or manually preload it with LD_PRELOAD.

Something should be done. This was very confusing at first, because
the problem first came here when I ran a configure script which was
working a few days ago (after investigation, it is now clear that
the reason was that it wasn't under a X11 session a few days ago),
and just saw:

checking whether we are cross compiling... configure: error: in 
`/home/vlefevre/tmp/mpfr-old':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

I could see the error message, but the reason wasn't clear yet
(I initially thought of a regression after a recent upgrade).

So, I think that if possible, having LD_PRELOAD already set shouldn't
affect ASan. Shouldn't -static-libasan be the default, for instance?

If this is not possible, various things should be clarified:

1. The error message should be more informative, e.g. when LD_PRELOAD
is set, say that LD_PRELOAD is set but ASan runtime does not appear
in LD_PRELOAD or does not come first.

2. The gcc(1) man page does not mention LD_PRELOAD at all. Ditto for
the GCC manual.

3. How to find the right ASan runtime *automatically* should also be
documented.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libasan3 depends on:
ii  gcc-6-base  6.2.0-3
ii  libc6   2.24-2
ii  libgcc1 1:6.2.0-3
ii  libstdc++6  6.2.0-3

libasan3 recommends no packages.

libasan3 suggests no packages.

-- no debconf information



Bug#836855: gcc-snapshot: -fsanitize=address -static-libasan doesn't work

2016-09-06 Thread Vincent Lefevre
Package: gcc-snapshot
Version: 20160508-1
Severity: normal

cventin:~> cat t.c
int main (void) { return 0; }
cventin:~> gcc-snapshot -fsanitize=address -static-libasan t.c
cventin:~> ./a.out
==27754==AddressSanitizer CHECK failed: 
../../../../src/libsanitizer/asan/asan_rtl.cc:405 "((!asan_init_is_running && 
"ASan init calls itself!")) != (0)" (0x0, 0x0)


There's no such problem with gcc-4.9, gcc-5 and gcc-6.

Note: gcc-snapshot is the following script:

#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
exec gcc "$@"

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-snapshot depends on:
ii  binutils 2.27-8
ii  libasound2   1.1.2-1
ii  libatk1.0-0  2.21.90-2
ii  libc62.24-2
ii  libc6-dev2.24-2
ii  libc6-dev-i386   2.24-2
ii  libc6-dev-x322.24-2
ii  libc6-i386   2.24-2
ii  libc6-x322.24-2
ii  libcairo21.14.6-1+b1
ii  libecj-java  3.11.0-6
ii  libfontconfig1   2.11.0-6.7
ii  libfreetype6 2.6.3-3+b1
ii  libgdk-pixbuf2.0-0   2.34.0-1
ii  libglib2.0-0 2.49.6-1
ii  libgmp10 2:6.1.1+dfsg-1
ii  libgtk2.0-0  2.24.30-4
ii  libice6  2:1.0.9-1+b1
ii  libisl15 0.17.1-1
ii  libmpc3  1.0.3-1
ii  libmpfr4 3.1.4-2
ii  libpango-1.0-0   1.40.2-1
ii  libpangocairo-1.0-0  1.40.2-1
ii  libpangoft2-1.0-01.40.2-1
ii  libsm6   2:1.2.2-1+b1
ii  libxrandr2   2:1.5.0-1
ii  libxrender1  1:0.9.9-2
ii  libxtst6 2:1.2.2-1+b1
ii  python   2.7.11-2
ii  zlib1g   1:1.2.8.dfsg-2+b1

gcc-snapshot recommends no packages.

Versions of packages gcc-snapshot suggests:
ii  binutils [binutils-gold]  2.27-8

-- no debconf information



Bug#836864: libasan3: -fsanitize=address -static-libasan doesn't always work

2016-09-06 Thread Vincent Lefevre
Package: libasan3
Version: 6.2.0-3
Severity: normal

While -fsanitize=address -static-libasan works on a simple .c file,
it no longer works in a more complex case. To reproduce, build MPFR
(e.g. 3.1.4) with:

  ./configure CC=gcc-6 CFLAGS="-fsanitize=address -static-libasan"
  make
  make check

All the tests fail with the error:

  Your application is linked against incompatible ASan runtimes.

There's no reason why the ASan runtimes should be incompatible.
"gcc-6 -fsanitize=address -static-libasan" has been used everywhere!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/12 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libasan3 depends on:
ii  gcc-6-base  6.2.0-3
ii  libc6   2.24-2
ii  libgcc1 1:6.2.0-3
ii  libstdc++6  6.2.0-3

libasan3 recommends no packages.

libasan3 suggests no packages.

-- no debconf information



Results for 5.4.1 20160904 (Debian 5.4.1-2) testsuite on powerpc-unknown-linux-gnu

2016-09-06 Thread Matthias Klose
LAST_UPDATED: Sun Sep  4 12:45:41 UTC 2016 (revision 239975)

Target: powerpc-linux-gnu
gcc version 5.4.1 20160904 (Debian 5.4.1-2) 

Native configuration is powerpc-unknown-linux-gnu

=== g++ tests ===


Running target unix
FAIL: c-c++-common/asan/null-deref-1.c   -O2  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O3 -fomit-frame-pointer  output 
pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O3 -g  output pattern test
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/abi/scoped1.C  -std=gnu++11 execution test
FAIL: g++.dg/abi/scoped1.C  -std=gnu++14 execution test
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)
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
FAIL: g++.dg/vect/pr36648.cc  -std=c++11  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++11  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++14  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++14  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++98  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++98  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1

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

# of expected passes88208
# of unexpected failures20
# of unexpected successes   2
# of expected failures  342
# of unsupported tests  4130

Running target unix/-fstack-protector
FAIL: c-c++-common/asan/null-deref-1.c   -O2  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  output pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O3 -fomit-frame-pointer  output 
pattern test
FAIL: c-c++-common/asan/null-deref-1.c   -O3 -g  output pattern test
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/abi/scoped1.C  -std=gnu++11 execution test
FAIL: g++.dg/abi/scoped1.C  -std=gnu++14 execution test
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)
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
FAIL: g++.dg/vect/pr36648.cc  -std=c++11  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++11  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++14  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++14  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++98  scan-tree-dump-times vect "vectorized 
1 loops" 1
FAIL: g++.dg/vect/pr36648.cc  -std=c++98  scan-tree-dump-times vect 
"vectorizing stmts using SLP" 1

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

# of expected passes88208
# of unexpected failures20
# of unexpected successes   2
# of expected failures  342
# of unsupported tests  4130

=== g++ Summary ===

# of expected passes176416
# of unexpected failures40
# of unexpected successes   4
# of expected failures  684
# of unsupported tests  8260
/build/gcc-5-zDaqlJ/gcc-5-5.4.1/build/gcc/xg++  version 5.4.1 20160904 (Debian 
5.4.1-2) 

=== gcc tests ===


Running target unix
FAIL: c-c++-common/asan/misalign-1.c   -O0  output pattern test
FAIL: c-c++-common/asan/misalign-1.c   -O1  output pattern test
FAIL: c-c++-common/asan/misalign-1.c   -O2  output pattern test
FAIL: c-c++-common/asan/misalign-1.c   -O2 -flto -fno-use

Results for 6.2.0 20160901 (Debian 6.2.0-3) testsuite on s390x-ibm-linux-gnu

2016-09-06 Thread Matthias Klose
LAST_UPDATED: Thu Sep  1 19:54:12 UTC 2016 (revision 239944)

Target: s390x-linux-gnu
gcc version 6.2.0 20160901 (Debian 6.2.0-3) 

Native configuration is s390x-ibm-linux-gnu

=== g++ tests ===


Running target unix
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/guality/pr55665.C   -O2  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 passes95741
# of unexpected failures8
# of unexpected successes   2
# of expected failures  309
# of unsupported tests  3810

Running target unix/-fstack-protector
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++11  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++14  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  (test for warnings, line 22)
FAIL: g++.dg/abi/abi-tag23.C  -std=gnu++98  scan-assembler 
_ZThn16_N7Derived7get_fooB3barEv
FAIL: g++.dg/guality/pr55665.C   -O2  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 passes95741
# of unexpected failures8
# of unexpected successes   2
# of expected failures  309
# of unsupported tests  3810

=== g++ Summary ===

# of expected passes191482
# of unexpected failures16
# of unexpected successes   4
# of expected failures  618
# of unsupported tests  7620
/build/gcc-6-qGEt1O/gcc-6-6.2.0/build/gcc/xg++  version 6.2.0 20160901 (Debian 
6.2.0-3) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/ifcvt-4.c scan-rtl-dump ce1 "2 true changes made"
FAIL: gcc.dg/loop-9.c scan-rtl-dump loop2_invariant "Decided"
FAIL: gcc.dg/loop-9.c scan-rtl-dump loop2_invariant "without introducing a new 
temporary register"
XPASS: gcc.dg/guality/example.c   -O0  execution test
XPASS: gcc.dg/guality/example.c   -O1  execution test
XPASS: gcc.dg/guality/example.c   -O2  execution test
XPASS: gcc.dg/guality/example.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  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 -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 -g  execution test
XPASS: gcc.dg/guality/inline-params.c   -Os  execution test
FAIL: gcc.dg/guality/pr36728-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 y == 2
FAIL: gcc.dg/guality/pr36728-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 18 y == 2
FAIL: gcc.dg/guality/pr36728-1.c   -O3 -g  line 16 y == 2
FAIL: gcc.dg/guality/pr36728-1.c   -O3 -g  line 18 y == 2
FAIL: gcc.dg/guality/pr36728-2.c   -O2  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  line 18 *x == (char) 25
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 arg3 == 3
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 arg4 == 4
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 arg5 == 5
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 arg6 == 6
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 arg7 == 30
FAIL: gcc.dg/guality/pr36728-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  line 16 y == 2
FAIL