You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frr compilation failed on Fedora x86_64 and i686 but successed on aarch64, ppc64le, s390x with binutils-2.43.50-7.fc42.x86_64.
Version
frr 10.1
How to reproduce
Compile frr for Fedora 42 with latest binutils package.
Expected behavior
compilation succeeded
Actual behavior
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o lib/libfrrsnmp.la.xref lib/libfrrsnmp.la
while processing lib/libfrrsnmp.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: lib/libfrrsnmp.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o lib/libfrrcares.la.xref lib/libfrrcares.la
while processing lib/libfrrcares.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: lib/libfrrcares.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o qpb/libfrr_pb.la.xref qpb/libfrr_pb.la
while processing qpb/libfrr_pb.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: qpb/libfrr_pb.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o fpm/libfrrfpm_pb.la.xref fpm/libfrrfpm_pb.la
while processing fpm/libfrrfpm_pb.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: fpm/libfrrfpm_pb.la.xref] Error 1
Additional context
Compilation succeeded after disabling separate-code linker option by setting ldflags in rpm spec file
Description
frr compilation failed on Fedora x86_64 and i686 but successed on aarch64, ppc64le, s390x with binutils-2.43.50-7.fc42.x86_64.
Version
How to reproduce
Compile frr for Fedora 42 with latest binutils package.
Expected behavior
compilation succeeded
Actual behavior
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o lib/libfrrsnmp.la.xref lib/libfrrsnmp.la
while processing lib/libfrrsnmp.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: lib/libfrrsnmp.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: *** Waiting for unfinished jobs....
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o lib/libfrrcares.la.xref lib/libfrrcares.la
while processing lib/libfrrcares.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: lib/libfrrcares.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o qpb/libfrr_pb.la.xref qpb/libfrr_pb.la
while processing qpb/libfrr_pb.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: qpb/libfrr_pb.la.xref] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
make[1]: Entering directory '/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1'
lib/clippy ./python/xrelfo.py -Wlog-format -Wlog-args -o fpm/libfrrfpm_pb.la.xref fpm/libfrrfpm_pb.la
while processing fpm/libfrrfpm_pb.la:
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 478, in _main
xrelfo.load_file(fn)
~~~~~~~~~~~~~~~~^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 364, in load_file
self.load_elf(filename, orig_filename)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/./python/xrelfo.py", line 414, in load_elf
for ptr in ptrs:
^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 493, in iter_data
yield scls(ELFData(self, offset, size))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 324, in init
data = dataptr.get_data(struct.calcsize(pspec))
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 120, in get_data
return self._dstsect[self._dstoffs : self._dstoffs + reflen]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/rpmbuild/BUILD/frr-10.1-build/frr-10.1/python/clippy/elf.py", line 462, in getitem
return self._obj[k]
~~~~~~~~~^^^
OverflowError: Python int too large to convert to C ssize_t
make[1]: *** [Makefile:17918: fpm/libfrrfpm_pb.la.xref] Error 1
Additional context
Compilation succeeded after disabling separate-code linker option by setting ldflags in rpm spec file
export LDFLAGS="%{build_ldflags} -Wl,-z,noseparate-code"
See https://bugzilla.redhat.com/show_bug.cgi?id=2327314
Checklist
The text was updated successfully, but these errors were encountered: