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

Configuration error when building etherlab. #7

Closed
stefanpoeter opened this issue Nov 4, 2016 · 4 comments
Closed

Configuration error when building etherlab. #7

stefanpoeter opened this issue Nov 4, 2016 · 4 comments

Comments

@stefanpoeter
Copy link

So far everything is fine, except when I build the etherlab module.

configure: error: Failed to extract Linux kernel version!
Makefile:9: die Regel für Ziel „etherlab“ scheiterte
make: *** [etherlab] Fehler 1
@pbruenn
Copy link
Member

pbruenn commented Nov 7, 2016

Did you compile the kernel completely before you run etherlab?
What kind of host environment do you use to build?

@stefanpoeter
Copy link
Author

I did, as it says:

#get and patch a rt kernel:
#==========================
./tools/prepare_kernel.sh 4.4.27-rt37

#configure and build the kernel:
#===============================
make kernel

No errors after compiling the kernel.

I use ubuntu 16.04 with kernel 4.4.0-45-generic.

@pbruenn
Copy link
Member

pbruenn commented Nov 7, 2016

If the kernel build finished before you start the etherlab build and you still have that error, I have no further idea. It is important, that the kernel build completed before the etherlab configuration begins, because etherlab depends on some kernel headers.

You could try an etherlab installation from scratch:
http://etherlab.org/download/ethercat/ethercat-1.5.2.pdf
or post your complete build output, to see if there is something else.

@stefanpoeter
Copy link
Author

I probably forgot to specify the kernel on the prepare_kernel script. It is working now.

Thanks for your help.

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

2 participants