[OpenAFS-devel] 1.8.0 error building rpms
Stephan Wiesand
stephan.wiesand@desy.de
Thu, 26 Apr 2018 20:10:53 +0200
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 <utoddl@email.unc.edu> wrote:
>=20
> I did have a ~/.rpmrc file, but it contained only comments.
>=20
> /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.
>=20
> The only doc I've found relevant to "smp_mflags" said
>> The %_smp_mflags macro usually contains only the -j (=E2=80=93jobs) =
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.
>=20
> "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.
>=20
> Removed ~/.rpmrc; same result.
>=20
> Tried: "rpmbuild -ba openafs.spec --define=3D'_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 10000000 --dwz-max-die-limit 110000000 -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/fstra=
ce
> ...
>> 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.fc=
27.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
>>=20
>>=20
>> RPM build errors:
>> Macro expanded in comment on line 111: %{afsvers}/...
>>=20
>> line 417: Possible unexpanded macro in: Provides: =
openafs-kernel =3D %{PACKAGE_VERSION}
>> Empty %files file =
/home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list
>=20
>=20
> Also, to your other question,
>> $ rpm -q rpm-build
>> rpm-build-4.14.1-1.fc27.x86_64
>=20
> Thanks,
> --=20
> +--------------------------------------------------------------+
> /=20
> Todd_Lewis@unc.edu 919-445-0091 http://www.unc.edu/~utoddl
> /
> / Whatever you do, always give 100% /
> / unless you're donating blood. /
> +--------------------------------------------------------------+
>=20
>=20
>=20
> On 04/13/2018 12:28 PM, Benjamin Kaduk wrote:
>> On Fri, Apr 13, 2018 at 12:00:48PM -0400, Todd Lewis wrote:
>>=20
>>>> =
/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.fc=
27.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=20
>>>>=20
>> 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?)
>>=20
>>=20
>>> Then later on:
>>>=20
>>>=20
>>>> 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 =3D
>>>> %{PACKAGE_VERSION} Empty %files file
>>>> /home/utoddl/rpmbuild/BUILD/openafs-1.8.0/kmod-debuginfo.list=20
>>>>=20
>> This one I have fewer ideas for (I don't normally use RPM-based
>> systems).
>>=20
>> Thanks for the report!
>>=20
>> -Ben
>>=20
>=20
> <rpmbuild--showrc.txt>
--=20
Stephan Wiesand
DESY - DV -
Platanenallee 6
15738 Zeuthen, Germany