Re: [OpenAFS-devel] 1.8.0 error building rpms
This issue can hopefully be fixed with https://gerrit.openafs.org/13030 (which depends on https://gerrit.openafs.org/12986 ). - Stephan > On 13.Apr 2018, at 20:49, Todd Lewis wrote: > > I did have a ~/.rpmrc file, but it contained only comments. > > /usr/lib/rpm/macros contains this section: >> # Path to script that creates debug symbols in a /usr/lib/debug >> # shadow tree. >> # >> # A spec file can %%define _find_debuginfo_opts to pass options to >> # the script. See the script for details. >> # >> %__debug_install_post \ >> %{_rpmconfigdir}/find-debuginfo.sh \\\ >> %{?_smp_mflags} \\\ >> %{?_missing_build_ids_terminate_build:--strict-build-id} \\\ >> %{?_no_recompute_build_ids:-n} \\\ >> %{?_include_minidebuginfo:-m} \\\ >> %{?_include_gdb_index:-i} \\\ >> %{?_unique_build_ids:--build-id-seed "%{VERSION}-%{RELEASE}"} \\\ >> %{?_unique_debug_names:--unique-debug-suffix >> "-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ >> %{?_unique_debug_srcs:--unique-debug-src-base >> "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ >> %{?_find_debuginfo_dwz_opts} \\\ >> %{?_find_debuginfo_opts} \\\ >> %{?_debugsource_packages:-S debugsourcefiles.list} \\\ >> "%{_builddir}/%{?buildsubdir}"\ >> %{nil} > The "-j4" you asked about must be coming from the %{?_smp_mflags}, as > "--strict-build-id" is on the command line also. > > The only doc I've found relevant to "smp_mflags" said >> The %_smp_mflags macro usually contains only the -j (–jobs) option for the >> make command, which defines the number of jobs (make commands) that may run >> simultaneously. Usually, this is set to the number of CPU cores plus one. >> So, on a dual core CPU, the smp flags are set to -j3. > This is a quad core system (Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz), so I > would have expected "-j5" by those docs, but "-j4" according to the > /usr/lib/rpm/macros excerpt above. > > "rpmbuild --showrc" (complete output attached) shows _smp_mflags is set to > the output from >/usr/bin/getconf _NPROCESSORS_ONLN > which on this system is 4. > > Removed ~/.rpmrc; same result. > > Tried: "rpmbuild -ba openafs.spec --define='_smp_mflags -j1'"; same result, > except "-j1" instead of "-j4". Specifically: >> + /usr/lib/rpm/find-debuginfo.sh -j1 --strict-build-id -m -i --build-id-seed >> 1.8.0-1.fc27 --unique-debug-suffix -1.8.0-1.fc27.x86_64 >> --unique-debug-src-base openafs-1.8.0-1.fc27.x86_64 --run-dwz >> --dwz-low-mem-die-limit 1000 --dwz-max-die-limit 11000 -p >> '.*openafs.ko(.debug)?' -o kmod-debuginfo.list -S debugsourcefiles.list >> /home/utoddl/rpmbuild/BUILD/openafs-1.8.0 >> extracting debug info from >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/sbin/fstrace > ... >> extracting debug info from >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/scout >> extracting debug info from >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug >> extracting debug info from >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh >> extracting debug info from >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko >> dwz: >> "./lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko-1.8.0-1.fc27.x86_64.debug" >> is not a shared library >> /usr/lib/rpm/sepdebugcrcfix: Updated 63 CRC32s, 1 CRC32s did match. >> cpio: src/comerr/y.tab.c: Cannot stat: No such file or directory >> 27579 blocks > ... >> Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 >> error: Empty %files file >> /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list >> >> >> RPM build errors: >> Macro expanded in comment on line 111: %{afsvers}/... >> >> line 417: Possible unexpanded macro in: Provides: openafs-kernel >> = %{PACKAGE_VERSION} >> Empty %files file >> /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list > > > Also, to your other question, >> $ rpm -q rpm-build >> rpm-build-4.14.1-1.fc27.x86_64 > > Thanks, > -- > +--+ >/ > todd_le...@unc.edu 919-445-0091 http://www.unc.edu/~utoddl > / > / Whatever you do, always give 100% / > / unless you're donating blood./ > +--+ > > > > On 04/13/2018 12:28 PM, Benjamin Kaduk wrote: >> On Fri, Apr 13, 2018 at 12:00:48PM -0400, Todd Lewis wrote: >> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug extracting debug info from /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh extracting debug info from /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko dwz: "./lib/modules/4.15.15-300.fc2
Re: [OpenAFS-devel] 1.8.0 error building rpms
I did have a ~/.rpmrc file, but it contained only comments. /usr/lib/rpm/macros contains this section: > # Path to script that creates debug symbols in a /usr/lib/debug > # shadow tree. > # > # A spec file can %%define _find_debuginfo_opts to pass options to > # the script. See the script for details. > # > %__debug_install_post \ > %{_rpmconfigdir}/find-debuginfo.sh \\\ > %{?_smp_mflags} \\\ > %{?_missing_build_ids_terminate_build:--strict-build-id} \\\ > %{?_no_recompute_build_ids:-n} \\\ > %{?_include_minidebuginfo:-m} \\\ > %{?_include_gdb_index:-i} \\\ > %{?_unique_build_ids:--build-id-seed "%{VERSION}-%{RELEASE}"} \\\ > %{?_unique_debug_names:--unique-debug-suffix > "-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ > %{?_unique_debug_srcs:--unique-debug-src-base > "%{name}-%{VERSION}-%{RELEASE}.%{_arch}"} \\\ > %{?_find_debuginfo_dwz_opts} \\\ > %{?_find_debuginfo_opts} \\\ > %{?_debugsource_packages:-S debugsourcefiles.list} \\\ > "%{_builddir}/%{?buildsubdir}"\ > %{nil} The "-j4" you asked about must be coming from the %{?_smp_mflags}, as "--strict-build-id" is on the command line also. The only doc I've found relevant to "smp_mflags" said > The *%_smp_mflags* macro usually contains only the *-j* (*–jobs*) > option for the *make* command, which defines the number of jobs > (/make/ commands) that may run simultaneously. Usually, this is set to > the number of CPU cores plus one. So, on a dual core CPU, the smp > flags are set to *-j3*. This is a quad core system (Intel(R) Xeon(R) CPU E3-1226 v3 @ 3.30GHz), so I would have expected "-j5" by those docs, but "-j4" according to the /usr/lib/rpm/macros excerpt above. "rpmbuild --showrc" (complete output attached) shows _smp_mflags is set to the output from /usr/bin/getconf _NPROCESSORS_ONLN which on this system is 4. Removed ~/.rpmrc; same result. Tried: "rpmbuild -ba openafs.spec --define='_smp_mflags -j1'"; same result, except "-j1" instead of "-j4". Specifically: > + /usr/lib/rpm/find-debuginfo.sh -j1 --strict-build-id -m -i > --build-id-seed 1.8.0-1.fc27 --unique-debug-suffix > -1.8.0-1.fc27.x86_64 --unique-debug-src-base > openafs-1.8.0-1.fc27.x86_64 --run-dwz --dwz-low-mem-die-limit 1000 > --dwz-max-die-limit 11000 -p '.*openafs.ko(.debug)?' -o > kmod-debuginfo.list -S debugsourcefiles.list > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0 > extracting debug info from > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/sbin/fstrace ... > extracting debug info from > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/scout > extracting debug info from > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug > extracting debug info from > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh > extracting debug info from > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko > dwz: > "./lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko-1.8.0-1.fc27.x86_64.debug" > is not a shared library > /usr/lib/rpm/sepdebugcrcfix: Updated 63 CRC32s, 1 CRC32s did match. > cpio: src/comerr/y.tab.c: Cannot stat: No such file or directory > 27579 blocks ... > Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 > error: Empty %files file > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list > > > RPM build errors: > Macro expanded in comment on line 111: %{afsvers}/... > > line 417: Possible unexpanded macro in: Provides: > openafs-kernel = %{PACKAGE_VERSION} > Empty %files file > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list Also, to your other question, > $ rpm -q rpm-build > rpm-build-4.14.1-1.fc27.x86_64 Thanks, -- +--+ / todd_le...@unc.edu 919-445-0091 http://www.unc.edu/~utoddl / / Whatever you do, always give 100% / / unless you're donating blood./ +--+ On 04/13/2018 12:28 PM, Benjamin Kaduk wrote: > On Fri, Apr 13, 2018 at 12:00:48PM -0400, Todd Lewis wrote: >>> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug >>> extracting debug info from >>> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh >>> extracting debug info from >>> /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko >>> dwz: >>> "./lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko-1.8.0-1.fc27.x86_64.debug" >>> is not a shared library /usr/lib/rpm/sepdebugcrcfix: Updated 63 >>> CRC32s, 1 CRC32s did match. cpio: src/comerr/y.tab.c: Cannot stat: No >>> such file or directory 27579 blocks > I note that this was running with -j4; do you have some local > rpmbuild configuration to enable that? (Also
Re: [OpenAFS-devel] 1.8.0 error building rpms
I was able to build the non-debug rpms that I needed by commenting out that section of the openafs.spec file. But that's just a work-around, not a fix. Thanks for looking at this. -- Todd On 04/13/2018 07:43 PM, Michael Meffie wrote: This one I have fewer ideas for (I don't normally use RPM-based systems). Thanks for the report! This looks like it is related to the recent "build separate debuginfo packages" for kernel module feature of the spec file. Let me try the rpmbuild on fedora. Yes, I see it is easily reproducible in fedora 27. Not sure why yet. + /usr/lib/rpm/find-debuginfo.sh ... ... Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 error: Empty %files file /home/mmeffie/openafs/packages/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list ___ OpenAFS-devel mailing list OpenAFS-devel@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-devel
Re: [OpenAFS-devel] 1.8.0 error building rpms
> > This one I have fewer ideas for (I don't normally use RPM-based > > systems). > > > > Thanks for the report! > > This looks like it is related to the recent "build separate debuginfo > packages" for kernel module feature of the spec file. Let me try the > rpmbuild on fedora. Yes, I see it is easily reproducible in fedora 27. Not sure why yet. + /usr/lib/rpm/find-debuginfo.sh ... ... Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 error: Empty %files file /home/mmeffie/openafs/packages/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list -- Michael Meffie ___ OpenAFS-devel mailing list OpenAFS-devel@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-devel
Re: [OpenAFS-devel] 1.8.0 error building rpms
On Fri, 13 Apr 2018 11:28:01 -0500 Benjamin Kaduk wrote: > On Fri, Apr 13, 2018 at 12:00:48PM -0400, Todd Lewis wrote: > > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug > > > extracting debug info from > > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh > > > extracting debug info from > > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko > > > dwz: > > > "./lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko-1.8.0-1.fc27.x86_64.debug" > > > is not a shared library /usr/lib/rpm/sepdebugcrcfix: Updated 63 > > > CRC32s, 1 CRC32s did match. cpio: src/comerr/y.tab.c: Cannot stat: No > > > such file or directory 27579 blocks > > I note that this was running with -j4; do you have some local > rpmbuild configuration to enable that? (Also, what version of > rpmbuild, just for completeness?) > > > Then later on: > > > > > Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 error: > > > Empty %files file > > > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list RPM > > > build errors: Macro expanded in comment on line 111: %{afsvers}/... > > > line 417: Possible unexpanded macro in: Provides: openafs-kernel = > > > %{PACKAGE_VERSION} Empty %files file > > > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list > > This one I have fewer ideas for (I don't normally use RPM-based > systems). > > Thanks for the report! This looks like it is releated to the recent "build separate debuginfo packages" for kernel module feature of the spec file. Let me try the rpmbuild on fedora. -- Michael Meffie ___ OpenAFS-devel mailing list OpenAFS-devel@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-devel
Re: [OpenAFS-devel] 1.8.0 error building rpms
On Fri, Apr 13, 2018 at 12:00:48PM -0400, Todd Lewis wrote: > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/udebug > > extracting debug info from > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/usr/bin/pagsh > > extracting debug info from > > /home/utoddl/rpmbuild/BUILDROOT/openafs-1.8.0-1.fc27.x86_64/lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko > > dwz: > > "./lib/modules/4.15.15-300.fc27.x86_64/extra/openafs/openafs.ko-1.8.0-1.fc27.x86_64.debug" > > is not a shared library /usr/lib/rpm/sepdebugcrcfix: Updated 63 > > CRC32s, 1 CRC32s did match. cpio: src/comerr/y.tab.c: Cannot stat: No > > such file or directory 27579 blocks I note that this was running with -j4; do you have some local rpmbuild configuration to enable that? (Also, what version of rpmbuild, just for completeness?) > Then later on: > > > Processing files: openafs-kernel-debuginfo-1.8.0-1.fc27.x86_64 error: > > Empty %files file > > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list RPM > > build errors: Macro expanded in comment on line 111: %{afsvers}/... > > line 417: Possible unexpanded macro in: Provides: openafs-kernel = > > %{PACKAGE_VERSION} Empty %files file > > /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list This one I have fewer ideas for (I don't normally use RPM-based systems). Thanks for the report! -Ben ___ OpenAFS-devel mailing list OpenAFS-devel@openafs.org https://lists.openafs.org/mailman/listinfo/openafs-devel