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

Compilation error with kernel 4.13.0-38-generic: fatal error: asm/msr-index.h: No such file or directory #63

Closed
dipanjan opened this issue May 28, 2018 · 2 comments

Comments

@dipanjan
Copy link

dipanjan commented May 28, 2018

As Linux kernel has stopped exporting asm/msr-index.h to user-land starting kernel version 4.12-rc1 , the build (branch: sgx2, commit dc5858aa1a67d80e525440968366d29e1c44b892) fails with the following error message: fatal error: asm/msr-index.h: No such file or directory

The build system configuration is as follows:

$ uname -r
4.13.0-38-generic

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
@sergeay
Copy link
Contributor

sergeay commented May 29, 2018

It says: "x86: stop exporting msr-index.h to userland"

my Ubuntu 16.04 has the following:
$ uname -r
4.13.0-43-generic

and msr-index.h is at:
$ sudo find / -name 'msr-index.h'
/usr/src/linux-headers-4.13.0-43/arch/x86/include/asm/msr-index.h

And the driver compilation works fine

@dipanjan
Copy link
Author

Extremely sorry. My host had ARCH and CROSS_COMPILE environment variables wrongly set from a previous kernel build. Closing this issue.

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