All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
@ 2021-11-01 18:30 bugzilla
  2021-11-01 23:03 ` [Buildroot] [Bug 14311] " bugzilla
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla @ 2021-11-01 18:30 UTC (permalink / raw)
  To: buildroot

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: unassigned@buildroot.uclibc.org
          Reporter: ingineru_de_sistem@yahoo.com
                CC: buildroot@uclibc.org
  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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
@ 2021-11-01 23:03 ` bugzilla
  2021-11-02 19:45 ` bugzilla
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-01 23:03 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

--- Comment #1 from ingineru_de_sistem@yahoo.com ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
  2021-11-01 23:03 ` [Buildroot] [Bug 14311] " bugzilla
@ 2021-11-02 19:45 ` bugzilla
  2021-11-02 20:22 ` bugzilla
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-02 19:45 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@bootlin.com> ---
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 ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
  2021-11-01 23:03 ` [Buildroot] [Bug 14311] " bugzilla
  2021-11-02 19:45 ` bugzilla
@ 2021-11-02 20:22 ` bugzilla
  2021-11-04 23:18 ` bugzilla
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-02 20:22 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

--- Comment #3 from ingineru_de_sistem@yahoo.com ---
Hello/Salut, 

I am using this one here

~/buildroot$ git log | head
commit bcde80febd2f0455ba5c34f8aa870fc8133749ae
Author: James Hilliard <james.hilliard1@gmail.com>
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:
diff --git a/package/m4/m4.mk b/package/m4/m4.mk
index 3a12092971..849e7f4a54 100644
--- a/package/m4/m4.mk
+++ b/package/m4/m4.mk
@@ -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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
                   ` (2 preceding siblings ...)
  2021-11-02 20:22 ` bugzilla
@ 2021-11-04 23:18 ` bugzilla
  2021-11-10 12:04 ` bugzilla
  2021-11-12  2:47 ` bugzilla
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-04 23:18 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

--- Comment #4 from Fabrice Fontaine <fontaine.fabrice@gmail.com> ---
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
                   ` (3 preceding siblings ...)
  2021-11-04 23:18 ` bugzilla
@ 2021-11-10 12:04 ` bugzilla
  2021-11-12  2:47 ` bugzilla
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-10 12:04 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Peter Korsgaard <jacmet@uclibc.org> ---
The patch series has been applied and is included in 2021.11-rc1 (and the
upcoming 2021.02.7 / 2021.08.2), thanks

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [Bug 14311] Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
  2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
                   ` (4 preceding siblings ...)
  2021-11-10 12:04 ` bugzilla
@ 2021-11-12  2:47 ` bugzilla
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla @ 2021-11-12  2:47 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=14311

--- Comment #6 from ingineru_de_sistem@yahoo.com ---
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 !

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-12  2:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-01 18:30 [Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx) bugzilla
2021-11-01 23:03 ` [Buildroot] [Bug 14311] " bugzilla
2021-11-02 19:45 ` bugzilla
2021-11-02 20:22 ` bugzilla
2021-11-04 23:18 ` bugzilla
2021-11-10 12:04 ` bugzilla
2021-11-12  2:47 ` bugzilla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.