[Bug binutils/29194] New: bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type
https://sourceware.org/bugzilla/show_bug.cgi?id=29194 Bug ID: 29194 Summary: bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type Product: binutils Version: 2.38 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: dc at genunix dot com Target Milestone: --- Not entirely sure if this is a bug or perhaps the binutils sources are not C99 clean. Also not sure if this is a Big Flipping Deal[1] or maybe I can give up on C99? Regardless I have CFLAGS set for strict compliance : mimas$ echo $CC /opt/gcc/imed/gcc12/bin/gcc mimas$ echo $CFLAGS -std=iso9899:1999 -pedantic -pedantic-errors -fno-builtin -g -O0 -m64 -march=k8 -mtune=k8 -malign-double -mpc80 -mno-mmx -Wl,-rpath=/opt/bw/lib,--enable-new-dtags mimas$ echo $CPPFLAGS -I/opt/bw/include -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE mimas$ This is on an old Red Hat Enterprise Linux 6 machine wherein I did a bootstrap of GCC 9.4.0 and then used that result to bootstrap GCC 12.1.0 with great success. So I figure the compiler is reasonable. Configure was trivial : mimas$ ../binutils-2.38/configure --prefix=/opt/bw --enable-ld --with-gmp=/opt/bw --with-mpfr=/opt/bw --with-mpc=/opt/bw --with-isl=/opt/bw checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for gawk... gawk checking for gcc... /opt/gcc/imed/gcc12/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /opt/gcc/imed/gcc12/bin/gcc accepts -g... yes checking for /opt/gcc/imed/gcc12/bin/gcc option to accept ISO C89... none needed checking for /opt/gcc/imed/gcc12/bin/gcc option to accept ISO C99... none needed checking whether we are using the GNU C++ compiler... yes checking whether /opt/gcc/imed/gcc12/bin/g++ accepts -g... yes checking whether g++ accepts -static-libstdc++ -static-libgcc... yes checking for gnatbind... no checking for gnatmake... no checking whether compiler driver understands Ada... no checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2 checking for objdir... .libs checking for isl 0.15 or later... yes checking for default BUILD_CONFIG... checking for --enable-vtable-verify... no checking for bison... bison -y checking for bison... bison checking for gm4... /opt/bw/bin/m4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... no checking for runtest... no checking for ar... (cached) /opt/bw/bin/gar checking for as... (cached) /opt/bw/bin/gas checking for dlltool... no checking for ld... (cached) /opt/bw/bin/gld checking for lipo... no checking for nm... (cached) /opt/bw/bin/gnm checking for ranlib... (cached) /opt/bw/bin/granlib checking for strip... (cached) /opt/bw/bin/gstrip checking for windres... no checking for windmc... no checking for objcopy... (cached) /opt/bw/bin/gobjcopy checking for objdump... (cached) /opt/bw/bin/gobjdump checking for readelf... (cached) /opt/bw/bin/greadelf checking for -plugin option... --plugin /opt/gcc/imed/gcc12/libexec/gcc/x86_64-pc-linux-gnu/12.1.0/liblto_plugin.so checking for cc... cc checking for c++... c++ checking for gcc... gcc checking for gfortran... gfortran checking for gccgo... no checking for ar... ar checking for as... as checking for dlltool... no checking for ld... ld checking for lipo... no checking for nm... nm checking for objcopy... objcopy checking for objdump... objdump checking for ranlib... ranlib checking for readelf... readelf checking for strip... strip checking for windres... no checking for windmc... no checking where to find the target ar... just compiled checking where to find the target as... just compiled checking where to find the target cc... host tool checking where to find the target c++... host tool checking where to find the target c++ for libstdc++... host tool checking where to find the target dlltool... just compiled checking where to find the target gcc... host tool checking where to find the target gfortran... host tool checking where to find the target gccgo... host tool checking where to find the target ld... just compiled checking where to find the target lipo... host tool checking where to find the target nm... just compiled checking where to find the target objcopy... just compiled checking where to find the target objdump
[Bug binutils/29194] bfd/doc/chew.c error: ISO C forbids conversion of function pointer to object pointer type
https://sourceware.org/bugzilla/show_bug.cgi?id=29194 --- Comment #1 from Dennis Clarke --- As a further comment where I did also try C90 but that gets me only a little further : . . . /opt/gcc/imed/gcc12/bin/gcc -c -DHAVE_CONFIG_H -std=iso9899:1990 -pedantic -pedantic-errors -fno-builtin -g -O0 -m64 -march=k8 -mtune=k8 -malign-double -mpc80 -mno-mmx -Wl,-rpath=/opt/bw/lib,--enable-new-dtags -I/opt/bw/include -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -I. -I../../binutils-2.38/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local -pedantic -D_GNU_SOURCE -fcf-protection ../../binutils-2.38/libiberty/cp-demangle.c -o cp-demangle.o ../../binutils-2.38/libiberty/cp-demangle.c: In function 'is_designated_init': ../../binutils-2.38/libiberty/cp-demangle.c:4763:3: error: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4763 | struct demangle_component *op = d_left (dc); | ^~ ../../binutils-2.38/libiberty/cp-demangle.c: In function 'd_maybe_print_designated_init': ../../binutils-2.38/libiberty/cp-demangle.c:4779:3: error: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 4779 | const char *code = d_left (dc)->u.s_operator.op->code; | ^ make[2]: *** [cp-demangle.o] Error 1 make[2]: Leaving directory `/opt/bw/build/binutils-2.38_rhel6_amd64.003/libiberty' make[1]: *** [all-libiberty] Error 2 make[1]: Leaving directory `/opt/bw/build/binutils-2.38_rhel6_amd64.003' make: *** [all] Error 2 So I am not sure what C standard the binutils comply with. If at all. Dennis -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/24893] New: ld 57 unexpected failures on Red Hat Enterprise Linux 7.4
https://sourceware.org/bugzilla/show_bug.cgi?id=24893 Bug ID: 24893 Summary: ld 57 unexpected failures on Red Hat Enterprise Linux 7.4 Product: binutils Version: 2.32 Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: dc at genunix dot com Target Milestone: --- On a newly installed RHEL 7.4 server I see 57 failures with ld : === ld Summary === # of expected passes2239 # of unexpected failures57 # of expected failures 57 # of untested testcases 25 # of unsupported tests 39 ./ld-new 2.32 The failure list is : FAIL: TLS -fpic and -fno-pic exec transitions FAIL: TLS -fpic and -fno-pic exec transitions without PLT FAIL: TLS descriptor -fpic and -fno-pic exec transitions FAIL: TLS -fno-pic -shared FAIL: basic PLT generation (non-PIC, -z now) FAIL: PR ld/20830 (.plt.got) FAIL: ld-i386/ibt-plt-2a FAIL: ld-i386/ibt-plt-2b FAIL: ld-i386/ibt-plt-3a FAIL: ld-i386/ibt-plt-3b FAIL: ld-i386/ibt-plt-3c FAIL: ld-ifunc/ifunc-2-i386-now FAIL: ld-ifunc/ifunc-2-local-i386-now FAIL: ld-ifunc/ifunc-2-local-x86-64-now FAIL: ld-ifunc/ifunc-2-local-x86-64 FAIL: ld-ifunc/ifunc-2-x86-64-now FAIL: ld-ifunc/ifunc-2-x86-64 FAIL: ld-ifunc/pr17154-x86-64-now FAIL: ld-ifunc/pr17154-x86-64 FAIL: Build mpx4 FAIL: Build mpx3 (-z now) FAIL: Build mpx4 (-z now) FAIL: ld-x86-64/bnd-ifunc-2 FAIL: ld-x86-64/bnd-plt-1 FAIL: ld-x86-64/bnd-branch-1-now FAIL: ld-x86-64/bnd-ifunc-1-now FAIL: ld-x86-64/bnd-ifunc-2-now FAIL: ld-x86-64/bnd-plt-1-now FAIL: TLS -fpic -shared transitions FAIL: TLS -fpic -shared transitions with r15 as GOT base FAIL: TLS descriptor -fpic -shared transitions FAIL: TLS -fpic and -fno-pic exec transitions FAIL: TLS -fpic and -fno-pic exec transitions without PLT FAIL: TLS descriptor -fpic and -fno-pic exec transitions FAIL: PR ld/14207 FAIL: ld-x86-64/pie3 FAIL: ld-x86-64/ilp32-4 FAIL: ld-x86-64/load1c FAIL: ld-x86-64/load1d FAIL: ld-x86-64/pr19162 FAIL: ld-x86-64/pr19636-2d FAIL: ld-x86-64/pr19636-2l FAIL: ld-x86-64/pr20253-1d FAIL: ld-x86-64/pr20253-1f FAIL: ld-x86-64/pr20253-1j FAIL: ld-x86-64/pr20253-1l FAIL: basic PLT generation (-z now) FAIL: PR ld/21038 (.plt.got and .plt.sec) FAIL: PR ld/21038 (.plt.got and .plt.sec, -z now) FAIL: ld-x86-64/ibt-plt-2a FAIL: ld-x86-64/ibt-plt-2b FAIL: ld-x86-64/ibt-plt-2a-x32 FAIL: ld-x86-64/ibt-plt-2b-x32 FAIL: ld-x86-64/ibt-plt-3a FAIL: ld-x86-64/ibt-plt-3b FAIL: ld-x86-64/ibt-plt-3a-x32 FAIL: ld-x86-64/ibt-plt-3b-x32 The environment for the compile was : boe13 build]$ cat binutils-2.32_rhel_74_3.10.0-693.el7.x86_64.002.env AR=/usr/bin/ar AS=/usr/bin/as CC=/usr/bin/gcc COLUMNS=132 CPPFLAGS=-I/opt/bw/include -I/opt/bw/gcc9_i/include EDITOR=/bin/vi GDM_LANG=C GNAT=/usr/bin/gnat GREP=/usr/bin/grep HISTCONTROL=ignoredups HISTSIZE=1000 HOME=/home/dclarke HOSTNAME=boe13.genunix.com LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LD=/usr/bin/ld LDFLAGS=-L/opt/bw/lib -Wl,-rpath=/opt/bw/lib,--enable-new-dtags LD_RUN_PATH=/opt/bw/lib LIBTOOL=/usr/bin/libtool LINES=43 LOGNAME=dclarke M4=/usr/bin/m4 MAIL=/var/spool/mail/dclarke MAKE=/opt/bw/bin/gmake NM=/usr/bin/nm -p OBJCOPY=/usr/bin/objcopy OBJDUMP=/usr/bin/objdump OLDPWD=/opt/bw/build PAGER=/bin/more PATH=/opt/bw/bin:/opt/bw/sbin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/schily/bin PERL=/usr/bin/perl PWD=/opt/bw/build/binutils-2.32_rhel_74_3.10.0-693.el7.x86_64.002 RANLIB=/usr/bin/ranlib SED=/usr/bin/sed SELINUX_LEVEL_REQUESTED= SELINUX_ROLE_REQUESTED= SELINUX_USE_CURRENT_RANGE= SHELL=/bin/bash SHLVL=1 SSH_CLIENT=172.16.35.3 42390 22 SSH_CONNECTION=172.16.35.3 42390 172.16.35.5 22 SSH_TTY=/dev/pts/0 STRIP=/usr/bin/strip TERM=xterm TMPDIR=/var/tmp/dclarke TZ=GMT0 USER=dclarke VISUAL=/bin/vi XDG_RUNTIME_DIR=/run/user/16411 XDG_SESSION_ID=1 XTERM_LOCALE=C _=/usr/bin/env boe13 build]$ Configure was : boe13$ ../binutils-2.32/configure --prefix=/opt/bw --program-prefix=g \ > --enable-lto --enable-objc-gc --with-system-zlib \ > --with-gmp=/opt/bw --with-mpfr=/opt/bw --with-mpc=/opt/bw \ > --with-isl=/opt/bw checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking for gawk... gawk checking for gcc... /usr/bin/gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc accepts
[Bug ld/24893] ld 57 unexpected failures on Red Hat Enterprise Linux 7.4
https://sourceware.org/bugzilla/show_bug.cgi?id=24893 Dennis Clarke changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from Dennis Clarke --- (In reply to Nick Clifton from comment #1) > Hi Dennis, > > Sorry, but this is not the place to report bugs/problems with the RHEL > binutils. Instead you should report them on the Red Hat bugzilla > system. Ie: > > https://bugzilla.redhat.com/enter_bug.cgi?product=Red Hat Enterprise Linux 7 > > Cheers > Nick Did you not see the binutils 2.32 there ? -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/24893] ld 57 unexpected failures on Red Hat Enterprise Linux 7.4
https://sourceware.org/bugzilla/show_bug.cgi?id=24893 --- Comment #4 from Dennis Clarke --- Sure thing. I'll dig that up when I get to the Red Hat section of my day today. -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils