Summary:ASTERISK-08976: Can't build HPEC into 1.4 branch yet
Reporter:Eric Caron (ecaron)Labels:
Date Opened:2007-03-08 23:18:28.000-0600Date Closed:2011-06-07 14:02:40
Versions:Frequency of
Description:During build of HPEC (yes, I bought the licenses), make gives this:
Warning: could not find /root/zaptel-1.4-March8/hpec/.hpec_x86_32.o.cmd for /root/zaptel-1.4-March8/hpec/hpec_x86_32.o

I can't find reference to the .hpec_x86_32.o.cmd file anywhere. This happens both with the bundled hpec_x86_32.o and the hpec_x86_32.o.shipped.

This warning prevents HPEC from being built into zaptel, leaving zaphpec_enable with this response:
The Zaptel module on this system appears to have been built without HPEC support. Please check your Zaptel build.
Comments:By: Serge Vecher (serge-v) 2007-03-09 08:50:34.000-0600

I think support@digium.com is the best resource to handle this.

By: Eric Caron (ecaron) 2007-03-23 08:44:59

support said wait until 1.4.1 has been released. Today it was released. Same issue against official tarball.

By: Joshua C. Colp (jcolp) 2007-03-23 10:56:00

I can confirm that it does indeed work... so here's what I did:

1. Grabbed 1.4.1
2. Downloaded HPEC (i686 in my case)
3. Copied hpec_x86_32.o_shipped to the hpec directory.
4. Typed make

It built correctly, and HPEC can be seen when loading zaptel in dmesg.

Which CPU optimized one are using and what CPU do you have? If you try a more generic one (if not already using it) does it work? What does the console output look like?

By: Eric Caron (ecaron) 2007-03-23 11:02:05

I'm running a Intel(R) Xeon(TM) CPU 2.80GHz.
I'm using the 2007-02-08 hpec-8.20-i686.tar.gz for the 32-bit.

After make, console output is this:
Building modules, stage 2.
Warning: could not find /root/zaptel-1.4.1/hpec/.hpec_x86_32.o.cmd for /root/zaptel-1.4.1/hpec/hpec_x86_32.o
(I can throw this all on pastebin if you want)

It builds fine and everything. But when I run zaphpec_enable, I get this:
Found valid HPEC licenses for 10 channels.
The Zaptel module on this system appears to have been built without
HPEC support. Please check your Zaptel build.

By: Joshua C. Colp (jcolp) 2007-03-23 11:04:34

And does dmesg show that it is using the HPEC echo canceller? Did you rmmod everything and modprobe it again after building/installing?

By: Eric Caron (ecaron) 2007-03-23 11:05:41

No. Yes.
Do you get the same warning?

By: Joshua C. Colp (jcolp) 2007-03-23 11:07:35

Did you just do a make update? If so try doing a make distclean first and redo the build.

By: Eric Caron (ecaron) 2007-03-23 11:11:52

No to the make update. Each time I've been grabbing a clean build, then I've been doing a "make menuconfig" and then a "make install" after all the modules have been removed with rmmod. I thought doing this would be synonymous to a "make distclean".

No answer on if you get the warning?

By: Joshua C. Colp (jcolp) 2007-03-23 11:14:51

The problem is that your Zaptel is not using HPEC, as can be seen when you load it  it does not appear in dmesg. Can you please attach the complete dmesg output though so I can take a look? And yes, I do get the warning upon install but my Zaptel actually has HPEC in the dmesg.

By: Eric Caron (ecaron) 2007-03-23 11:23:42

I'll have to respond to this after 5pm when I can take the system down. (We're too active now for me to do a quick rmmod w/o affecting today's sales).

Right now the dmesg has too many debug lines that I can't get to the relevant parts for you (hopefully that will also be resolved, ala bug 9261).

By: Eric Caron (ecaron) 2007-03-24 15:11:13

This bug can be closed (I wish I could close my own bugs).
I didn't know that I had to do a "make distclean" before doing the "make install".
Now, despite the warning message, hpec is working fine.

Thank you, file, for your patience and help. (And I'm so happy for the resolution to bug 9261).

By: Joshua C. Colp (jcolp) 2007-03-24 20:36:02

Bada bing bada boom!