New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
https://bugs.busybox.net/show_bug.cgi?id=14311
Bug ID: 14311
Summary: Cannot compile dahdi (part of Asterisk) for x86
(P1mmx).
Product: buildroot
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: blocker
Priority: P5
Component: Other
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]Target Milestone: ---
Tried to compile Asterisk for x86 (got an old PC which is the only one which I can use for some older ZAPtel cards that need PCI without express).
1st bug got this -
In file included from /home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wctdm24xxp/base.c:73:/home/qa/buildroot/output/build/dahdi-linux-3.0.0/include/dahdi/kernel.h:71:10:
fatal error: linux/pci-aspm.h: No such file or directory
71 | #include <linux/pci-aspm.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Found a possible solution at
https://community.asterisk.org/t/dahdi-fails-fatal-error-linux-pci-aspm-h-no-such-file-or-directory/83561
, applied
git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux on top of the one that buildroot downloaded, got past that point but now I get this one:
ERROR: modpost: "__divmoddi4" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: modpost: "__divdi3" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/xpp/xpp.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_start" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcaxx.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_size" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcaxx.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_128_bin_start" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_064_bin_start" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_128_bin_size" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_064_bin_size" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_start" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte13xp.ko] undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_size" [/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte13xp.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:150:/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/Module.symvers] Error 1
make[3]: *** Deleting file '/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/Module.symvers' make[2]: *** [Makefile:1773: modules] Error 2
make[1]: *** [package/pkg-generic.mk:295:/home/qa/buildroot/output/build/dahdi-linux-3.0.0/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
Not sure if the patch for the first error provoked the next or what.
Please advise.
Question 2) Can one selectively only compile the Asterisk HW drivers for the current plaform and a selection of boards ? (i.e. don't try pci express or x64 stuff when compiling for x86_32 nor the Octasic boards since all I have and need are some old Zaptel PCI boards, including a T1000P compatible - aka ancient Intel WinModem)
P.S. there was a trivial error before that point:
--2021-10-29 15:34:29-- http://sources.buildroot.net/m4-1.4.19.tar.xz
Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.1.37, 104.26.0.37, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2021-10-29 15:34:29 ERROR 404: Not Found.
which I solved by using 1.4.18 instead which did exist on your server. No biggie there, just reporting it in case anyone needs the report. Feel free to ignore this one. The dahdi part is important.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
https://bugs.busybox.net/show_bug.cgi?id=14311
--- Comment #1 from [email protected] ---
Attempting to fix the last errors and found that it may wannt the gcc library.
Added -lgcc to the soup, but then:
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing. Run 'make oldconfig && make prepare' on kernel src to fix it.
probably I'm deviating too far....
So, to close the paranthesis, this ticket is for the bug that Asterisk doesn't compile for x86-p1mmx.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14311
--- Comment #2 from Thomas Petazzoni <[email protected]> --- Thanks for your bug report. Could you indicate the Buildroot version that you are using (and if you made any modification) and provide a minimal Buildroot configuration that allows to reproduce the issue ?
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14311
--- Comment #3 from [email protected] --- Hello/Salut,
I am using this one here
~/buildroot$ git log | head
commit bcde80febd2f0455ba5c34f8aa870fc8133749ae
Author: James Hilliard <[email protected]> Date: Mon Oct 25 02:04:46 2021 -0600
The buildroot config was attached before .
One small patch had to be done due to a missing file:
package/m4/m4.mk +0 -0
@@ -4,7 +4,7 @@ #
################################################################################
-M4_VERSION = 1.4.19
+M4_VERSION = 1.4.18
M4_SOURCE = m4-$(M4_VERSION).tar.xz
And another patch due to the first error (took dahdi from the "next" branch instead of the usual)
Also the kernel config previously attached is old, please disregard. Thanks / Merci
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14311
--- Comment #4 from Fabrice Fontaine <[email protected]> --- There was a lot of issues in dahdi-linux, please try the following patch serie:
https://patchwork.ozlabs.org/project/buildroot/list/?series=270476. I build tested it with qemu_x86_defconfig.
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14311
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED--- Comment #5 from Peter Korsgaard <[email protected]> --- The patch series has been applied and is included in 2021.11-rc1 (and the upcoming 2021.02.7 / 2021.08.2), thanks
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
[Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
In reply to [email protected]https://bugs.busybox.net/show_bug.cgi?id=14311
--- Comment #6 from [email protected] --- Yep, this patch does fix DAHDI.
There is another small error in Asterisk (some license file surrounding web addresses in angle brackets even though the file is XML-ish) but it's a trivial fix.
Thanks a lot !
Signature · 6 lines
You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot