Skip to content

-Werror causing build issues #78

Description

@ceneblock

I'm trying to build on OpenSuse and the -Werror set in the make files causes build issues. For example:

propgcc/binutils/bfd/coffgen.c:2029:8:

warning: this statement may fall through [-Wimplicit-fallthrough=]
if (combined->u.syment.n_type == T_NULL)
^
/home/cen5848/dev/propgcc/binutils/bfd/coffgen.c:2046:3: note: here
case C_EXT:
^~~~
/home/cen5848/dev/propgcc/binutils/bfd/coffgen.c:2048:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (ISFCN (combined->u.syment.n_type))
^
/home/cen5848/dev/propgcc/binutils/bfd/coffgen.c:2066:3: note: here
default:
^~~~~~~

If you read the comments for those files, then you can see that the fallthrough is expected.

This is in some other code like gprof and gas. Removing the -Werror fixes the problem.

Likewise there was a similar problem bfd's doc building.

If there is any additional information that I can provide, then please let me know.

Helpful information:
uname -a:

Linux computer 4.14.12-1-default #1 SMP PREEMPT Fri Jan 5 18:15:55 UTC 2018 (3cf399e) x86_64 x86_64 x86_64 GNU/Linux

gcc -v:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=hsa:nvptx-none
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,ada,go --enable-offload-targets=hsa,nvptx-none=/usr/nvptx-none, --without-cuda-driver --enable-checking=release --disable-werror --with-gxx-include-dir=/usr/include/c++/7 --enable-ssp --disable-libssp --disable-libvtv --disable-libcc1 --enable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --with-gcc-major-version-only --enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function --program-suffix=-7 --without-system-libunwind --enable-multilib --with-arch-32=x86-64 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 7.2.1 20171020 [gcc-7-branch revision 253932] (SUSE Linux)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions