Bug 201471 - make buildworld fails with clang errors on -STABLE (10.2-BETA1)
Summary: make buildworld fails with clang errors on -STABLE (10.2-BETA1)
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.2-BETA1
Hardware: i386 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-11 05:13 UTC by rallenh
Modified: 2015-07-12 07:03 UTC (History)
0 users

See Also:


Attachments
pwcache-10fdcf.c file (262.33 KB, text/plain)
2015-07-11 05:15 UTC, rallenh
no flags Details
pwcache-10fdcf.sh file (392 bytes, text/plain)
2015-07-11 05:15 UTC, rallenh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rallenh 2015-07-11 05:13:55 UTC
I can't buildworld / buildkernel any longer after r285349:

$ sudo make world-build
Building the world
--------------------------------------------------------------
>>> World build started on Sat Jul 11 01:11:09 EDT 2015
--------------------------------------------------------------

--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr/home/src/tmp
mkdir -p /usr/obj/usr/home/src/tmp/lib
mkdir -p /usr/obj/usr/home/src/tmp/usr
mkdir -p /usr/obj/usr/home/src/tmp/legacy/bin
mkdir -p /usr/obj/usr/home/src/tmp/legacy/usr
mtree -deU -f /usr/home/src/etc/mtree/BSD.usr.dist  -p /usr/obj/usr/home/src/tmp/legacy/usr >/dev/null
mtree -deU -f /usr/home/src/etc/mtree/BSD.groff.dist  -p /usr/obj/usr/home/src/tmp/legacy/usr >/dev/null
mtree -deU -f /usr/home/src/etc/mtree/BSD.usr.dist  -p /usr/obj/usr/home/src/tmp/usr >/dev/null
mtree -deU -f /usr/home/src/etc/mtree/BSD.include.dist  -p /usr/obj/usr/home/src/tmp/usr/include >/dev/null
ln -sf /usr/home/src/sys /usr/obj/usr/home/src/tmp

--------------------------------------------------------------
>>> stage 1.1: legacy release compatibility shims
--------------------------------------------------------------
cd /usr/home/src; MAKEOBJDIRPREFIX=/usr/obj/usr/home/src/tmp  INSTALL="sh /usr/home/src/tools/install.sh"  PATH=/usr/obj/usr/home/src/tmp/legacy/usr/sbin:/usr/obj/usr/home/src/tmp/legacy/usr/bin:/usr/obj/usr/home/src/tmp/legacy/usr/games:/usr/obj/usr/home/src/tmp/legacy/bin:/sbin:/bin:/usr/sbin:/usr/bin  WORLDTMP=/usr/obj/usr/home/src/tmp  VERSION="FreeBSD 10.2-BETA1 i386 1001519"  MAKEFLAGS="-m /usr/home/src/tools/build/mk  -m /usr/home/src/share/mk"  COMPILER_TYPE=clang /usr/bin/make  -f Makefile.inc1  DESTDIR=  BOOTSTRAPPING=1001519  SSP_CFLAGS=  -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT -DWITHOUT_MAN  -DNO_PIC -DNO_PROFILE -DNO_SHARED  _BOOTSTRAP_MAKEINFO=yes  -DNO_CPU_CFLAGS -DNO_WARNS -DNO_CTF -DEARLY_BUILD -DNO_TESTS legacy
===> tools/build (obj,includes,depend,all,install)
/usr/obj/usr/home/src/tmp/usr/home/src/tools/build created for /usr/home/src/tools/build
set -e; cd /usr/home/src/tools/build; /usr/bin/make buildincludes; /usr/bin/make installincludes
rm -f .depend
mkdep -f .depend -a    -I/usr/home/src/tools/build/../../contrib/libc-pwcache -I/usr/home/src/tools/build/../../lib/libc/include -I/usr/obj/usr/home/src/tmp/legacy/usr/include -std=gnu99   /usr/home/src/tools/build/../../contrib/libc-pwcache/pwcache.c
cc  -O2 -pipe  -I/usr/home/src/tools/build/../../contrib/libc-pwcache  -I/usr/home/src/tools/build/../../lib/libc/include -std=gnu99   -I/usr/obj/usr/home/src/tmp/legacy/usr/include -c /usr/home/src/tools/build/../../contrib/libc-pwcache/pwcache.c -o pwcache.o
Stack dump:
0.      Program arguments: /usr/bin/cc -cc1 -triple i386-unknown-freebsd10.2 -emit-obj -disable-free -disable-llvm-verifier -main-file-name pwcache.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu i486 -coverage-file /usr/obj/usr/home/src/tmp/usr/home/src/tools/build/pwcache.o -resource-dir /usr/bin/../lib/clang/3.4.1 -I /usr/home/src/tools/build/../../contrib/libc-pwcache -I /usr/home/src/tools/build/../../lib/libc/include -I /usr/obj/usr/home/src/tmp/legacy/usr/include -O2 -std=gnu99 -fdebug-compilation-dir /usr/obj/usr/home/src/tmp/usr/home/src/tools/build -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gnustep -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o pwcache.o -x c /usr/home/src/tools/build/../../contrib/libc-pwcache/pwcache.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'Interprocedural Sparse Conditional Constant Propagation' on module '/usr/home/src/tools/build/../../contrib/libc-pwcache/pwcache.c'.
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: i386-unknown-freebsd10.2
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/pwcache-10fdcf.c
cc: note: diagnostic msg: /tmp/pwcache-10fdcf.sh
cc: note: diagnostic msg: 

