Ran into this build issue when trying to do a source upgrade: /usr/src.svn/lib/libc/gen/strtofflags.c:65: error: 'UF_ARCHIVE' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:67: error: 'UF_HIDDEN' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:75: error: 'UF_OFFLINE' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:78: error: 'UF_READONLY' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:82: error: 'UF_REPARSE' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:84: error: 'UF_SPARSE' undeclared here (not in a function) /usr/src.svn/lib/libc/gen/strtofflags.c:86: error: 'UF_SYSTEM' undeclared here (not in a function) *** [strtofflags.So] Error code 1 bmake[3]: stopped in /usr/src.svn/lib/libc --- timezone.So --- Even though sys/stat.h is in the file (but why is it picking up the system header and not the one in the build root???????????). Might be related to bin/182076 : strtofflags.o strtofflags.po strtofflags.So: /usr/src/lib/libc/gen/strtofflags.c \ /usr/include/sys/cdefs.h /usr/include/sys/types.h \ /usr/include/machine/endian.h /usr/include/x86/endian.h \ /usr/include/sys/_types.h /usr/include/machine/_types.h \ /usr/include/x86/_types.h /usr/include/sys/_pthreadtypes.h \ /usr/include/sys/_stdint.h /usr/include/sys/select.h \ /usr/include/sys/_sigset.h /usr/include/sys/_timeval.h \ /usr/include/sys/timespec.h /usr/include/sys/_timespec.h \ /usr/include/sys/stat.h /usr/include/sys/time.h \ /usr/src/lib/libc/../../include/time.h /usr/include/sys/_null.h \ /usr/src/lib/libc/../../include/xlocale/_time.h \ /usr/src/lib/libc/../../include/stddef.h \ /usr/src/lib/libc/../../include/stdlib.h \ /usr/src/lib/libc/../../include/string.h \ /usr/src/lib/libc/../../include/strings.h \ /usr/src/lib/libc/../../include/xlocale/_string.h \ /usr/src/lib/libc/../../include/unistd.h /usr/include/sys/unistd.h
I have the same issue. How I can fix it? I'm trying update system from FreeBSD 10 builded in Oct 2012 to latest source. As system does not have clang, I have that src.conf (first try to build with_gcc after that i want to build with clang) There is src.conf (some knobs from 11-CURRENT, but system source are -STABLE) WITHOUT_ACCT=YES WITHOUT_AMD=YES WITHOUT_ASSERT_DEBUG=YES WITHOUT_ATF=YES WITHOUT_ATM=YES WITHOUT_AUDIT=YES WITHOUT_AUTHPF=YES WITHOUT_BIND=YES WITHOUT_BLUETOOTH=YES WITHOUT_BSNMP=YES WITHOUT_CAPSICUM=YES WITHOUT_CROSS_COMPILER=YES WITHOUT_CLANG=YES WITHOUT_CLANG_IS_CC=YES WITH_GCC=YES WITHOUT_CTF=YES WITHOUT_CTM=YES WITHOUT_DICT=YES WITHOUT_FLOPPY=YES WITHOUT_FREEBSD_UPDATE=YES WITHOUT_GDB=YES WITHOUT_HTML=YES WITHOUT_INET6=YES WITHOUT_INFO=YES WITHOUT_IPFILTER=YES WITHOUT_IPX=YES WITHOUT_JAIL=YES WITHOUT_KDUMP=YES WITHOUT_KERBEROS=YES WITHOUT_KERNEL_SYMBOLS=YES WITHOUT_LDNS=YES WITHOUT_LLDB=YES WITHOUT_LPR=YES WITHOUT_MAIL=YES WITHOUT_NCP=YES WITHOUT_NDIS=YES WITHOUT_NS_CACHING=YES WITHOUT_PC_SYSINSTALL=YES WITHOUT_PF=YES WITHOUT_PMC=YES WITHOUT_PROFILE=YES WITHOUT_QUOTAS=YES WITHOUT_RCMDS=YES WITHOUT_RCS=YES WITHOUT_ROUTED=YES WITHOUT_SHAREDOCS=YES WITHOUT_SSP=YES WITHOUT_SYSINSTALL=YES WITHOUT_TESTS=YES WITHOUT_WIRELESS=YES WITHOUT_WIRELESS_SUPPORT=YES WITHOUT_ZFS=YES
bdrewery: have you tried without the WITHOUT_CROSS_COMPILER option yet?
(In reply to NGie Cooper from comment #2) > bdrewery: have you tried without the WITHOUT_CROSS_COMPILER option yet? No, but I can see that it is broken. It needs to fallback to using the 'external compiler' logic to set a proper --sysroot and avoid issues like this.
I'm going to dupe this bug to bug 196193 and mark this issue closed. *** This bug has been marked as a duplicate of bug 196193 ***