Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Mar 2014 06:59:26 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        Dimitry Andric <dim@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: HEADS UP: merged llvm/clang 3.4
Message-ID:  <20140322135926.GJ43653@albert.catwhisker.org>
In-Reply-To: <0E7E81A1-54E9-4920-A360-005A1C0C4D47@FreeBSD.org>
References:  <0E7E81A1-54E9-4920-A360-005A1C0C4D47@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Fri, Mar 21, 2014 at 07:17:22PM +0100, Dimitry Andric wrote:
> ...
> I have just merged llvm and clang 3.4 release to stable/10 (r263508) and
> stable/9 (r263509).  This already includes a number of post-3.4 fixes,
> though there are a few that are still awaiting the MFC timeout (e.g. the
> updated Sparc64 backend, and some things that were just fixed the day
> before yesterday).
> 
> Since the most obvious problems have already been addressed in head, I
> expect this to be a fairly smooth upgrade.  If you run into something
> strange anyway, please reply to this message (CC'ing the list).
> ....

I encountered an error during my regular "make buildworld" today that I
suspect is related to the above.

Running:

FreeBSD g1-252.catwhisker.org 9.2-STABLE FreeBSD 9.2-STABLE #696  r263452M/263468:902508: Fri Mar 21 04:49:42 PDT 2014     root@g1-252.catwhisker.org:/usr/obj/usr/src/sys/CANARY  i386

and after updating /usr/src to r263617, I see:

...
>>> stage 4.4: building everything
...
gzip -cn /usr/src/lib/libelf/elf_memory.3 > elf_memory.3.gz
clang -O2 -pipe  -DGTAGS -DSYSV_CURSES -I/usr/src/usr.bin/vi -I/usr/src/usr.bin/vi/../../contrib/nvi -I/usr/src/usr.bin/vi/../../contrib/nvi/include -DRESCUE -std=gnu99 -Qunused-arguments  -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.bin/vi/../../contrib/nvi/common/delete.c
clang -O2 -pipe  -std=gnu99 -Qunused-arguments  -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion  -o ddb ddb.o ddb_capture.o ddb_script.o -lkvm
clang -O2 -pipe  -DGTAGS -DSYSV_CURSES -I/usr/src/usr.bin/vi -I/usr/src/usr.bin/vi/../../contrib/nvi -I/usr/src/usr.bin/vi/../../contrib/nvi/include -DRESCUE -std=gnu99 -Qunused-arguments  -fstack-protector -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/usr.bin/vi/../../contrib/nvi/common/exf.c
gzip -cn /usr/src/lib/libelf/elf_next.3 > elf_next.3.gz
===> sbin/devd (all)
clang++ -O2 -pipe -I. -I/usr/src/sbin/devd -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-c++11-extensions  -c /usr/src/sbin/devd/devd.cc
In file included from /usr/src/sbin/devd/devd.cc:91:
In file included from /usr/obj/usr/src/tmp/usr/include/c++/4.2/algorithm:65:
In file included from /usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/stl_algobase.h:72:
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:134:12: error: keyword '__is_void' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_void
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:289:12: error: keyword '__is_pointer' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_pointer
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:324:12: error: keyword '__is_arithmetic' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_arithmetic
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:332:12: error: keyword '__is_fundamental' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_fundamental
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:340:12: error: keyword '__is_scalar' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_scalar
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:346:12: error: keyword '__is_pod' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_pod
           ^
/usr/obj/usr/src/tmp/usr/include/c++/4.2/bits/cpp_type_traits.h:359:12: error: keyword '__is_empty' will be treated as an identifier for the remainder of the translation unit [-Werror,-Wkeyword-compat]
    struct __is_empty
           ^
In file included from /usr/src/usr.bin/vi/../../contrib/nvi/common/exf.c:43:
In file included from /usr/src/usr.bin/vi/../../contrib/nvi/common/common.h:82:
In file included from /usr/src/usr.bin/vi/../../contrib/nvi/common/options.h:101:
/usr/src/usr.bin/vi/../../contrib/nvi/include/options_def.h:11:9: warning: 'O_DIRECTORY' macro redefined
#define O_DIRECTORY 10
        ^
/usr/obj/usr/src/tmp/usr/include/sys/fcntl.h:119:9: note: previous definition is here
#define O_DIRECTORY     0x00020000      /* Fail if not directory */
        ^
gzip -cn /usr/src/lib/libelf/elf_rawfile.3 > elf_rawfile.3.gz
1 warning generated.
gzip -cn /usr/src/lib/libelf/elf_rand.3 > elf_rand.3.gz
clang  -O2 -pipe  -DGCCVER=\"4.2\" -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=\"/usr\" -I/common/S1/obj/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libcpp/include -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcclibs/libdecnumber -std=gnu89 -Qunused-arguments  -fstack-protector  -c /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/fold-const.c -o fold-const.o
1 warning generated.
7 errors generated.
*** [devd.o] Error code 1
1 error
*** [all] Error code 2
1 error
*** [sbin.all__D] Error code 2
...

and things don't really get better after that.


/etc/src/conf:

KERNCONF=CANARY
SENDMAIL_MC=/etc/mail/laptop.mc
PORTS_MODULES=x11/nvidia-driver
CC=clang
CXX=clang++
CPP=clang-cpp
WITH_LIBCPLUSPLUS=yes

(Only change in the above since 07 Mar 2013 -- ovcer a year ago --
was to comment out the PORTS_MODULES line for a while, then uncomment
it after x11/nvidia-driver was fixed).

I don't *think* there's much in make.conf that's relevant, but:

# CFLAGS+=      -g
SENDMAIL_MC=/etc/mail/laptop.mc
NET_SNMP_SYS_CONTACT="david@catwhisker.org"
NET_SNMP_SYS_LOCATION="variable"
NET_SNMP_LOGFILE=/var/log/snmpd.log
NET_SNMP_PERSISTENTDIR=/var/net-snmp
WITH_BSD_JDK=TRUE
FORCE_PKG_REGISTER=     NO
# For mplayer
WITHOUT_RUNTIME_CPUDETECTION=   YES
OPTIONS_SET=OPTIMIZED_CFLAGS
WITHOUT_CJK=    YES
NO_SUID_XSERVER=YES
# For Linux compat
OVERRIDE_LINUX_BASE_PORT=f10
OVERRIDE_LINUX_NONBASE_PORTS=f10
INSTALL_AS_NCFTP=yes
WITH_PKGNG=YES
WITH_NEW_XORG=  YES


And for a list of recent "uname -vp" outputs (after build/install)
for this environment on this machine, please see
<http://www.catwhisker.org/~david/FreeBSD/histpory/laptop_i386_9.txt>.

Ah -- my build machine finally(!) caught up with my laptop; also i386,
running:

FreeBSD freebeast.catwhisker.org 9.2-STABLE FreeBSD 9.2-STABLE #914  r263452M/263468:902508: Fri Mar 21 05:21:10 PDT 2014     root@freebeast.catwhisker.org:/usr/obj/usr/src/sys/GENERIC  i386

/usr/src also updated to r263617, and encountered the same issues
as above.  Its update history may be found in
<http://www.catwhisker.org/~david/FreeBSD/histpory/freebeast_i386_9.txt>.

Peace,
david
-- 
David H. Wolfskill				david@catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQJ8BAEBCgBmBQJTLZc9XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4
QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7/tkP/3TAKcu2TNKcDrSe7GxP7sDd
za5yc+6VSzFwYvmbA1YDaUhkjN4GSqx/HVqf9IRVS1aKCA1hnihxNxXSqbGsF80S
EENLTMf05m//8iQlav/L4hXcvL6rGoqR3Z9nxBg3VWN4uX972/LuJ/5g/WKDPNXN
yJZx9CSalLD3p3E4hKl7l/4d+6S9Ipdhp9/ovGLhE/oCzkogHwSDadSLwKq3ckff
Z+3gmv4CGNmkzTvvkUf0zBSzehmqGhVHCR6XypbR6lG8jKYvasveI6EGIVUAR7Vm
cUUyiM0dDMiNA/ypADeP93FkfWWprdnnDfRzUGT6/wCHA+CWasSnnQO2q1G8Mg9V
KeBg31xZatSSTWZ9SCeEz0h7xXPqTZxnIci/s/rO8BExuogtCL3+K98I5Dd7bQlq
4OJR6kREPUiCzaRC9ySbOjkxnTeEbojbBF/RdiCS/GRgpEyc87NumvzcgAviqP1l
CLTkmF2IjA5J1ZNa9rrL0KAy2X4V9qMuUTn2bmpMadL8ZtZmFDDHor2UlRXYf82C
TH0y4nFZUpCNL9ndACGFMu7NbJU+WodRLmASe8/hUPTHL5GIVuZY22ZgqqkmhNP4
xIi8tXf7bbWAwieqLNvdTMb0FVixDjD0rTgJvmA6AUQU4mpTJ+4zriUQWpGr770u
1pL9SxagA98IE6aOFhrl
=SC9K
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140322135926.GJ43653>