D
Deleted member 35650
Guest
Hi,
I'm running a freebsd with branch stable/9.
I want to switch from gcc to clang, and I edited my make.conf as following :
The problem is ... Compilation crash. I'm doing make buildworld buildkernel on /usr/src
Please tell me if you need more file from my system. Thanks. (I don't have a src.conf)
I'm running a freebsd with branch stable/9.
I want to switch from gcc to clang, and I edited my make.conf as following :
Code:
╰─➤ cat /etc/make.conf }1 ↵
WITHOUT_BLUETOOTH="YES"
WITHOUT_FLOPPY="YES"
WITHOUT_USB="YES"
WITHOUT_WIRELESS="YES"
WITHOUT_ZFS="YES"
CFLAGS=-O2 -pipe -march=native
WITHOUT_X11=yes
COPTFLAGS=-O2 -pipe -march=native
KERNCONF=DRAGONBORN GENERIC
USER!=/usr/bin/whoami
.if !defined(NO_CLANG)
CC=clang
CXX=clang++
CPP=clang-cpp
.endif
.if ${USER} == root
.if !defined(NO_CCACHE)
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
CC:=${CC:C,^clang,/usr/local/libexec/ccache/world/clang,1}
CXX:=${CXX:C,^clang\+\+,/usr/local/libexec/ccache/world/clang++,1}
CCACHE_DIR:=/var/tmp/ccache
CCACHE_LOGFILE=:/var/log/ccache.log
.endif
.endif
.if ${CC:T} == "clang"
CFLAGS+= -Qunused-arguments
COPTFLAGS= -Qunsued-arguments
.endif
# added by use.perl 2012-10-22 00:50:29
PERL_VERSION=5.14.2
WITH_PKGNG=yes
The problem is ... Compilation crash. I'm doing make buildworld buildkernel on /usr/src
Code:
/usr/local/libexec/ccache/world/clang -O2 -pipe -march=native -Qunused-arguments -I/usr/src/lib/libelf -I/usr/src/lib/libelf/../../sys -DLIBELF_TEST_HOOKS -std=gnu99
-Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-d
efinition -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c /usr/src/lib/libelf/elf_strptr.c -o elf_strptr.o
In file included from /usr/src/lib/libelf/elf_scn.c:1:
/usr/src/lib/libelf/elf_scn.c:198:41: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if (((&e->e_u.e_elf.e_scn)->stqh_first == ((void *)0))) {
^~
=
1 error generated.
*** [elf_scn.So] Error code 1
2 errors
*** [all] Error code 2
1 error
*** [lib__L] Error code 2
1 error
*** [libraries] Error code 2
1 error
*** [_libraries] Error code 2
1 error
*** [buildworld] Error code 2
1 error
â•â”€<root@Dragonborn>-</usr/src>-<14:07:13>-â—‡
Please tell me if you need more file from my system. Thanks. (I don't have a src.conf)