Bug 1759532 - devtoolset-9-ltrace fails to build with devtoolset-9-gcc if devtoolset-9-elfutils-devel is installed
Summary: devtoolset-9-ltrace fails to build with devtoolset-9-gcc if devtoolset-9-elfu...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: ltrace
Version: DTS 9.0 RHEL 7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 9.0
Assignee: DJ Delorie
QA Contact: Edjunior Barbosa Machado
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-08 12:53 UTC by Edjunior Barbosa Machado
Modified: 2020-05-26 06:07 UTC (History)
2 users (show)

Fixed In Version: devtoolset-9-ltrace-0.7.91-2.el7
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 06:07:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rpmbuild --rebuild devtoolset-9-ltrace-0.7.91-1.el7.src.rpm output (55.20 KB, text/plain)
2019-10-08 12:53 UTC, Edjunior Barbosa Machado
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2269 0 None None None 2020-05-26 06:07:02 UTC

Description Edjunior Barbosa Machado 2019-10-08 12:53:58 UTC
Created attachment 1623507 [details]
rpmbuild --rebuild devtoolset-9-ltrace-0.7.91-1.el7.src.rpm output

Description of problem:
devtoolset-9-ltrace fails to rpmbuild with devtoolset-9-gcc when devtoolset-9-elfutils-devel is installed.

It builds successfully when using base gcc (with `export CC=/usr/bin/gcc`). Tested on rhel-7.7 and 7.8.

Version-Release number of selected component (if applicable):
devtoolset-9-ltrace-0.7.91-1.el7
devtoolset-9-gcc-9.1.1-2.4.el7
devtoolset-9-elfutils-devel-0.176-5.el7

How reproducible:
100%

Steps to Reproduce:
1. scl enable devtoolset-9 -- rpmbuild --rebuild devtoolset-9-ltrace-0.7.91-1.el7.src.rpm

Actual results:
(...)
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DSYSCONFDIR=\"/opt/rh/devtoolset-9/root/etc\" -DPKGDATADIR=\"/opt/rh/devtoolset-9/root/usr/share/ltrace\" -I./sysdeps/linux-gnu/x86 -I./sysdeps/linux-gnu -I./sysdeps -I. -Wall -Wsign-compare -Wfloat-equal -Wformat-security -Werror -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -c output.c  -fPIC -DPIC -o .libs/output.o
In file included from /usr/include/stdio.h:937,
                 from output.c:27:
In function 'fprintf',
    inlined from 'frame_callback' at output.c:604:2:
/usr/include/bits/stdio2.h:97:10: error: '%s' directive argument is null [-Werror=format-overflow=]
   97 |   return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   98 |    __va_arg_pack ());
      |    ~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:695: output.lo] Error 1
make[2]: Leaving directory '/root/rpmbuild/BUILD/ltrace-0.7.91'
make[1]: *** [Makefile:837: all-recursive] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/ltrace-0.7.91'
make: *** [Makefile:516: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.0Sn31k (%build)


RPM build errors:
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
(...)
    user mockbuild does not exist - using root
    group mockbuild does not exist - using root
    bogus date in %changelog: Tue May  3 2006 Petr Machata <pmachata> - 0.4-1.5
    bogus date in %changelog: Thu Aug  2 2000 Tim Waugh <twaugh>
    Bad exit status from /var/tmp/rpm-tmp.0Sn31k (%build)

Expected results:
successful build

Comment 2 DJ Delorie 2019-10-08 18:32:49 UTC
Needs 6ec3ae320790f1313629ce4f19614ccbb9648c75 from Fedora repo

Comment 5 Edjunior Barbosa Machado 2020-01-22 11:47:26 UTC
Verified that devtoolset-9-ltrace-0.7.91-2.el7.src.rpm rpmbuilds successfully using devtoolset-9-gcc-9.1.1-2.6.el7 even when devtoolset-9-elfutils-0.176-5.el7 is installed.

Comment 6 Edjunior Barbosa Machado 2020-01-22 11:49:49 UTC
(In reply to Edjunior Barbosa Machado from comment #5)
> Verified that devtoolset-9-ltrace-0.7.91-2.el7.src.rpm rpmbuilds
> successfully using devtoolset-9-gcc-9.1.1-2.6.el7 even when
> devtoolset-9-elfutils-0.176-5.el7 is installed.

I meant devtoolset-9-elfutils-devel-0.176-5.el7:

# rpm -qa devtoolset-9-elfutils\*
devtoolset-9-elfutils-0.176-5.el7.x86_64
devtoolset-9-elfutils-libelf-devel-0.176-5.el7.x86_64
devtoolset-9-elfutils-libs-0.176-5.el7.x86_64
devtoolset-9-elfutils-libelf-0.176-5.el7.x86_64
devtoolset-9-elfutils-devel-0.176-5.el7.x86_64

Comment 8 errata-xmlrpc 2020-05-26 06:07:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2269


Note You need to log in before you can comment on or make changes to this bug.