Bug 182170 - strtofflags.c build failures
Summary: strtofflags.c build failures
Status: Closed DUPLICATE of bug 196193
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-16 22:40 UTC by Enji Cooper
Modified: 2017-01-03 05:47 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2013-09-16 22:40:00 UTC
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
Comment 1 George 2014-01-11 22:48:02 UTC
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
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 07:42:48 UTC
bdrewery: have you tried without the WITHOUT_CROSS_COMPILER option yet?
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2015-11-10 23:05:37 UTC
(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.
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2017-01-03 05:47:17 UTC
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 ***