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, Apr 28, 2023 at 13:22:02 +1200, 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
[...]
> For some reason, the include path isn't set correctly. I can see that the
> missing files are in the tree.

You can go to $OBJDIR/lib/csu and re-run that command with --verbose
and gcc will tell you the include directories it uses.

You should some something like:

ignoring nonexistent directory "/home/uwe/work/netbsd/build/distrib/sparc/usr/local/include"
ignoring nonexistent directory "/home/uwe/work/netbsd/build/tools/lib/gcc/sparc--netbsdelf/10.4.0/../../../../sparc--netbsdelf/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/uwe/work/netbsd/ro/src/lib/csu/arch/sparc
 /home/uwe/work/netbsd/ro/src/lib/csu/common
 .
 /home/uwe/work/netbsd/build/distrib/sparc/usr/include/gcc-10
 /home/uwe/work/netbsd/build/tools/lib/gcc/sparc--netbsdelf/10.4.0/include-fixed
 /home/uwe/work/netbsd/build/distrib/sparc/usr/include
End of search list.

-uwe


Home | Main Index | Thread Index | Old Index