[Bug 196193] New: WITHOUT_CROSS_COMPILER=true use system header files instead of those from the build root

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 22 15:01:58 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196193

            Bug ID: 196193
           Summary: WITHOUT_CROSS_COMPILER=true use system header files
                    instead of those from the build root
           Product: Base System
           Version: 10.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: philippe.michel7 at sfr.fr

If WITHOUT_CROSS_COMPILER is false, a clang is built with 
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/tmp\", world is built with it and
everything goes well.

With this flag set to true, a clang is built with -DDEFAULT_SYSROOT=\"\" and
buildword uses it, using for instance the system includes instead of those from
/usr/src, and fails when new include files appear in the source tree.

I didn't investigate if this compiler is a misconfigured first stage one or
already the final one, but in either case there is a problem since even if it
is the second case and this is a feature, it is a much more aggressive shortcut
than what src.conf man page suggests, with serious limitations.


This is the underlying cause of another PR I opened as misc/195503 and may well
be the cause of bin/182170 as well (at least in the case of the me-too comment
there).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list