Hi all,
I recently started trying to build 10_BETA for some of my non-amd64
platforms using my 10_BETA amd64 build hosts and it just won't work.
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
-I/home/lloyd/NetBSD/src/lib/csu/arch/sparc
-I/home/lloyd/NetBSD/src/lib/csu/common -I. -x assembler-with-cpp -c
/home/lloyd/NetBSD/src/lib/csu/arch/sparc/crt0.S -o gcrt0.o.S.o
/home/lloyd/NetBSD/tooldir/bin/sparc--netbsdelf-gcc -O2 -std=gnu99
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wno-sign-compare -Wsystem-headers -Wno-traditional -Wa,--fatal-warnings
-Wreturn-type -Wswitch-Wshadow -Wcast-qual -Wwrite-strings -Wextra
-Wno-unused-parameter -Wno-sign-compare -Wold-style-definition -Wsign-compare
-Wformat=2 -Wno-format-zero-length -Werror
--sysroot=/home/lloyd/NetBSD/destdir -DELFSIZE=32
-I/home/lloyd/NetBSD/src/lib/csu/arch/sparc
-I/home/lloyd/NetBSD/src/lib/csu/common -I. -c -fPIC -DMCRT0
/home/lloyd/NetBSD/src/lib/csu/common/crt0-common.c -o gcrt0.o.c.o
/home/lloyd/NetBSD/src/lib/csu/common/crt0-common.c:150:10: fatal error:
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
For some reason, the include path isn't set correctly. I can see that
the missing files are in the tree.
I'm using sources from Mercurial and I can see that my local changes are
utterly trivial and I do _seem_ to have reasonably up to date sources
judging by the most recent commit message that says "Tickets #145 - #150".
┌──(lloyd@ceph4)-[~/NetBSD/src]
└─$ hg status
M etc/rc.d/entropy
M share/man/man7/entropy.7
M sys/arch/amd64/conf/GENERIC
┌──(lloyd@ceph4)-[~/NetBSD/src]
└─$ hg sum
parent: 1023970:7893cdb2b634
Tickets #145 - #150
branch: netbsd-10
commit: 3 modified
update: (current)
I've tried deleting destdir, objdir, releasedir and tooldir with no
change in behaviour.
Do I remember this being discussed before? Am I going mad? Probably. Any
help will be appreciated.
Cheers,
Lloyd