Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make errors #208

Open
KB00100100 opened this issue Aug 16, 2023 · 8 comments
Open

Make errors #208

KB00100100 opened this issue Aug 16, 2023 · 8 comments

Comments

@KB00100100
Copy link

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
Copy link

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
Copy link

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

@simonwindtner
Copy link

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

@KB00100100
Copy link
Author

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
Copy link

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

@jeremy-syn
Copy link

@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
Copy link

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
Copy link

Has this problem been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants