Bug 244102 - r357959/lib/clang/libllvmminimal fails buildworld with cc1plus: error: unrecognized command line option "-std=c++11"
Summary: r357959/lib/clang/libllvmminimal fails buildworld with cc1plus: error: unreco...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: powerpc Any
: --- Affects Only Me
Assignee: freebsd-ppc mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-13 18:31 UTC by Dennis Clarke
Modified: 2020-02-20 00:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Clarke 2020-02-13 18:31:08 UTC
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#
Comment 1 Dennis Clarke 2020-02-15 06:49:26 UTC
Another day .. another failure. 

Here is the complete log given that it is so very short :

hydra# cd /usr/src/r357959/
hydra# make buildworld 
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64...]
make[1]: "/usr/src/r357959/Makefile.inc1" line 340: SYSTEM_LINKER: libclang will be built for bootstrapping a cross-linker.
--------------------------------------------------------------
>>> World build started on Sat Feb 15 06:47:55 GMT 2020
--------------------------------------------------------------

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp
cd /usr/src/r357959/tools/build;  make DIRPRFX=tools/build/ DESTDIR=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy installdirs
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tools/build...]
mkdir -p /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/lib/casper /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/lib/geom /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/casper /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/private/zstd /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/libexec
removing old non-symlink /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/sbin
removing old non-symlink /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/sbin
removing old non-symlink /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/bin
ln -sfn bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/sbin
ln -sfn ../bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/bin
ln -sfn ../bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/sbin
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/sys"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/casper"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/ufs/ufs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/ufs/ffs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/fs/msdosfs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/sys/disk"
cd /usr/src/r357959/tools/build;  make DIRPRFX=tools/build/ DESTDIR=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy host-symlinks
Linking host tools into /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/basename -> /usr/bin/basename
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/bzip2 -> /usr/bin/bzip2
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/bunzip2 -> /usr/bin/bunzip2
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/chmod -> /bin/chmod
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/chown -> /usr/sbin/chown
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/cmp -> /usr/bin/cmp
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/comm -> /usr/bin/comm
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/cp -> /bin/cp
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/date -> /bin/date
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/dirname -> /usr/bin/dirname
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/echo -> /bin/echo
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/env -> /usr/bin/env
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/false -> /usr/bin/false
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/find -> /usr/bin/find
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/fmt -> /usr/bin/fmt
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/gzip -> /usr/bin/gzip
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/gunzip -> /usr/bin/gunzip
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/head -> /usr/bin/head
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/hostname -> /bin/hostname
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/id -> /usr/bin/id
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/ln -> /bin/ln
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/ls -> /bin/ls
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/mkdir -> /bin/mkdir
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/mv -> /bin/mv
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/nice -> /usr/bin/nice
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/patch -> /usr/bin/patch
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/rm -> /bin/rm
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/realpath -> /bin/realpath
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/sh -> /bin/sh
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/sleep -> /bin/sleep
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/stat -> /usr/bin/stat
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/tee -> /usr/bin/tee
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/touch -> /usr/bin/touch
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/tr -> /usr/bin/tr
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/true -> /usr/bin/true
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/uname -> /usr/bin/uname
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/uniq -> /usr/bin/uniq
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/wc -> /usr/bin/wc
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/which -> /usr/bin/which
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/make -> /usr/bin/make
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/bmake -> /usr/bin/make

--------------------------------------------------------------
>>> stage 1.1: legacy release compatibility shims
--------------------------------------------------------------
cd /usr/src/r357959; INSTALL="sh /usr/src/r357959/tools/install.sh"  TOOLS_PREFIX=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp  PATH=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/sbin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/bin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp  MAKEFLAGS="-m /usr/src/r357959/tools/build/mk  -m /usr/src/r357959/share/mk" make  -f Makefile.inc1  DESTDIR=  OBJTOP='/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools'  OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1300042  BWPHASE=legacy  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FULL=no  MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no  MK_INCLUDES=yes MK_LLVM_TARGET_ALL=no legacy
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools...]
===> tools/build (obj,includes,all,install)
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/tools/build...]
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/sys/sys/nv.h /usr/src/r357959/sys/sys/cnv.h /usr/src/r357959/sys/sys/dnv.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/sys/
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/lib/libcasper/services/cap_fileargs/cap_fileargs.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/casper/
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/sys/ufs/ufs/dinode.h /usr/src/r357959/sys/ufs/ufs/dir.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/ufs/ufs/
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/sys/ufs/ffs/fs.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/ufs/ffs/
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/sys/fs/msdosfs/bootsect.h /usr/src/r357959/sys/fs/msdosfs/bpb.h /usr/src/r357959/sys/fs/msdosfs/denode.h /usr/src/r357959/sys/fs/msdosfs/direntry.h /usr/src/r357959/sys/fs/msdosfs/fat.h /usr/src/r357959/sys/fs/msdosfs/msdosfsmount.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/fs/msdosfs/
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444  /usr/src/r357959/sys/sys/disk/bsd.h /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/sys/disk/
cc  -O2 -pipe  -g -MD  -MF.depend.dummy.o -MTdummy.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/tools/build/dummy.c -o dummy.o
building static egacy library
ar -crD libegacy.a `NM='nm' NMFLAGS=''  lorder dummy.o  | tsort -q` 
ranlib -D libegacy.a
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444   libegacy.a /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/
mkdir -p /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/lib/casper /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/lib/geom /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/casper /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include/private/zstd /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/libexec
ln -sfn bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/sbin
ln -sfn ../bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/bin
ln -sfn ../bin /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/sbin
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/sys"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/casper"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/ufs/ufs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/ufs/ffs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/fs/msdosfs"
mkdir -p "/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy//usr/include/sys/disk"
===> lib/libnv (obj,includes,all,install)
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/lib/libnv...]
cc  -O2 -pipe  -I/usr/src/r357959/lib/libnv -g -MD  -MF.depend.cnvlist.o -MTcnvlist.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/sys/contrib/libnv/cnvlist.c -o cnvlist.o
cc  -O2 -pipe  -I/usr/src/r357959/lib/libnv -g -MD  -MF.depend.dnvlist.o -MTdnvlist.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/sys/contrib/libnv/dnvlist.c -o dnvlist.o
cc  -O2 -pipe  -I/usr/src/r357959/lib/libnv -g -MD  -MF.depend.msgio.o -MTmsgio.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/lib/libnv/msgio.c -o msgio.o
cc  -O2 -pipe  -I/usr/src/r357959/lib/libnv -g -MD  -MF.depend.nvlist.o -MTnvlist.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/sys/contrib/libnv/nvlist.c -o nvlist.o
cc  -O2 -pipe  -I/usr/src/r357959/lib/libnv -g -MD  -MF.depend.nvpair.o -MTnvpair.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/sys/contrib/libnv/nvpair.c -o nvpair.o
building static nv library
ar -crD libnv.a `NM='nm' NMFLAGS=''  lorder cnvlist.o dnvlist.o msgio.o nvlist.o nvpair.o  | tsort -q` 
ranlib -D libnv.a
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444   libnv.a /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/
===> usr.bin/lex/lib (obj,includes,all,install)
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/usr.bin/lex/lib...]
cc  -O2 -pipe  -g -MD  -MF.depend.libmain.o -MTlibmain.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/contrib/flex/libmain.c -o libmain.o
cc  -O2 -pipe  -g -MD  -MF.depend.libyywrap.o -MTlibyywrap.o -std=gnu99 -Wno-format-zero-length     -I/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/include -c /usr/src/r357959/contrib/flex/libyywrap.c -o libyywrap.o
building static ln library
ar -crD libln.a `NM='nm' NMFLAGS=''  lorder libmain.o libyywrap.o  | tsort -q` 
ranlib -D libln.a
sh /usr/src/r357959/tools/install.sh  -C -o root -g wheel -m 444   libln.a /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/
sh /usr/src/r357959/tools/install.sh -l h -o root -g wheel -m 444  /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/libln.a /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/libl.a
sh /usr/src/r357959/tools/install.sh -l h -o root -g wheel -m 444  /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/libln.a /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/lib/libfl.a

