[Bug 223179] lib/libcompiler_rt fails to compile with gcc; some flags are being applied incorrectly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Oct 23 04:16:37 UTC 2017


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

            Bug ID: 223179
           Summary: lib/libcompiler_rt fails to compile with gcc; some
                    flags are being applied incorrectly
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ngie at FreeBSD.org

Per gcc(1), the following clangs (minus -fno-sanitize=...) are c++ flags, and
are being applied to CFLAGS instead of CXXFLAGS.

===> lib/libclang_rt/profile (obj,all,install)
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not
for C
cc1: error: unrecognized command line option "-fno-sanitize=safe-stack"
cc1: warning: command line option "-fvisibility-inlines-hidden" is valid for
C++/ObjC++ but not for C

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


More information about the freebsd-bugs mailing list