-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-9.4
-
None
-
gcc-toolset-13-binutils-2.40-16.el9
-
None
-
None
-
rhel-sst-pt-gcc
-
ssg_platform_tools
-
19
-
22
-
1
-
False
-
-
No
-
None
-
Pass
-
gcc-toolset-13-binutils-2.40-16.el9
-
Automated
-
None
What were you trying to do that didn't work?
[root@ip-10-31-45-11 reproducer]# cat libbfdtest.c #include <bfd.h> #include "libbfdtest.h" int libbfdtest (void) { bfd_set_error (bfd_error_no_error); return bfd_get_error () == bfd_error_no_error; } [root@ip-10-31-45-11 reproducer]# gcc -g -Wall -shared -o libbfdtest.so -fPIC libbfdtest.c -lbfd -liberty [root@ip-10-31-45-11 reproducer]# scl enable gcc-toolset-13 bash [root@ip-10-31-45-11 reproducer]# gcc -g -Wall -shared -o libbfdtest.so -fPIC libbfdtest.c -lbfd -liberty In function 'd_append_char', inlined from 'd_print_java_identifier' at ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/cp-demangle.c:6306:8: ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/cp-demangle.c:4529:1: warning: inlining failed in call to 'd_print_flush': call is unlikely and code size would grow [-Winline] ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/cp-demangle.c:4543:5: note: called from here during RTL pass: final ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c: In function 'fde_func': ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libsframe/../../libsframe/sframe.c:496:1: internal compiler error: in get_insn_template, at final.cc:2032 during RTL pass: final ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/hashtab.c: In function 'hash_pointer': ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/hashtab.c:1004:1: internal compiler error: in get_insn_template, at final.cc:2032 during RTL pass: final ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/cp-demangle.c: In function 'd_print_java_identifier': ../../../../../../../../../../../../../builddir/build/BUILD/binutils-2.40/build-x86_64-redhat-linux/libiberty/../../libiberty/cp-demangle.c:6314:1: internal compiler error: in get_insn_template, at final.cc:2032 Please submit a full bug report, with preprocessed source. See <http://bugzilla.redhat.com/bugzilla> for instructions. make: *** [/tmp/cc3lBfYE.mk:2: /tmp/ccJc8tbY.ltrans0.ltrans.o] Error 1 make: *** Waiting for unfinished jobs.... Please submit a full bug report, with preprocessed source. See <http://bugzilla.redhat.com/bugzilla> for instructions. make: *** [/tmp/cc3lBfYE.mk:8: /tmp/ccJc8tbY.ltrans2.ltrans.o] Error 1 Please submit a full bug report, with preprocessed source. See <http://bugzilla.redhat.com/bugzilla> for instructions. make: *** [/tmp/cc3lBfYE.mk:5: /tmp/ccJc8tbY.ltrans1.ltrans.o] Error 1 lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status [root@ip-10-31-45-11 reproducer]#
Please provide the package NVR for which bug is seen:
gcc-toolset-13-binutils-2.40-15.el9.x86_64
gcc-toolset-13-gcc-13.2.1-5.el9.x86_64
How reproducible:
Always, no error is raised with system binutils, binutils-2.35.2-42.el9.x86_64
Expected results
Actual results
- account is impacted by
-
RHEL-19373 lto-wrapper fails when compiling with -lbfd and -liberty
- Closed
- links to
-
RHBA-2023:121958 gcc-toolset-13-binutils bug fix and enhancement update
- mentioned on