20.04 on mac M1

Jerry Geis jerry.geis at gmail.com
Wed Oct 13 20:16:11 UTC 2021


On Wed, Oct 13, 2021 at 3:52 PM Paul Smith <paul at mad-scientist.net> wrote:

> On Wed, 2021-10-13 at 15:41 -0400, Jerry Geis wrote:
> > Hi Paul - thanks for the reply..  So I have
> > /usr/alpha-linux-gnu/include/sys/io.h
>
> That's odd.  It's not how the directory structure normally looks.
>
> What does "dpkg -S /usr/alpha-linux-gnu/include/sys/io.h" tell you?
>
> > but it must not be actually included when I compile as a standard
> > include directory ???
>
> Well, if you invoke GCC the way I showed in my email (with the -v
> option and no extra options) it will print out the default search path
> and you can see what is expected by that install of GCC.
>
> > 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.
>
> This shouldn't be needed.  But if you do use it I urge you to use
>
>   -isystem /usr/alpha-linux-gnu/include
>
> rather tha -I.  Otherwise you may get spurious compiler warnings for
> content in the system header files.  See:
> https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Hi Paul

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/9/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
9.3.0-17ubuntu1~20.04'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,gm2 --prefix=/usr
--with-gcc-major-ve
rsion-only --program-suffix=-9 --program-prefix=aarch64-linux-gnu-
--enable-shared --enable-linker-build-id --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --libdir=/usr/lib
--enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-libquadmath --disable-libquadmath-support --enable-plugin
--enable-default-pie --with-system-zlib --with-targ
et-system-zlib=auto --enable-objc-gc=auto --enable-multiarch
--enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release
--build=aarch64-linux-gnu --host=aarch64-linux-gnu
--target=aarch64-linux-gnu
Thread model: posix
gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)


libc6.1-dev-alpha-cross: /usr/alpha-linux-gnu/include/sys/io.h


apt-file search sys/io.h
dietlibc-dev: /usr/include/diet/sys/io.h
libc6-dev-amd64-cross: /usr/x86_64-linux-gnu/include/sys/io.h
libc6-dev-i386-cross: /usr/i686-linux-gnu/include/sys/io.h
libc6-dev-x32-cross: /usr/x86_64-linux-gnux32/include/sys/io.h
libc6.1-dev-alpha-cross: /usr/alpha-linux-gnu/include/sys/io.h
libklibc-dev: /usr/lib/klibc/include/arch/i386/sys/io.h
libklibc-dev: /usr/lib/klibc/include/arch/x86_64/sys/io.h
musl-dev: /usr/include/aarch64-linux-musl/sys/io.h


here are the outputs...  I guess I installed some of the cross - compilers
thinking they were what I needed.  Sounds like the file is not really
present/needed on ARM ?
The program is like 25 years old...  Might have to tweak.

Thanks,

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20211013/2afad544/attachment.html>


More information about the ubuntu-users mailing list