Summary: | DAHLIN-00371: Kernel 5.2 XPP build failures | ||
Reporter: | Anthony Messina (amessina) | Labels: | patch |
Date Opened: | 2019-08-15 17:24:53 | Date Closed: | |
Priority: | Major | Regression? | |
Status: | Triage/New | Components: | Astribank (xpp) |
Versions: | 3.0.0 3.1.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Fedora 30 x86_64 | Attachments: | ( 0) 05-dahdi-3.1.0-r1-div_s64-for-32-bit-arches.patch |
Description: | The following build issues prevent successful compilation for ix86 builds:
{code} make[1]: Entering directory '/usr/src/kernels/5.2.8-200.fc30.i686' Building modules, stage 2. make[1]: Leaving directory '/usr/src/kernels/5.2.8-200.fc30.i686' MODPOST 27 modules BUILDSTDERR: ERROR: "__divdi3" [/builddir/build/BUILD/dahdi-linux-kmod-3.0.0/_kmod_build_5.2.8-200.fc30.i686/drivers/dahdi/xpp/xpp_usb.ko] undefined! BUILDSTDERR: ERROR: "__udivdi3" [/builddir/build/BUILD/dahdi-linux-kmod-3.0.0/_kmod_build_5.2.8-200.fc30.i686/drivers/dahdi/xpp/xpp_usb.ko] undefined! BUILDSTDERR: ERROR: "__moddi3" [/builddir/build/BUILD/dahdi-linux-kmod-3.0.0/_kmod_build_5.2.8-200.fc30.i686/drivers/dahdi/xpp/xpp.ko] undefined! BUILDSTDERR: ERROR: "__divdi3" [/builddir/build/BUILD/dahdi-linux-kmod-3.0.0/_kmod_build_5.2.8-200.fc30.i686/drivers/dahdi/xpp/xpp.ko] undefined! BUILDSTDERR: make[2]: *** [scripts/Makefile.modpost:91: __modpost] Error 1 BUILDSTDERR: make[1]: *** [Makefile:1605: modules] Error 2 BUILDSTDERR: make: *** [Makefile:74: modules] Error 2 {code} | ||
Comments: | By: Jaco Kroon (jkroon) 2020-03-28 15:12:49.755-0500 I believe the attached should solve it. By: Sebastian Kemper (skemper) 2020-04-25 02:08:35.286-0500 Hello Jaco and Anthony, I tried the attached patch and it removed two of the errors. But it did tell me what to search for :) I found a patch from PLD Linux ([1]) which fixes the errors. It does add some warnings on top, though. We have some build failures on OpenWrt, for a select number of 32bit targets, since most targets were moved up to kernel 5.4. For instance i386 and some powerpc. I sent a pull request to package maintainer ([2]). I don't have hardware to test the patch. But it does lead to a successful compile. Best regards, Seb [1] https://github.com/pld-linux/dahdi-linux/blob/master/math64.patch [2] https://github.com/openwrt/telephony/pull/524 By: Anthony Messina (amessina) 2020-04-25 11:49:10.842-0500 Hi Sebastian. I'm glad you found something that moves this forward. For me, I no longer use DAHDI hardware or build DAHDI kernel modules. Good luck! |