On Fri, Oct 30, 2020 at 5:12 PM Daniel P. Berrangé <berra...@redhat.com> wrote:
> On Fri, Oct 30, 2020 at 10:30:00AM +0800, Han Han wrote: > > Hello, > > I encountered errors when building rpm on fedora33: > > > > Versions: > > libvirt: v6.9.0-rc2 > > gcc-10.2.1-5.fc33.x86_64 > > meson-0.55.3-1.fc33.noarch > > ninja-build-1.10.1-2.fc33.x86_64 > > binutils-2.35-11.fc33.x86_64 > > > > Steps: > > 1. Archive libvirt source code to ~/rpmbuild/SOURCES/libvirt-6.9.0.tar.xz > > 2. Copy libvirt.spec.in to ~/rpmbuild/SPECS/libvirt.spec. Then `sed -i > > s/@VERSION@/6.9.0/g ~/rpmbuild/SPECS/libvirt.spec` > > 3. Build rpm: > > $ rpmbuild -ba ~/rpmbuild/SPECS/libvirt.spec > > > > FAILED: tests/cputest > > gcc -o tests/cputest src/libvirt_probes.o tests/cputest.p/cputest.c.o > > -Wl,--as-needed -Wl,--no-undefined -Wl,-export-dynamic -pie > > -Wl,--whole-archive -Wl,--start-group tests/libtest_utils.a > > tests/libtest_utils_qemu.a -Wl,--no-whole-archive -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 -Wl,-z,relro > > -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld > > src/libvirt.so.0.6009.0 tests/libtest_utils_qemu_monitor.a > > tests/libtest_qemu_driver.so -Wl,--no-copy-dt-needed-entries > > -Wl,-export-dynamic -ldl /usr/lib64/libglib-2.0.so /usr/lib64/ > > libgobject-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgnutls.so > > /usr/lib64/libnl-3.so /usr/lib64/libnl-route-3.so /usr/lib64/libxml2.so > > /usr/lib64/libsasl2.so -lselinux /usr/lib64/libtirpc.so > > /usr/lib64/libyajl.so -Wl,-export-dynamic -lselinux -Wl,-export-dynamic > > -lselinux -Wl,-export-dynamic -lselinux -Wl,--end-group > > '-Wl,-rpath,$ORIGIN/../src:$ORIGIN/' > > > -Wl,-rpath-link,/home/hhan/rpmbuild/BUILD/libvirt-6.9.0/x86_64-redhat-linux-gnu/src > > > -Wl,-rpath-link,/home/hhan/rpmbuild/BUILD/libvirt-6.9.0/x86_64-redhat-linux-gnu/tests > > /usr/bin/ld: tests/libtest_qemu_driver.so: undefined reference to > > `__open_missing_mode' > > collect2: error: ld returned 1 exit status > > ninja: build stopped: subcommand failed. > > error: Bad exit status from /var/tmp/rpm-tmp.xEqkEF (%build) > > Hmm, same binutils problem we're seeing on F34 > > Thx :) > > https://bugzilla.redhat.com/show_bug.cgi?id=1889763 > > Regards, > Daniel > -- > |: https://berrange.com -o- > https://www.flickr.com/photos/dberrange :| > |: https://libvirt.org -o- > https://fstop138.berrange.com :| > |: https://entangle-photo.org -o- > https://www.instagram.com/dberrange :| > >