I have very limited experience doing anything with rpmbuild, so @amadio and @simonmichal do you have any advice on debugging these build errors that are only happening for fedora?

errors from rpm-fedora CI logs:
g++ -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-rpath,$ORIGIN/../../.. -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDCopyProcess.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDCopyProgressHandler.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDFile.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDFileSystem.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDModule.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/PyXRootDURL.o build/temp.linux-x86_64-cpython-311/github/home/rpmbuild/BUILD/xrootd/xrootd/bindings/python/src/Utils.o -L/github/home/rpmbuild/BUILD/xrootd/xrootd/build/src -L/github/home/rpmbuild/BUILD/xrootd/xrootd/build/src/XrdCl -L/usr/lib64 -lXrdCl -lXrdUtils -ldl -o build/lib.linux-x86_64-cpython-311/pyxrootd/client.cpython-311-x86_64-linux-gnu.so
+ popd
~/rpmbuild/BUILD/xrootd/xrootd
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ITHyv2
+ umask 022
+ cd /github/home/rpmbuild/BUILD
+ '[' /github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64 '!=' / ']'
+ rm -rf /github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64
++ dirname /github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64
+ mkdir -p /github/home/rpmbuild/BUILDROOT
+ mkdir /github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
~/rpmbuild/BUILD/xrootd/xrootd ~/rpmbuild/BUILD/xrootd
~/rpmbuild/BUILD/xrootd/xrootd/build ~/rpmbuild/BUILD/xrootd/xrootd ~/rpmbuild/BUILD/xrootd
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd xrootd
+ rm -rf /github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64
+ pushd xrootd
+ pushd build
+ make install DESTDIR=/github/home/rpmbuild/BUILDROOT/xrootd-5.5.2.post167-1.fc37.x86_64
[I] No git repository info found. Trying to interpret VERSION_INFO
[I] The XrdVersion.hh file already exists
[  0%] Built target XrdVersion.hh
[ 23%] Built target XrdUtils
[ 24%] Built target XrdXml
[ 32%] Built target XrdCl
[ 35%] Built target XrdPosix
[ 35%] Built target xrdadler32
[ 36%] Built target xrdcks
[ 36%] Built target xrdcrc32c
[ 36%] Built target cconfig
[ 36%] Built target XrdAppUtils
[ 36%] Built target mpxstats
[ 36%] Built target xrdprep
[ 37%] Built target wait41
[ 54%] Built target XrdServer
[ 54%] Built target xrdacctest
[ 55%] Built target xrdmapc
[ 56%] Built target xrdpinls
[ 57%] Built target xrdqstats
[ 58%] Built target XrdClProxyPlugin-5
[ 58%] Built target XrdClRecorder-5
[ 58%] Built target xrdreplay
[ 60%] Built target XrdCrypto
[ 61%] Built target XrdCryptoLite
[ 62%] Built target XrdCryptossl-5
[ 62%] Built target XrdPosixPreload
[ 63%] Built target XrdSec-5
[ 63%] Built target XrdSecProt-5
[ 63%] Built target XrdSecpwd-5
[ 63%] Built target xrdpwdadmin
[ 63%] Built target XrdSecsss-5
[ 63%] Built target xrdsssadmin
[ 64%] Built target XrdSecunix-5
[ 65%] Built target XrdSecgsi-5
[ 65%] Built target XrdSecgsiAUTHZVO-5
[ 65%] Built target XrdSecgsiGMAPDN-5
[ 65%] Built target xrdgsiproxy
[ 65%] Built target xrdgsitest
[ 66%] Built target XrdSeckrb5-5
[ 67%] Built target XrdXrootd-5
[ 68%] Built target xrootd
[ 68%] Linking CXX executable cmsd
/github/home/rpmbuild/BUILD/xrootd/xrootd/src/XrdCms/XrdCmsRRQ.cc: In function 'sendRedResp.constprop':
/github/home/rpmbuild/BUILD/xrootd/xrootd/src/XrdCms/XrdCmsRRQ.cc:370:23: error: 'port' may be used uninitialized [-Werror=maybe-uninitialized]
  370 |       {redrResp.Val = htonl(port);
      |                       ^
/github/home/rpmbuild/BUILD/xrootd/xrootd/src/XrdCms/XrdCmsRRQ.cc:363:17: note: 'port' was declared here
  363 |    int doredir, port, hlen = 0;
      |                 ^
lto1: all warnings being treated as errors
make[3]: *** [/tmp/ccb9s0vQ.mk:5: /tmp/ccwnhEpT.ltrans1.ltrans.o] Error 1
make[3]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/cmsd.dir/build.make:499: src/cmsd] Error 1
make[1]: *** [CMakeFiles/Makefile2:1454: src/CMakeFiles/cmsd.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

error: Bad exit status from /var/tmp/rpm-tmp.ITHyv2 (%install)
RPM build warnings:

RPM build errors:
    line 256: It's not recommended to have unversioned Obsoletes: Obsoletes:  xrootd-macaroons
    line 257: It's not recommended to have unversioned Obsoletes: Obsoletes:  xrootd-tpc
    line 428: It's not recommended to have unversioned Obsoletes: Obsoletes: xrootd-voms-plugin
    Bad exit status from /var/tmp/rpm-tmp.ITHyv2 (%install)


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/pull/1906/c1430088608@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1906#issuecomment-1430088608", "url": "https://github.com/xrootd/xrootd/pull/1906#issuecomment-1430088608", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1