********************
*** Error code 254

Stop.
make[5]: stopped in /usr/home/src/tools/build
*** Error code 1

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

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

Stop.
make[2]: stopped in /usr/home/src
        3.87s real              0.30s user              1.36s sys
world build duration: 00:00:04
Comment 1 rallenh 2015-07-11 05:15:13 UTC
Created attachment 158603 [details]
pwcache-10fdcf.c file
Comment 2 rallenh 2015-07-11 05:15:37 UTC
Created attachment 158604 [details]
pwcache-10fdcf.sh file
Comment 3 rallenh 2015-07-11 05:16:31 UTC
$ uname -a
FreeBSD static-173-53-110-7.rcmdva.fios.verizon.net 10.2-BETA1 FreeBSD 10.2-BETA1 #0 r285349: Fri Jul 10 07:53:55 EDT 2015     root@static-173-53-110-7.rcmdva.fios.verizon.net:/usr/obj/usr/home/src/sys/STATIC-173-53-110-7  i386

allen@static-173-53-110-7 /usr/adm
$ cat /etc/make.conf
# kernel-ish knobs ------------------------------------------------------------

# tweak CPUTYPE from pentium3 to pentium4 
CPUTYPE?=pentium4

# prevent certain kernel modules I will never use, have a custom conf in
# /usr/src/sys/i386/conf/STATIC-173-53-110-7 (symlinked to /home/kernels/)
OPTIONS_UNSET=virtio virtio_pci vtnet virtio_blk virtio_scsi virtio_balloon

DOC_LANG=en_US.ISO8859-1

# generic/ports knobs-----------------------------------------------------------

# disable farking X shit
OPTIONS_UNSET+=X11

# apache knobs
apache22_SET+= WITH_PROXY_MODULES WITH_SSL_MODULES WITH_SUEXEC_MODULES

# disable farking zh-* ports
OPTIONS_UNSET+=CJK
WITHOUT=CJK

# added on 4/4/2013
# updated on 6/19/2015
DEFAULT_VERSIONS+=ruby=2.1
DEFAULT_VERSIONS+=perl=5.20 perl5=5.20
DEFAULT_VERSIONS+=python=2.7 python2=2.7
DEFAULT_VERSIONS+=php=5.6
DEFAULT_VERSIONS+=apache=2.2
DEFAULT_VERSIONS+=tcltk=8.6

# added on 4/4/2013
WITH_PKGNG=yes

# added on 1/7/2014, db4 deprecated
WITH_BDB_VER=5

# added on 7/29/2014
TEX_DEFAULT=texlive
Comment 4 rallenh 2015-07-12 07:03:35 UTC
My clang was broken from a recent build/install world/kernel. I was able to fix it by using clang36 from ports and re-install from /usr/src/lib/clang and /usr/src/usr.bin/clang.