A build fails because it tells me a file doesn't exist, but it does.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A build fails because it tells me a file doesn't exist, but it does.
I tried to build mplayer today. It fails with:
Quote:
In file included from stream/stream_cddb.c:59:
/usr/include/linux/cdrom.h:16:10: fatal error: asm/byteorder.h: No such file or directory
16 | #include
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:730: stream/stream_cddb.o] Error 1
You have to verify the include path for the compile
Is this a formal process?
Quote:
Originally Posted by rtmistler
it obviously isn't pointing to a directory structure containing that file.
That's the formal meaning, but I don't understand how it can't work. The file with the bad reference is /usr/include/linux/cdrom.h , which, you think, would have a correct reference to asm/byteorder.h , otherwise every build that referenced cdrom.h would make the same complaint.
That's the formal meaning, but I don't understand how it can't work. The file with the bad reference is /usr/include/linux/cdrom.h , which, you think, would have a correct reference to asm/byteorder.h , otherwise every build that referenced cdrom.h would make the same complaint.
There's no guarantee that the compiler includes are referencing that path.
View your make output to review where it is searching for include files, it shows at every source file compile. You can also enable debug when you run the make. The make manual page describes this.
It looks like byteorder.h belongs to the kernel so you need to install either the appropriate kernel dev or header package. This file has no standard location, you need to tell the compiler where to look for this file.
It looks like byteorder.h belongs to the kernel so you need to install either the appropriate kernel dev or header package. This file has no standard location, you need to tell the compiler where to look for this file.
One would think the configure script would notice this, but there is no real information on what was done.
@OP,
If people do not know what commands you used to get this error and do not include more of the make log where it shows the call where it compiles stream_cddb.c then there's not much further advice I think we can offer. There should have been lines before the error report which showed this information.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.