From owner-freebsd-current@freebsd.org Fri Aug 11 11:09:23 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0C31DC6649 for ; Fri, 11 Aug 2017 11:09:23 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: from mail-ua0-x233.google.com (mail-ua0-x233.google.com [IPv6:2607:f8b0:400c:c08::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 655FC6D240 for ; Fri, 11 Aug 2017 11:09:23 +0000 (UTC) (envelope-from aijazbaig1@gmail.com) Received: by mail-ua0-x233.google.com with SMTP id q25so13737494uah.1 for ; Fri, 11 Aug 2017 04:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Bgk56RWjgWmmCbh0uzCZua4O0nSmMFrE/sD/7RFs3fU=; b=b3kwm0Xg3EaOhUIC01kX2Sfyd1E7xcWYImYIQRm9eLjvbU1wJ67WazFS+bKsFIf3/V +3NfGTLrauMt4ekZR8ri4DSIRQ+urvzHxhmMF3UOSX3aDS3vGp/2kJLE+CNoQU0E1AWc JXLwd/v4V4CK5JSsgkB7dGjxPdvwSlWq6Plf77okt8wd4rXIo6M57RRsc7NP42ErItMW N6mv2nO470KtL+jWabvQYXthYjgM4cDvJ2xZ3Xukf2qq8lAwe5xAr/xHSJgCgVs+1eN2 SlD52OgAfcWD4K2JoSrSwsgY6MJvPWM+goDXncuurROvDO+Du0FGybnx69FRG1P0wXUP ZQSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Bgk56RWjgWmmCbh0uzCZua4O0nSmMFrE/sD/7RFs3fU=; b=FxhvNbHNS18+4o1+6zTwdYIRaJMspH9LiColcgAleUfiSKKt14Y2dKuVU7U6dtRaMC sv70d3rHJZSkVhSN7uOBbdzB+eaBkqkla520i8Lbj537gFdVDqV0fTpEEcwFE8hZ/Tko DWgZtNh207CfT34tHbzFYuknCruCSSQ3giBLRpfBiTMK6b8cUpDgUGwSJpDzJ9mdmRRY Q0Gm8rWhSXyE0qVGOQVWnYwpbPyLD0Y4qDJ4+n5RjvTylBSxv9w/ImI5VJ2nYchwmbAw /ojGWwCifrln2i6VgiqxLkStoRBB8VA5pO+6jn0cjumGNhbwDT7Y0ocyp0ZxLCmwfmJ4 4egw== X-Gm-Message-State: AHYfb5hQ0JKZNdu1pexcwmnK5w/HqXBwIJfFADe/j7ABoTKJX49oPWto 29QkkQVARdTOAV10UuKmj74OSq6beP4M X-Received: by 10.159.48.79 with SMTP id i15mr11691077uab.106.1502449762083; Fri, 11 Aug 2017 04:09:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.55.198 with HTTP; Fri, 11 Aug 2017 04:09:21 -0700 (PDT) From: Aijaz Baig Date: Fri, 11 Aug 2017 16:39:21 +0530 Message-ID: Subject: clang error make buildworld To: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 11:09:23 -0000 I am tying to buildworld on an ivybridge (amd64) machine and I get the following error: ===> lib/libc/tests/ssp (all) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_fgets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_fgets ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_gets NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_gets ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_getcwd NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_getcwd ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memcpy NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_memcpy ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memmove NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_memmove ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_memset NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_memset ) (cd /usr/src/lib/libc/tests/ssp && DEPENDFILE=.depend.h_raw NO_SUBDIR=1 make -f /usr/src/lib/libc/tests/ssp/Makefile _RECURSING_PROGS=t PROG=h_raw ) cc -target x86_64-unknown-freebsd12.0 --sysroot=/mnt/ObjDir/usr/src/tmp -B/mnt/ObjDir/usr/src/tmp/usr/bin -O0 -pipe -fstack-protector-all -Wstack-protector -fsanitize=bounds -g -std=gnu99 -fstack-protector-strong -Wsystem-headers -Wall -Wno-format-y2k -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 -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Qunused-arguments -o h_raw.full h_raw.o /mnt/ObjDir/usr/src/tmp/usr/lib/libgcc_s.so: undefined reference to `__gxx_personality_v0' cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1 Stop. make[7]: stopped in /usr/src/lib/libc/tests/ssp *** Error code 1 Stop. make[6]: stopped in /usr/src/lib/libc/tests/ssp *** Error code 1 Stop. make[5]: stopped in /usr/src/lib/libc/tests *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/libc *** Error code 1 Stop. make[3]: stopped in /usr/src/lib *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src My /etc/make.conf contains: CPUTYPE?= ivybridge and whereas my /etc/src.conf contains: CFLAGS= -O0 -pipe COPTFLAGS= -O0 -pipe DEBUG_FLAGS=-g By the way it looks like clang is linking against gcc libraries?? How can that be possible? I thought GCC and CLANG are more like competitors in the world of compilers. Perhaps I am missing something here. Nevertheless how do I get rid of this issue? -- Best Regards, Aijaz Baig