Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: I can't cross build 10 on 10??



On Fri, 28 Apr 2023, Lloyd Parkes wrote:

It looks like something is going wrong with the host tools and they are trying to use host includes when they should be using in-tree includes. One concise example is

#   compile  csu/gcrt0.o
/home/lloyd/NetBSD/tooldir/bin/sparc--netbsdelf-gcc --sysroot=/home/lloyd/NetBSD/destdir -DELFSIZE=32
[...]
machine/elf_support.h: No such file or directory
  150 | #include <machine/elf_support.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
*** Failed target: gcrt0.o
...
┌──(lloyd@ceph4)-[~/NetBSD/src]
└─$ find . -name elf_support.h ./sys/arch/sparc/include/elf_support.h
./sys/arch/sparc64/include/elf_support.h


That header file seems sparc-specific (no other arch. has it.) and it
should've been copied into the `--sysroot=' dir. under usr/include.

Does `/home/lloyd/NetBSD/destdir/usr/include/machine' point to either
sparc or sparc64, or to some other arch?

For some reason, the include path isn't set correctly. I can see that the missing files are in the tree.


That sysroot dir. looks a bit odd: build.sh would've added an `.arch'
suffix--like: destdir.amd64--to it. This looks like a local build issue--
ie. the compiler command-line you posted looks very like the standard
invocation on amd64.

-RVP


Home | Main Index | Thread Index | Old Index