From owner-freebsd-sparc64@freebsd.org Wed Jul 22 20:21:59 2015 Return-Path: Delivered-To: freebsd-sparc64@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 A60B99A80E8 for ; Wed, 22 Jul 2015 20:21:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B68110F6 for ; Wed, 22 Jul 2015 20:21:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t6MKLx1B034434 for ; Wed, 22 Jul 2015 20:21:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-sparc64@FreeBSD.org Subject: [Bug 195934] clang350-import branch not working on sparc64 Date: Wed, 22 Jul 2015 20:21:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: dim@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 20:21:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195934 --- Comment #11 from Dimitry Andric --- (In reply to craig001 from comment #8) > checkout svn://svn.freebsd.org/base/projects/clang-trunk > Revision: 285701 > > both buildworld and toolchain are falling over with; > cc1plus: error: unrecognized command line option "-std=c++11" Yes, this is expected. You cannot build clang 3.5.0 or higher with base gcc, you need gcc 4.8 or higher, or clang 3.2 or higher, and a C++11 compatible C++ library (e.g. libc++). (In reply to craig001 from comment #9) > failing with clang also; > > clang -O2 -pipe -I/usr/src/lib/libc/include > -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/sparc64 -DNLS > -I/usr/src/lib/libc/sparc64/sys -D__DBINTERFACE_PRIVATE > -I/usr/src/lib/libc/../../contrib/gdtoa > -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 > -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE > -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd > -I/usr/src/lib/libc/../../contrib/jemalloc/include > -I/usr/src/lib/libc/../../contrib/tzcode/stdtime -I/usr/src/lib/libc/stdtime > -I/usr/src/lib/libc/locale -I/usr/src/lib/libc/sparc64/fpu -DBROKEN_DES > -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING > -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror > -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-switch -Wno-switch-enum > -Wno-knr-promoted-parameter -Qunused-arguments -fno-dwarf2-cfi-asm > -I/usr/src/lib/libutil -I/usr/src/lib/msun/sparc64 -I/usr/src/lib/msun/src > -c /usr/src/lib/libc/sparc64/fpu/fpu.c -o fpu.o > In file included from /usr/src/lib/libc/sparc64/fpu/fpu.c:72: > /usr/src/lib/libc/../../include/signal.h:84:60: error: expected function body > after function declarator > int sigwait(const sigset_t * __restrict, int * __restrict) __nonnull_all; > ^ Hm, this looks like some problem with your system headers, maybe? These __nonnull attributes were introduced recently, maybe you have a half-finished installation, or checkout? I'm currently doing a buildworld with TARGET=sparc64, and it's already gotten to the cross-tools part. When it gets to compiling libc, I will see if I get the same errors as you saw. -- You are receiving this mail because: You are on the CC list for the bug.