xiph / LPCNet

Efficient neural speech synthesis
BSD 3-Clause "New" or "Revised" License
1.12k stars 295 forks source link

Make errors #208

Open KB00100100 opened 1 year ago

KB00100100 commented 1 year ago

Hi all. I got an error when compiling the code (Ubuntu 20.04):

lpcnet_demo.c:257: undefined reference to `lpc_from_cepstrum'

Why this happens?

jeremy-syn commented 1 year ago

I'm having the same problem. Here's the error with some more context (from make output).

CCLD     lpcnet_demo
src/lpcnet_demo.o: In function `main':
/home/jeremy/dev/tts/LPCNet/src/lpcnet_demo.c:257: undefined reference to `lpc_from_cepstrum'
collect2: error: ld returned 1 exit status
Makefile:629: recipe for target 'lpcnet_demo' failed
make[1]: *** [lpcnet_demo] Error 1
make[1]: Leaving directory '/home/jeremy/dev/tts/LPCNet'
Makefile:465: recipe for target 'all' failed
make: *** [all] Error 2

I can see the lpc_from_cepstrum() function defined in freq.c and objdump --syms src/freq.o shows this line, so it looks like the function is in there. I don't know why the linker can't find it.

0000000000000df0 g F .text 0000000000000132 .hidden lpc_from_cepstrum

jeremy-syn commented 1 year ago

I was able to get make to run with the lpcnet_efficiency branch.

simonwindtner commented 11 months ago

Has anyone else found a solution for this issue? Checked the same all @jeremy-syn and don't really understand why this happen.

KB00100100 commented 11 months ago

I can make successfully with the branch "v0.1"

Has anyone else found a solution for this issue? Checked the same all @jeremy-syn and don't really understand why this happen.

simonwindtner commented 11 months ago

@KB00100100 can you send me the link to the branch - actually I do not find the "v0.1" branch. thanks!

jeremy-syn commented 11 months ago

@simonwindtner v0.1 is actually a tag, not a branch. It looks likely that something was introduced into the main branch after the lpcnet_efficiency branch split off and after the v0.1 tag and that that something broke the build process. In principle you could diff-and-attempt through all the changes until you find the one that breaks the build, but I have not had the time to do that.

simonwindtner commented 11 months ago

aaaah ok - yes I understand. actually I have no time to step through until It is not working anymore. maybe later, but I loaded the mentioned v0.1 and its compiling :)

Janne-byti commented 11 months ago

Has this problem been solved?