[Pkg-rust-maintainers] Bug#811573: FTBFS with GCC 6: statement indented as if it were guarded by

Martin Michlmayr tbm at hpe.com
Tue Jan 19 23:53:38 UTC 2016


Package: rustc
Version: 1.5.0+dfsg1-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-misleading-indentation

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> (cd x86_64-unknown-linux-gnu/rt/libbacktrace && env PWD= CC="gcc" AR="ar" RANLIB="ar s" CFLAGS="-Wall  -g -fPIC -m64 -fno-stack-protector" /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/libbacktrace/configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu)
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2  -Wall -Werror -g -fPIC -m64 -fno-rtti -c -o  x86_64-unknown-linux-gnu/rustllvm/ExecutionEngineWrapper.o  -I//usr//lib//llvm-3.7//include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual   -I /usr/lib/llvm-3.7/include -I /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/include /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/ExecutionEngineWrapper.cpp
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c: In function 'tinfl_decompress':
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c:578:47: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>          for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8;
>                                                ^~~
> 
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c:578:9: note: ...this 'for' clause, but it is not
>          for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8;
>          ^~~
> 
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2  -Wall -Werror -g -fPIC -m64 -fno-rtti -c -o  x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o  -I//usr//lib//llvm-3.7//include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual   -I /usr/lib/llvm-3.7/include -I /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/include /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/RustWrapper.cpp
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c: In function 'tdefl_find_match':
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c:1396:23: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>      if (!dist) break; p = s; q = d->m_dict + probe_pos; for (probe_len = 0; probe_len < max_match_len; probe_len++) if (*p++ != *q++) break;
>                        ^
> 
> /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rt/miniz.c:1396:5: note: ...this 'if' clause, but it is not
>      if (!dist) break; p = s; q = d->m_dict + probe_pos; for (probe_len = 0; probe_len < max_match_len; probe_len++) if (*p++ != *q++) break;
>      ^~
> 
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2  -Wall -Werror -g -fPIC -m64 -fno-rtti -c -o  x86_64-unknown-linux-gnu/rustllvm/PassWrapper.o  -I//usr//lib//llvm-3.7//include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual   -I /usr/lib/llvm-3.7/include -I /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/include /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/PassWrapper.cpp
> g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security  -O2  -Wall -Werror -g -fPIC -m64 -fno-rtti -c -o  x86_64-unknown-linux-gnu/rustllvm/ArchiveWrapper.o  -I//usr//lib//llvm-3.7//include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -g -O2 -fomit-frame-pointer -std=c++11 -fvisibility-inlines-hidden -fno-exceptions -fPIC -ffunction-sections -fdata-sections -Wcast-qual   -I /usr/lib/llvm-3.7/include -I /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/include /<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/rustllvm/ArchiveWrapper.cpp
> "/usr/bin/python2.7" "/<<BUILDDIR>>/rustc-1.5.0+dfsg1/src/etc/mklldeps.py" "/<<BUILDDIR>>/rustc-1.5.0+dfsg1/x86_64-unknown-linux-gnu/rt/llvmdeps.rs" "x86 arm aarch64 mips powerpc ipo bitreader bitwriter linker asmparser mcjit interpreter instrumentation" "" /usr/lib/llvm-3.7/bin/llvm-config "stdc++"
> touch x86_64-unknown-linux-gnu/stage1/lib/stamp.core

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the Pkg-rust-maintainers mailing list