Re: kernel-5.18.0-0.rc1.20220408git1831fed559732b1.20.fc37.src.rpm fails to build locally

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 12, 2022 at 12:19 PM stan <upaitag@xxxxxxxx> wrote:
>
> On Mon, 11 Apr 2022 10:53:54 -0500
> Justin Forbes <jmforbes@xxxxxxxxxxx> wrote:
> > Coming soon to the kernel-ark repo, but the fix is easy in the spec:
> >
> > diff --git a/kernel.spec b/kernel.spec
> > index fb67ab956..515942496 100755
> > --- a/kernel.spec
> > +++ b/kernel.spec
> > @@ -2249,7 +2249,7 @@ chmod +x
> > tools/power/cpupower/utils/version-gen.sh %{make}
> > CFLAGS+="-D_GNU_SOURCE -Iinclude -I/usr/include/libnl3" popd
> >     pushd tools/arch/x86/intel_sdsi
> > -   %{make}
> > +   %{tools_make}
> >     popd
> >  %endif
> >  %endif
>
> Thanks.  That got me further, but I then hit another error.
>
> + popd
> + pushd tools/iio/
> + /usr/bin/make V=1 'HOSTCFLAGS=-O2  -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' 'HOSTLDFLAGS=-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
>   -Wl,-dT,/home/stan/rpmbuild/BUILD/kernel-5.18-rc1-184-g1831fed559732b1/.package_note-kernel-5.18.0-0.rc1.20220408git1831fed559732b1.20.20220410.fc37.x86_64.ld'
>   'CFLAGS=-O2  -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' '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
>   -Wl,-dT,/home/stan/rpmbuild/BUILD/kernel-5.18-rc1-184-g1831fed559732b1/.package_note-kernel-5.18.0-0.rc1.20220408git1831fed559732b1.20.20220410.fc37.x86_64.ld'
>   V=1
> iio_utils.c: In function 'iioutils_break_up_name':
> iio_utils.c:65:15: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
>    65 |         ret = asprintf(generic_name, "%s_%s", prefix, working);
>       |               ^~~~~~~~
>       |               vsprintf
> iio_event_monitor.c:71:10: error: 'IIO_EV_TYPE_MAG_REFERENCED' undeclared here (not in a function); did you mean 'IIO_EV_TYPE_MAG_ADAPTIVE'?
>    71 |         [IIO_EV_TYPE_MAG_REFERENCED] = "mag_referenced",
>       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
>       |          IIO_EV_TYPE_MAG_ADAPTIVE
> iio_event_monitor.c:71:10: error: array index in initializer not of integer type
> iio_event_monitor.c:71:10: note: (near initialization for 'iio_ev_type_text')
> iio_event_monitor.c: In function 'main':
> iio_event_monitor.c:353:23: warning: implicit declaration of function 'asprintf'; did you mean 'vsprintf'? [-Wimplicit-function-declaration]
>   353 |                 ret = asprintf(&chrdev_name, "/dev/iio:device%d", dev_num);
>       |                       ^~~~~~~~
>       |                       vsprintf
> make[1]: *** [/home/stan/rpmbuild/BUILD/kernel-5.18-rc1-184-g1831fed559732b1/linux-5.18.0-0.rc1.20220408git1831fed559732b1.20.20220410.fc37.x86_64/tools/build/Makefile.build:97: iio_event_monitor.o] Error 1
> make: *** [Makefile:48: iio_event_monitor-in.o] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.X2X12m (%build)
>     Bad exit status from /var/tmp/rpm-tmp.X2X12m (%build)

And now you see why kernel-headers is a separate package for Fedora,
you can't build the tools without installed kernel headers from the
same kernel.  For a quick work around, install
kernel-headers-5.18.0-0.rc2.git0.1.fc37
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux