<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 13, 2021 at 3:17 PM Paul Smith <<a href="mailto:paul@mad-scientist.net">paul@mad-scientist.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2021-10-13 at 14:38 -0400, Jerry Geis wrote:<br>
> my issue is I am not able to find sys/io.h  - I'm trying to compile a<br>
> program that uses it and it is not present.  <br>
> <br>
> So I tried "apt-file search sys/io.h" and it gives some files - but<br>
> none of them are placed in <br>
> /usr/include/sys/io.h file path.<br>
> <br>
> I still tried installing some of those packages - but still the<br>
> compiler is not finding the file???<br>
> <br>
> There isnt even a /usr/include/sys directory on the 20.04 arm ? yes<br>
> build-essential is installed.<br>
<br>
It's not supposed to be there.<br>
<br>
It lives in an architecture-specific subdirectory; for example on my<br>
system it's:<br>
<br>
  /usr/include/x86_64-linux-gnu/sys/io.h<br>
<br>
This is part of the libc6-dev package.<br>
<br>
When the compiler runs, it adds the architecture-specific subdirectory<br>
for that compiler to the default system search path for headers:<br>
<br>
  $ gcc -v -o /tmp/foo /tmp/foo.c<br>
    ...<br>
  #include "..." search starts here:<br>
  #include <...> search starts here:<br>
   /usr/lib/gcc/x86_64-linux-gnu/9/include<br>
   /usr/local/include<br>
   /usr/include/x86_64-linux-gnu<br>
   /usr/include<br>
  End of search list.<br>
<br>
So, if you don't see that then you'll have to figure it out I suppose.<br>
<br>
<br>
<br>
-- <br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com" target="_blank">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a></blockquote><div><br></div><div>Hi Paul - thanks for the reply..  So I have </div><div>/usr/alpha-linux-gnu/include/sys/io.h</div><div><br></div><div>but it must not be actually included when I compile as a standard include directory ???</div><div><br></div><div>if I add the -I/usr/alpha-linux-gnu/include to the compile - now - that does work.   Thanks!  Not sure why its not picking it up automatically.</div><div><br></div><div>jerry </div></div></div>