--------------------------------------------------------------
>>> stage 1.2: bootstrap tools
--------------------------------------------------------------
cd /usr/src/r357959; INSTALL="sh /usr/src/r357959/tools/install.sh"  TOOLS_PREFIX=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp  PATH=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/sbin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/bin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin:/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/usr/libexec:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp  MAKEFLAGS="-m /usr/src/r357959/tools/build/mk  -m /usr/src/r357959/share/mk" make  -f Makefile.inc1  DESTDIR=  OBJTOP='/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools'  OBJROOT='${OBJTOP}/'  MAKEOBJDIRPREFIX=  BOOTSTRAPPING=1300042  BWPHASE=bootstrap-tools  SSP_CFLAGS=  MK_HTML=no NO_LINT=yes MK_MAN=no  -DNO_PIC MK_PROFILE=no -DNO_SHARED  -DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no  MK_CLANG_EXTRAS=no MK_CLANG_FULL=no  MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no  MK_INCLUDES=yes MK_LLVM_TARGET_ALL=no bootstrap-tools
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/m4 -> /usr/bin/m4
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/lex -> /usr/bin/lex
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/mtree -> /usr/sbin/mtree
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/cat -> /bin/cat
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/crunchide -> /usr/bin/crunchide
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/crunchgen -> /usr/bin/crunchgen
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/kbdcontrol -> /usr/sbin/kbdcontrol
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/awk -> /usr/bin/awk
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/cut -> /usr/bin/cut
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/expr -> /bin/expr
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/gencat -> /usr/bin/gencat
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/join -> /usr/bin/join
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/mktemp -> /usr/bin/mktemp
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/rmdir -> /bin/rmdir
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/sed -> /usr/bin/sed
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/sort -> /usr/bin/sort
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/truncate -> /usr/bin/truncate
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/tsort -> /usr/bin/tsort
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/file2c -> /usr/bin/file2c
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/uuencode -> /usr/bin/uuencode
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/uudecode -> /usr/bin/uudecode
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/xargs -> /usr/bin/xargs
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/cap_mkdb -> /usr/bin/cap_mkdb
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/ldd -> /usr/bin/ldd
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/services_mkdb -> /usr/sbin/services_mkdb
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/pwd_mkdb -> /usr/sbin/pwd_mkdb
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/sysctl -> /sbin/sysctl
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/chflags -> /bin/chflags
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/mkfifo -> /usr/bin/mkfifo
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/dd -> /bin/dd
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/md5 -> /sbin/md5
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/zic -> /usr/sbin/zic
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/tzsetup -> /usr/sbin/tzsetup
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/grep -> /usr/bin/grep
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/egrep -> /usr/bin/egrep
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/fgrep -> /usr/bin/fgrep
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/test -> /bin/test
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/[ -> /bin/[
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/xz -> /usr/bin/xz
/usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/legacy/bin/unxz -> /usr/bin/unxz
===> lib/clang/libllvmminimal (obj,all,install)
[Creating objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal...]
[Creating nested objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/Demangle...]
[Creating nested objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/Support...]
[Creating nested objdir /usr/obj/usr/src/r357959/powerpc.powerpc64/tmp/obj-tools/lib/clang/libllvmminimal/TableGen...]
c++  -O2 -pipe -I/usr/src/r357959/lib/clang/include -I/usr/src/r357959/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/r357959/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/r357959/powerpc.powerpc64/tmp/legacy/usr/include  -fno-exceptions -fno-rtti -g1 -std=c++11    -c /usr/src/r357959/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/r357959/lib/clang/libllvmminimal
*** Error code 1

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

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

Stop.
make: stopped in /usr/src/r357959
hydra#
Comment 2 Mark Millard 2020-02-15 10:01:34 UTC
You are attempting to jump from the gcc 4.2.1 based environment
to well past it being supported (via a source code based
upgrade sequence). /usr/src/UPDATING has an entry:

20191226:
        Clang/LLVM is now the default compiler for all powerpc architectures.
        LLD is now the default linker for powerpc64.  The change for powerpc64
        also includes a change to the ELFv2 ABI, incompatible with the existing
        ABI.

The modern toolchain requires expects that the compiler and related
toochain is llvm/clang based. Bootstrapping via source is non-trivial.

I expect that it is an old g++ 4.2.1 that is complaining about the
-std=c++11 .

See also:

https://lists.freebsd.org/pipermail/freebsd-ppc/2019-December/011042.html

Which says in part:

As of r356113 (__FreeBSD_Version 1300070) Clang is now the default
compiler for all PowerPC targets.

. . .

As mentioned before, the powerpc64 change is also a change to the new
ELFv2 ABI, which is binary incompatible with the previous ABI.
Therefore, it is recommended to perform a complete reinstall of the
system on powerpc64 platforms.



(Note: It was a bit before everything was in place.)

Trying to bootstrap via source from a g++ 4.2.1 environment is
likely not worth the effort. There are some instructions at:

https://wiki.freebsd.org/powerpc/llvm-elfv2

but it starts out saying:

Reinstalling from the latest snapshot is highly preferable to doing a source upgrade! You have been warned!
I'm still in the middle of writing this, don't follow these instructions yet! -- Bdragon28 2020-01-08 02:12:58


As a separate issue: head -r357549 broke powerpc64 on at least old
PowerMac G5 "Quads" and the issue was only recently identified. No fix
is checked in last I looked.

I'd target head -r357548 or somewhat before. -r357276 has a snapshot but I
do not remember its status. Later snapshots are too late. There is also
-r357530 at:

https://artifact.ci.freebsd.org/snapshot/head/r357530/powerpc/powerpc64/
Comment 3 Mark Millard 2020-02-20 00:26:13 UTC
(In reply to Mark Millard from comment #2)

Head -r358094 checked in a fix for head -r357549 breaking booting
on (some?) powerpc machines, such as PowerMac G5 dual-socket ones.

However, the earlier -r357948 checked in a correction to how time
is handled (that is involved in sleeps and such):

QUOTE
Consolidate read code for timecounters and fix possible overflow in
 bintime()/binuptime().
END QUOTE

The "overflow" part of this makes having bad TB value relationships
across sockets/cores much more obvious of a problem: longer times
now result from the bad combinations and far more frequently. See:

https://lists.freebsd.org/pipermail/freebsd-ppc/2020-February/011523.html

So updating is still problematical, not just via a live source upgrade.