Re: A build fails because it tells me a file doesn't exist, but it does.

Reimar Döffinger <[email protected]> Sun, 27 Feb 2022 10:23:22 +0100
Newsgroups gmane.comp.video.mplayer.user
Message-ID <[email protected]>
> On 27 Feb 2022, at 06:25, arthurpeabody <[email protected]> wrote:
> 
> 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
> 
> 
> But it does exist.

It also needs to exist in a place where it's looked form.
Normally it's not in /usr/include/asm but instead some architecture-specific subdirectory.
If your compiler e.g. was compiled wrongly and fails to include that in the default search path, it just being there won't help as the compiler just won't find it.
You can add the right -I option to the CFLAGS as a workaround, but if that helps there's something really wrong with your system I am afraid.

Best regards,
Reimar