[Bug 244102] r357862 /lib/clang/libllvmminimal fails buildworld with cc1plus: error: unrecognized command line option "-std=c++11"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 13 18:31:09 UTC 2020


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

            Bug ID: 244102
           Summary: r357862 /lib/clang/libllvmminimal fails buildworld
                    with cc1plus: error: unrecognized command line option
                    "-std=c++11"
           Product: Base System
           Version: CURRENT
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: dclarke at blastwave.org

Seems to be a mismatch between the code and the compiler options 
here on FreeBSD on ppc64 : 

hydra# 
hydra# uname -apKU
FreeBSD hydra 13.0-CURRENT FreeBSD 13.0-CURRENT r351523 GENERIC  powerpc
powerpc64 1300042 1300042
hydra# 

hydra# make buildworld
[Creating objdir /usr/obj/usr/src/r357862/powerpc.powerpc64...]
make[1]: "/usr/src/r357862/Makefile.inc1" line 340: SYSTEM_LINKER: libclang
will be built for bootstrapping a cross-linker.
--------------------------------------------------------------
>>> World build started on Thu Feb 13 18:25:22 GMT 2020
--------------------------------------------------------------

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr/src/r357862/powerpc.powerpc64/tmp
cd /usr/src/r357862/tools/build;  make DIRPRFX=tools/build/
DESTDIR=/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy installdirs
[Creating objdir /usr/obj/usr/src/r357862/powerpc.powerpc64/tools/build...]
mkdir -p /usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/bin
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/lib/casper
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/lib/geom
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/include/casper
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/include/private/zstd
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/lib
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/libexec
removing old non-symlink
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/sbin
removing old non-symlink
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/sbin
removing old non-symlink
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/bin
ln -sfn bin /usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/sbin
.
.
.
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/bin/xz -> /usr/bin/xz
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/bin/unxz -> /usr/bin/unxz
===> lib/clang/libllvmminimal (obj,all,install)
[Creating objdir
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal...]
[Creating nested objdir
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/Demangle...]
[Creating nested objdir
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/Support...]
[Creating nested objdir
/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/TableGen...]
c++  -O2 -pipe -I/usr/src/r357862/lib/clang/include
-I/usr/src/r357862/contrib/llvm-project/llvm/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_VCS_VERSION_INC
-DLLVM_DEFAULT_TARGET_TRIPLE=\"powerpc64-unknown-freebsd13.0\"
-DLLVM_HOST_TRIPLE=\"powerpc64-unknown-freebsd13.0\"
-DDEFAULT_SYSROOT=\"/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp\"
-DLLVM_TARGET_ENABLE_POWERPC
-DLLVM_NATIVE_ASMPARSER=LLVMInitializePowerPCAsmParser
-DLLVM_NATIVE_ASMPRINTER=LLVMInitializePowerPCAsmPrinter
-DLLVM_NATIVE_DISASSEMBLER=LLVMInitializePowerPCDisassembler
-DLLVM_NATIVE_TARGET=LLVMInitializePowerPCTarget
-DLLVM_NATIVE_TARGETINFO=LLVMInitializePowerPCTargetInfo
-DLLVM_NATIVE_TARGETMC=LLVMInitializePowerPCTargetMC -ffunction-sections
-fdata-sections -g1 -MD -MF.depend.Demangle_ItaniumDemangle.o
-MTDemangle/ItaniumDemangle.o -Wno-format-zero-length
-I/usr/obj/usr/src/r357862/powerpc.powerpc64/tmp/legacy/usr/include 
-fno-exceptions -fno-rtti -g1 -std=c++11    -c
/usr/src/r357862/contrib/llvm-project/llvm/lib/Demangle/ItaniumDemangle.cpp -o
Demangle/ItaniumDemangle.o
cc1plus: warning: command line option "-Wno-format-zero-length" is valid for
C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-std=c++11"
*** Error code 1

Stop.
make[3]: stopped in /usr/src/r357862/lib/clang/libllvmminimal
*** Error code 1

Stop.
make[2]: stopped in /usr/src/r357862
*** Error code 1

Stop.
make[1]: stopped in /usr/src/r357862
*** Error code 1

Stop.
make: stopped in /usr/src/r357862
hydra#

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


More information about the freebsd-bugs mailing list