From owner-freebsd-sparc64@FreeBSD.ORG Sun Jan 19 23:51:21 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DBA35461; Sun, 19 Jan 2014 23:51:20 +0000 (UTC) Received: from mx.bsdtec.net (mx.bsdtec.net [174.34.171.65]) by mx1.freebsd.org (Postfix) with ESMTP id 96AD71845; Sun, 19 Jan 2014 23:51:20 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id DD988489876; Sun, 19 Jan 2014 23:51:18 +0000 (UTC) Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10032) with ESMTP id 9TfVjevzsgS8; Sun, 19 Jan 2014 23:51:17 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 7E804489898; Sun, 19 Jan 2014 23:51:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at bsdtec.net Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10026) with ESMTP id 9wZ4J1V3d1cA; Sun, 19 Jan 2014 23:51:17 +0000 (UTC) Received: from [192.168.1.110] (bsdtec.plus.com [84.92.41.141]) by mx.bsdtec.net (Postfix) with ESMTPSA id B4D7A489876; Sun, 19 Jan 2014 23:51:16 +0000 (UTC) Message-ID: <1390175474.8376.3.camel@atlas.lerwick.hopto.org> Subject: Re: Call for help: clang/llvm for sparc64 From: Craig Butler To: Roman Divacky Date: Sun, 19 Jan 2014 23:51:14 +0000 In-Reply-To: <20140117221330.GA2788@freebsd.org> References: <20140117183733.GA93251@freebsd.org> <1389984564.3414.5.camel@atlas.lerwick.hopto.org> <20140117221330.GA2788@freebsd.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jan 2014 23:51:21 -0000 On Fri, 2014-01-17 at 23:13 +0100, Roman Divacky wrote: > fwiw, we have a small testcase and I filed a bug in upstream llvm > > http://llvm.org/bugs/show_bug.cgi?id=18521 > > A big thank you, to jmg@ for providing the testcase and analyzing the bug. > > Roman > > On Fri, Jan 17, 2014 at 06:49:24PM +0000, Craig Butler wrote: > > On Fri, 2014-01-17 at 19:37 +0100, Roman Divacky wrote: > > > We got further. It looks like the problem is TLS related. It's crashing > > > in __getCurrentRuneLocale(). > > > > > > And to correct myself - you need to do --enable-target=sparc (not sparc64) > > > and you need to compile with gcc48. > > > > > > Anyway, start using llvm on sparc64, it's getting usable :) So more usage > > > is better. > > > > > > On Fri, Jan 17, 2014 at 01:12:42PM +0000, Craig Butler wrote: > > > > Hi Roman and list. > > > > > > > > I've got some spare time and sparc64 kit in the rack. I can help out and walk through anything you need. > > > > > > > > Kind Regards > > > > > > > > Craig Butler > > > > > > > > Roman Divacky wrote: > > > > > > > > >Hi! > > > > > > > > > >LLVM is getting a sparc64 backend. It can even selfhost on linux. But it cant > > > > >on FreeBSD. I am wondering what causes that difference. > > > > > > > > > >A small test case where the difference can be seen is compiling tcsh from > > > > >base. The gethost utility used during the build just coredumps. I suspect > > > > >fixing that might get us on par with linux. > > > > > > > > > >So I am looking for someone who is willing to compile llvm/clang and > > > > >analyze whats wrong with gethost in tcsh compilation. > > > > > > > > > >This is how to do it (you need trunk llvm/clang): > > > > > > > > > >svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > > > > >cd llvm/ > > > > >svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > > > > >cd ../ > > > > >CFLAGS=-fno-strict-aliasing CXXFLAGS=-fno-strict-aliasing ./configure --enable-optimized --enable-targets=sparc64 > > > > >make > > > > >make install > > > > > > > > > >will give you a clang binary that you can use for tcsh compilation: > > > > > > > > > >cd /usr/src/bin/csh > > > > >CC=clang make > > > > > > > > > >I am more than willing to help with llvm/clang side of this but I dont know > > > > >anything about sparc64 so I need help. But please contact me if you want to > > > > >help! > > > > > > > > > >Thanks, Roman > > > > Thanks Roman.. I'll compile gcc48 on my tinderbox and try again. > > > > Report back soon > > > > Regards > > > > Craig Butler Hello Folks For anyone else trying to build llvm/clang I have gcc48 pkgng available (should save a day of compiling) I have also found that clang checkout needs to happen in llvm/tools for the llvm build to pick it up. I needed to use gmake and gmake install because BSD make was complaining about "Error expanding embedded variable" Hopefully a llvm and clang build soon (still compiling!!) Kind Regards Craig Butler From owner-freebsd-sparc64@FreeBSD.ORG Mon Jan 20 11:06:53 2014 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7127AAC5 for ; Mon, 20 Jan 2014 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5BF341D7E for ; Mon, 20 Jan 2014 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0KB6rG8088484 for ; Mon, 20 Jan 2014 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0KB6qi3088482 for freebsd-sparc64@FreeBSD.org; Mon, 20 Jan 2014 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Jan 2014 11:06:52 GMT Message-Id: <201401201106.s0KB6qi3088482@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 11:06:53 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o sparc/170663 sparc64 panics with VIA 6421 SATA150 controller on Blade 1500 o sparc/169669 sparc64 Something seems broken in sparc64 TLS or lang/lua o sparc/164227 sparc64 [boot] Can't boot 9.0-RELEASE/sparc64 on Blade 1500 s sparc/164226 sparc64 [cd] Data corruption on 9.0-RELEASE when reading from o sparc/162513 sparc64 mpt(4), mptutil(8) reports variable, erroneous drive i o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 11 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Tue Jan 21 08:50:08 2014 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC1E55A6 for ; Tue, 21 Jan 2014 08:50:07 +0000 (UTC) Received: from mail-qe0-x246.google.com (mail-qe0-x246.google.com [IPv6:2607:f8b0:400d:c02::246]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9EED412E9 for ; Tue, 21 Jan 2014 08:50:07 +0000 (UTC) Received: by mail-qe0-f70.google.com with SMTP id 1so5980365qee.1 for ; Tue, 21 Jan 2014 00:50:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to:content-type; bh=GwIyvqRBE/nBVB4A8axIzQVg0hnBb+OIdnz+71AMmMA=; b=I3m7PLqWCBZwL2nocr3GHwpQadVgNi3o/GBMgy0qrxky5HFhXHa7iPKKTFR+C8MLuD M/5v2bFMw3KuMX1Yew5fR3st+X9zb7cWxvTaT5G9Qc4A+8FSNIBQhv8YBsr6oqmtM2Cb Z45vDgFG2hMHinC6xP6iHu/o50iuWdiv2APXCOwzCWDJTuWUoADFLD6angLnQ41+Ul9s zuUooJGfoTy4Zea8KrM+F9Sb4S9xBJrLQHwi8JLkJnZUKBQdpDHZyAg/HWpYKktp7fm3 AAJjmME+yTdOm2N5WoFTWYc6JVfEPPgR9DOw2NvK4R0ZwB7DINGC1BXHKhxleZEnFzFx 9qkQ== MIME-Version: 1.0 X-Received: by 10.236.228.228 with SMTP id f94mr7681823yhq.43.1390294206854; Tue, 21 Jan 2014 00:50:06 -0800 (PST) Message-ID: <001a1132ef7a553bc504f07718b1@google.com> Date: Tue, 21 Jan 2014 08:50:06 +0000 Subject: www.freebsd.org From: Anna Garcia To: freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 08:50:08 -0000 SGksDQoNCkkganVzdCB3YW50ZWQgdG8gc2VuZCB5b3UgYSBxdWljayBub3RlLiBXaXRoIGEgZmV3 IHNpbXBsZSBjaGFuZ2VzIHRvIG1ha2UNCnlvdXIgc2l0ZSBtb3JlIFNFTy1mcmllbmRseSBJkm0g c3VyZSB5b3UgY2FuIGNvbnZlcnQgbW9yZSB2aXNpdG9ycyBpbnRvDQpsZWFkcyBhbmQgZ2V0IGl0 IHBsYWNlZCBoaWdoZXIgaW4gdGhlIG9yZ2FuaWMgc2VhcmNoIHJlc3VsdHMsIGZvciBrZXl3b3Jk cw0KdGhhdCBtYXR0ZXIgdG8geW91IHRoZSBtb3N0Lg0KDQpXZSBhcmUgYW4gQXVzdHJhbGlhbiBi YXNlZCBjb21wYW55IHdpdGggYSBncmVhdCBpbi1ob3VzZSB0ZWNobmljYWwgdGVhbSB3aG8NCnJl YWxseSBrbm93IHRoZWlyIHN0dWZmIGFib3V0IHNlYXJjaCBlbmdpbmUgb3B0aW1pemF0aW9uLg0K DQpXb3VsZCB5b3UgbGlrZSBhIGJpdCBtb3JlIGluZm9ybWF0aW9uIGFib3V0IGhvdyB0byBnaXZl IHlvdXIgd2Vic2l0ZSBhDQpib29zdCB3aXRoIGJldHRlciBTRU8/DQoNCkJlc3QgcmVnYXJkcywN Cg0KQW5uYSBHYXJjaWENClNFTy9XRUIgU3BlY2lhbGlzdA0KDQpbaW1hZ2U6IExpbmtlZEluXSBb aW1hZ2U6IEZhY2Vib29rXSBbaW1hZ2U6IFR3aXR0ZXJdIFtpbWFnZTogU2t5cGVdDQogICAgICAg ICAgICAgUyAgIEUgIE8gICAgICAgICAgICAqU2VhcmNoIEVuZ2luZSBPcHRpbWl6YXRpb24qDQoN CldlIHJlc3BlY3QgeW91ciBwcml2YWN5IGFuZCB3YW50IHRvIG1ha2Ugc3VyZSB5b3UgYXJlIGF3 YXJlIG9mIGEgZmV3DQp0aGluZ3MuIEJ5IHJlcGx5aW5nIHRvIHRoaXMgZW1haWwsIHlvdSBhdXRo b3JpemUgb3VyIEF1c3RyYWxpYW4gYWZmaWxpYXRlcw0KdGhhdCBjYW4gaGVscCB3aXRoIHlvdXIg cHJvamVjdCB0byBjYWxsIHlvdSBhdCB0aGUgbnVtYmVyIHlvdSBwcm92aWRlZCwgYW5kDQp5b3Ug dW5kZXJzdGFuZCB0aGF0IHRoZXkgbWF5IHVzZSBhdXRvbWF0ZWQgcGhvbmUgdGVjaG5vbG9neSB0 byBjYWxsIHlvdS4gQXQNCm5vIHRpbWUgYXJlIHlvdSByZXF1aXJlZCB0byBtYWtlIGEgcHVyY2hh c2UuDQo= From owner-freebsd-sparc64@FreeBSD.ORG Tue Jan 21 17:05:42 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 139ECFD0; Tue, 21 Jan 2014 17:05:42 +0000 (UTC) Received: from mx.bsdtec.net (mx.bsdtec.net [174.34.171.65]) by mx1.freebsd.org (Postfix) with ESMTP id D22DA122C; Tue, 21 Jan 2014 17:05:41 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 943B4489876; Tue, 21 Jan 2014 17:05:35 +0000 (UTC) Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10032) with ESMTP id FnLmJr14_np6; Tue, 21 Jan 2014 17:05:33 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id AEF92489898; Tue, 21 Jan 2014 17:05:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at bsdtec.net Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10026) with ESMTP id NHnJc6A-zZ07; Tue, 21 Jan 2014 17:05:33 +0000 (UTC) Received: from mx.bsdtec.net (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 4E96C489876; Tue, 21 Jan 2014 17:05:33 +0000 (UTC) Date: Tue, 21 Jan 2014 17:05:33 +0000 (GMT) From: Craig Butler To: Roman Divacky Message-ID: <3866560.132.1390324121556.JavaMail.craig@w520> In-Reply-To: <1390175474.8376.3.camel@atlas.lerwick.hopto.org> References: <20140117183733.GA93251@freebsd.org> <1389984564.3414.5.camel@atlas.lerwick.hopto.org> <20140117221330.GA2788@freebsd.org> <1390175474.8376.3.camel@atlas.lerwick.hopto.org> Subject: Re: Call for help: clang/llvm for sparc64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.32.3] X-Mailer: Zimbra 8.0.4_GA_5718 (Zimbra Desktop/7.2.2_11951_Windows) Thread-Topic: Call for help: clang/llvm for sparc64 Thread-Index: MbTAvwpk5Zg5sjPdHzLVdJmObn+NZA== Cc: sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 17:05:42 -0000 ----- Original Message ----- > From: "Craig Butler" > To: "Roman Divacky" > Cc: sparc64@freebsd.org > Sent: Sunday, 19 January, 2014 11:51:14 PM > Subject: Re: Call for help: clang/llvm for sparc64 > > > On Fri, 2014-01-17 at 23:13 +0100, Roman Divacky wrote: > > fwiw, we have a small testcase and I filed a bug in upstream llvm > > > > http://llvm.org/bugs/show_bug.cgi?id=18521 > > > > A big thank you, to jmg@ for providing the testcase and analyzing > > the bug. > > > > Roman > > > > On Fri, Jan 17, 2014 at 06:49:24PM +0000, Craig Butler wrote: > > > On Fri, 2014-01-17 at 19:37 +0100, Roman Divacky wrote: > > > > We got further. It looks like the problem is TLS related. It's > > > > crashing > > > > in __getCurrentRuneLocale(). > > > > > > > > And to correct myself - you need to do --enable-target=sparc > > > > (not sparc64) > > > > and you need to compile with gcc48. > > > > > > > > Anyway, start using llvm on sparc64, it's getting usable :) So > > > > more usage > > > > is better. > > > > > > > > On Fri, Jan 17, 2014 at 01:12:42PM +0000, Craig Butler wrote: > > > > > Hi Roman and list. > > > > > > > > > > I've got some spare time and sparc64 kit in the rack. I can > > > > > help out and walk through anything you need. > > > > > > > > > > Kind Regards > > > > > > > > > > Craig Butler > > > > > > > > > > Roman Divacky wrote: > > > > > > > > > > >Hi! > > > > > > > > > > > >LLVM is getting a sparc64 backend. It can even selfhost on > > > > > >linux. But it cant > > > > > >on FreeBSD. I am wondering what causes that difference. > > > > > > > > > > > >A small test case where the difference can be seen is > > > > > >compiling tcsh from > > > > > >base. The gethost utility used during the build just > > > > > >coredumps. I suspect > > > > > >fixing that might get us on par with linux. > > > > > > > > > > > >So I am looking for someone who is willing to compile > > > > > >llvm/clang and > > > > > >analyze whats wrong with gethost in tcsh compilation. > > > > > > > > > > > >This is how to do it (you need trunk llvm/clang): > > > > > > > > > > > >svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > > > > > >cd llvm/ > > > > > >svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > > > > > >cd ../ > > > > > >CFLAGS=-fno-strict-aliasing CXXFLAGS=-fno-strict-aliasing > > > > > >./configure --enable-optimized --enable-targets=sparc64 > > > > > >make > > > > > >make install > > > > > > > > > > > >will give you a clang binary that you can use for tcsh > > > > > >compilation: > > > > > > > > > > > >cd /usr/src/bin/csh > > > > > >CC=clang make > > > > > > > > > > > >I am more than willing to help with llvm/clang side of this > > > > > >but I dont know > > > > > >anything about sparc64 so I need help. But please contact me > > > > > >if you want to > > > > > >help! > > > > > > > > > > > >Thanks, Roman > > > > > > Thanks Roman.. I'll compile gcc48 on my tinderbox and try again. > > > > > > Report back soon > > > > > > Regards > > > > > > Craig Butler > > Hello Folks > > For anyone else trying to build llvm/clang I have gcc48 pkgng > available (should save a day of compiling) > > I have also found that clang checkout needs to happen in llvm/tools > for the llvm build to pick it up. > > I needed to use gmake and gmake install because BSD make was > complaining about "Error expanding embedded variable" > > Hopefully a llvm and clang build soon (still compiling!!) > > Kind Regards > > Craig Butler > > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to > "freebsd-sparc64-unsubscribe@freebsd.org" > Finally got llvm and clang compiled and installed (compiled tarball available if anyone wants it !) My compile of csh doesn't segfault it errors out moaning about a load of previous definitions... not sure what is going on # cd /usr/src/bin/csh/ # CC=clang make Warning: Object directory not changed from original /usr/src/bin/csh grep '[FV]_' /usr/src/bin/csh/../../contrib/tcsh/ed.defns.c | grep '^#define' >> ed.defns.h grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep '^#define' >> sh.err.h clang -E -O2 -pipe -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses /usr/src/bin/csh/../../contrib/tcsh/tc.const.c /usr/src/bin/csh/../../contrib/tcsh/sh.char.h config.h /usr/src/bin/csh/../../contrib/tcsh/config_f.h /usr/src/bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const | grep 'Char STR' | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | sort >> tc.const.h In file included from /usr/src/bin/csh/../../contrib/tcsh/tc.const.c:33: In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: /usr/local/bin/../lib/clang/3.5/include/stdarg.h:47:9: error: '__GNUC_VA_LIST' macro redefined [-Werror] #define __GNUC_VA_LIST 1 ^ /usr/include/machine/_types.h:106:9: note: previous definition is here #define __GNUC_VA_LIST ^ 1 error generated. cp /usr/src/bin/csh/iconv_stub.h iconv.h clang -O2 -pipe -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' -DHAVE_ICONV -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/bin/csh/../../contrib/tcsh/sh.c In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:50: /usr/include/inttypes.h:37:19: error: redefinition of typedef 'wchar_t' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef __wchar_t wchar_t; ^ /usr/local/bin/../lib/clang/3.5/include/stddef.h:65:24: note: previous definition is here typedef __WCHAR_TYPE__ wchar_t; ^ In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:97: /usr/include/wchar.h:75:18: error: redefinition of typedef 'size_t' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef __size_t size_t; ^ /usr/local/bin/../lib/clang/3.5/include/stddef.h:42:23: note: previous definition is here typedef __SIZE_TYPE__ size_t; ^ In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: /usr/local/bin/../lib/clang/3.5/include/stdarg.h:47:9: error: '__GNUC_VA_LIST' macro redefined [-Werror] #define __GNUC_VA_LIST 1 ^ /usr/include/machine/_types.h:106:9: note: previous definition is here #define __GNUC_VA_LIST ^ In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: /usr/local/bin/../lib/clang/3.5/include/stdarg.h:48:27: error: redefinition of typedef '__gnuc_va_list' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef __builtin_va_list __gnuc_va_list; ^ /usr/include/machine/_types.h:107:20: note: previous definition is here typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ ^ 4 errors generated. *** [sh.o] Error code 1 Stop in /usr/src/bin/csh. From owner-freebsd-sparc64@FreeBSD.ORG Tue Jan 21 17:08:10 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF30378 for ; Tue, 21 Jan 2014 17:08:10 +0000 (UTC) Received: from vlakno.cz (mail.vlakno.cz [95.129.96.251]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9AC1241 for ; Tue, 21 Jan 2014 17:08:09 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id 0CAD01CC5598; Tue, 21 Jan 2014 18:08:01 +0100 (CET) Date: Tue, 21 Jan 2014 18:08:01 +0100 From: Roman Divacky To: Craig Butler Subject: Re: Call for help: clang/llvm for sparc64 Message-ID: <20140121170801.GA56661@freebsd.org> References: <20140117183733.GA93251@freebsd.org> <1389984564.3414.5.camel@atlas.lerwick.hopto.org> <20140117221330.GA2788@freebsd.org> <1390175474.8376.3.camel@atlas.lerwick.hopto.org> <3866560.132.1390324121556.JavaMail.craig@w520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3866560.132.1390324121556.JavaMail.craig@w520> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: sparc64@freebsd.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jan 2014 17:08:10 -0000 Yes, you need to remove all the std*.h from clang as freebsd uses its own. I also already have a fix for the tls issue, so you dont have to keep working on that :) You're welcome to test other stuff though. On Tue, Jan 21, 2014 at 05:05:33PM +0000, Craig Butler wrote: > > > ----- Original Message ----- > > From: "Craig Butler" > > To: "Roman Divacky" > > Cc: sparc64@freebsd.org > > Sent: Sunday, 19 January, 2014 11:51:14 PM > > Subject: Re: Call for help: clang/llvm for sparc64 > > > > > > On Fri, 2014-01-17 at 23:13 +0100, Roman Divacky wrote: > > > fwiw, we have a small testcase and I filed a bug in upstream llvm > > > > > > http://llvm.org/bugs/show_bug.cgi?id=18521 > > > > > > A big thank you, to jmg@ for providing the testcase and analyzing > > > the bug. > > > > > > Roman > > > > > > On Fri, Jan 17, 2014 at 06:49:24PM +0000, Craig Butler wrote: > > > > On Fri, 2014-01-17 at 19:37 +0100, Roman Divacky wrote: > > > > > We got further. It looks like the problem is TLS related. It's > > > > > crashing > > > > > in __getCurrentRuneLocale(). > > > > > > > > > > And to correct myself - you need to do --enable-target=sparc > > > > > (not sparc64) > > > > > and you need to compile with gcc48. > > > > > > > > > > Anyway, start using llvm on sparc64, it's getting usable :) So > > > > > more usage > > > > > is better. > > > > > > > > > > On Fri, Jan 17, 2014 at 01:12:42PM +0000, Craig Butler wrote: > > > > > > Hi Roman and list. > > > > > > > > > > > > I've got some spare time and sparc64 kit in the rack. I can > > > > > > help out and walk through anything you need. > > > > > > > > > > > > Kind Regards > > > > > > > > > > > > Craig Butler > > > > > > > > > > > > Roman Divacky wrote: > > > > > > > > > > > > >Hi! > > > > > > > > > > > > > >LLVM is getting a sparc64 backend. It can even selfhost on > > > > > > >linux. But it cant > > > > > > >on FreeBSD. I am wondering what causes that difference. > > > > > > > > > > > > > >A small test case where the difference can be seen is > > > > > > >compiling tcsh from > > > > > > >base. The gethost utility used during the build just > > > > > > >coredumps. I suspect > > > > > > >fixing that might get us on par with linux. > > > > > > > > > > > > > >So I am looking for someone who is willing to compile > > > > > > >llvm/clang and > > > > > > >analyze whats wrong with gethost in tcsh compilation. > > > > > > > > > > > > > >This is how to do it (you need trunk llvm/clang): > > > > > > > > > > > > > >svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm > > > > > > >cd llvm/ > > > > > > >svn co http://llvm.org/svn/llvm-project/cfe/trunk clang > > > > > > >cd ../ > > > > > > >CFLAGS=-fno-strict-aliasing CXXFLAGS=-fno-strict-aliasing > > > > > > >./configure --enable-optimized --enable-targets=sparc64 > > > > > > >make > > > > > > >make install > > > > > > > > > > > > > >will give you a clang binary that you can use for tcsh > > > > > > >compilation: > > > > > > > > > > > > > >cd /usr/src/bin/csh > > > > > > >CC=clang make > > > > > > > > > > > > > >I am more than willing to help with llvm/clang side of this > > > > > > >but I dont know > > > > > > >anything about sparc64 so I need help. But please contact me > > > > > > >if you want to > > > > > > >help! > > > > > > > > > > > > > >Thanks, Roman > > > > > > > > Thanks Roman.. I'll compile gcc48 on my tinderbox and try again. > > > > > > > > Report back soon > > > > > > > > Regards > > > > > > > > Craig Butler > > > > Hello Folks > > > > For anyone else trying to build llvm/clang I have gcc48 pkgng > > available (should save a day of compiling) > > > > I have also found that clang checkout needs to happen in llvm/tools > > for the llvm build to pick it up. > > > > I needed to use gmake and gmake install because BSD make was > > complaining about "Error expanding embedded variable" > > > > Hopefully a llvm and clang build soon (still compiling!!) > > > > Kind Regards > > > > Craig Butler > > > > _______________________________________________ > > freebsd-sparc64@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > > To unsubscribe, send any mail to > > "freebsd-sparc64-unsubscribe@freebsd.org" > > > > Finally got llvm and clang compiled and installed (compiled tarball available if anyone wants it !) > > My compile of csh doesn't segfault it errors out moaning about a load of previous definitions... not sure what is going on > > # cd /usr/src/bin/csh/ > # CC=clang make > Warning: Object directory not changed from original /usr/src/bin/csh > grep '[FV]_' /usr/src/bin/csh/../../contrib/tcsh/ed.defns.c | grep '^#define' >> ed.defns.h > grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep '^#define' >> sh.err.h > clang -E -O2 -pipe -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses /usr/src/bin/csh/../../contrib/tcsh/tc.const.c /usr/src/bin/csh/../../contrib/tcsh/sh.char.h config.h /usr/src/bin/csh/../../contrib/tcsh/config_f.h /usr/src/bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const | grep 'Char STR' | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | sort >> tc.const.h > In file included from /usr/src/bin/csh/../../contrib/tcsh/tc.const.c:33: > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: > /usr/local/bin/../lib/clang/3.5/include/stdarg.h:47:9: error: '__GNUC_VA_LIST' > macro redefined [-Werror] > #define __GNUC_VA_LIST 1 > ^ > /usr/include/machine/_types.h:106:9: note: previous definition is here > #define __GNUC_VA_LIST > ^ > 1 error generated. > cp /usr/src/bin/csh/iconv_stub.h iconv.h > clang -O2 -pipe -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' -DHAVE_ICONV -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -c /usr/src/bin/csh/../../contrib/tcsh/sh.c > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:50: > /usr/include/inttypes.h:37:19: error: redefinition of typedef 'wchar_t' is a C11 > feature [-Werror,-Wtypedef-redefinition] > typedef __wchar_t wchar_t; > ^ > /usr/local/bin/../lib/clang/3.5/include/stddef.h:65:24: note: previous > definition is here > typedef __WCHAR_TYPE__ wchar_t; > ^ > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:97: > /usr/include/wchar.h:75:18: error: redefinition of typedef 'size_t' is a C11 > feature [-Werror,-Wtypedef-redefinition] > typedef __size_t size_t; > ^ > /usr/local/bin/../lib/clang/3.5/include/stddef.h:42:23: note: previous > definition is here > typedef __SIZE_TYPE__ size_t; > ^ > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: > /usr/local/bin/../lib/clang/3.5/include/stdarg.h:47:9: error: '__GNUC_VA_LIST' > macro redefined [-Werror] > #define __GNUC_VA_LIST 1 > ^ > /usr/include/machine/_types.h:106:9: note: previous definition is here > #define __GNUC_VA_LIST > ^ > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.c:34: > In file included from /usr/src/bin/csh/../../contrib/tcsh/sh.h:376: > /usr/local/bin/../lib/clang/3.5/include/stdarg.h:48:27: error: redefinition of > typedef '__gnuc_va_list' is a C11 feature [-Werror,-Wtypedef-redefinition] > typedef __builtin_va_list __gnuc_va_list; > ^ > /usr/include/machine/_types.h:107:20: note: previous definition is here > typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ > ^ > 4 errors generated. > *** [sh.o] Error code 1 > > Stop in /usr/src/bin/csh. From owner-freebsd-sparc64@FreeBSD.ORG Thu Jan 23 15:03:43 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2F6FF275; Thu, 23 Jan 2014 15:03:43 +0000 (UTC) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BD30116F8; Thu, 23 Jan 2014 15:03:42 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id s0NF3fuj079338; Thu, 23 Jan 2014 15:03:41 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id s0NF3fQs079337; Thu, 23 Jan 2014 15:03:41 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 23 Jan 2014 15:03:41 GMT Message-Id: <201401231503.s0NF3fQs079337@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on sparc64/sparc64 Precedence: bulk X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 15:03:43 -0000 TB --- 2014-01-23 13:41:07 - tinderbox 2.20 running on freebsd-stable.sentex.ca TB --- 2014-01-23 13:41:07 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2014-01-23 13:41:07 - starting RELENG_9 tinderbox run for sparc64/sparc64 TB --- 2014-01-23 13:41:07 - cleaning the object tree TB --- 2014-01-23 13:41:07 - /usr/local/bin/svn stat /src TB --- 2014-01-23 13:41:13 - At svn revision 261074 TB --- 2014-01-23 13:41:14 - building world TB --- 2014-01-23 13:41:14 - CROSS_BUILD_TESTING=YES TB --- 2014-01-23 13:41:14 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-23 13:41:14 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-23 13:41:14 - SRCCONF=/dev/null TB --- 2014-01-23 13:41:14 - TARGET=sparc64 TB --- 2014-01-23 13:41:14 - TARGET_ARCH=sparc64 TB --- 2014-01-23 13:41:14 - TZ=UTC TB --- 2014-01-23 13:41:14 - __MAKE_CONF=/dev/null TB --- 2014-01-23 13:41:14 - cd /src TB --- 2014-01-23 13:41:14 - /usr/bin/make -B buildworld >>> World build started on Thu Jan 23 13:41:15 UTC 2014 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Jan 23 14:53:54 UTC 2014 TB --- 2014-01-23 14:53:54 - generating LINT kernel config TB --- 2014-01-23 14:53:54 - cd /src/sys/sparc64/conf TB --- 2014-01-23 14:53:54 - /usr/bin/make -B LINT TB --- 2014-01-23 14:53:54 - cd /src/sys/sparc64/conf TB --- 2014-01-23 14:53:54 - /usr/sbin/config -m LINT TB --- 2014-01-23 14:53:54 - building LINT kernel TB --- 2014-01-23 14:53:54 - CROSS_BUILD_TESTING=YES TB --- 2014-01-23 14:53:54 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-23 14:53:54 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-23 14:53:54 - SRCCONF=/dev/null TB --- 2014-01-23 14:53:54 - TARGET=sparc64 TB --- 2014-01-23 14:53:54 - TARGET_ARCH=sparc64 TB --- 2014-01-23 14:53:54 - TZ=UTC TB --- 2014-01-23 14:53:54 - __MAKE_CONF=/dev/null TB --- 2014-01-23 14:53:54 - cd /src TB --- 2014-01-23 14:53:54 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Jan 23 14:53:54 UTC 2014 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_iconv.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_lookup.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_vfsops.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_vnops.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/nfs/nfs_commonkrpc.c In file included from /src/sys/rpc/rpc.h:70, from /src/sys/fs/nfs/nfs_commonkrpc.c:61: /src/sys/rpc/svc.h:330: error: field 'sp_lock' has incomplete type *** Error code 1 Stop in /obj/sparc64.sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2014-01-23 15:03:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2014-01-23 15:03:41 - ERROR: failed to build LINT kernel TB --- 2014-01-23 15:03:41 - 3828.70 user 568.62 system 4954.70 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Thu Jan 23 21:44:55 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9949D8D7; Thu, 23 Jan 2014 21:44:55 +0000 (UTC) Received: from freebsd-stable.sentex.ca (freebsd-stable.sentex.ca [IPv6:2607:f3e0:0:3::6502:9b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3124A1F48; Thu, 23 Jan 2014 21:44:55 +0000 (UTC) Received: from freebsd-stable.sentex.ca (localhost [127.0.0.1]) by freebsd-stable.sentex.ca (8.14.5/8.14.5) with ESMTP id s0NLisJU066428; Thu, 23 Jan 2014 21:44:54 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-stable.sentex.ca (8.14.5/8.14.5/Submit) id s0NLisLP066424; Thu, 23 Jan 2014 21:44:54 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 23 Jan 2014 21:44:54 GMT Message-Id: <201401232144.s0NLisLP066424@freebsd-stable.sentex.ca> X-Authentication-Warning: freebsd-stable.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_9 tinderbox] failure on sparc64/sparc64 Precedence: bulk X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 21:44:55 -0000 TB --- 2014-01-23 20:22:12 - tinderbox 2.20 running on freebsd-stable.sentex.ca TB --- 2014-01-23 20:22:12 - FreeBSD freebsd-stable.sentex.ca 8.3-STABLE FreeBSD 8.3-STABLE #0: Tue Oct 16 17:37:58 UTC 2012 mdtancsa@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/server amd64 TB --- 2014-01-23 20:22:12 - starting RELENG_9 tinderbox run for sparc64/sparc64 TB --- 2014-01-23 20:22:12 - cleaning the object tree TB --- 2014-01-23 20:22:25 - /usr/local/bin/svn stat /src TB --- 2014-01-23 20:22:34 - At svn revision 261079 TB --- 2014-01-23 20:22:35 - building world TB --- 2014-01-23 20:22:35 - CROSS_BUILD_TESTING=YES TB --- 2014-01-23 20:22:35 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-23 20:22:35 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-23 20:22:35 - SRCCONF=/dev/null TB --- 2014-01-23 20:22:35 - TARGET=sparc64 TB --- 2014-01-23 20:22:35 - TARGET_ARCH=sparc64 TB --- 2014-01-23 20:22:35 - TZ=UTC TB --- 2014-01-23 20:22:35 - __MAKE_CONF=/dev/null TB --- 2014-01-23 20:22:35 - cd /src TB --- 2014-01-23 20:22:35 - /usr/bin/make -B buildworld >>> World build started on Thu Jan 23 20:22:36 UTC 2014 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Jan 23 21:35:11 UTC 2014 TB --- 2014-01-23 21:35:11 - generating LINT kernel config TB --- 2014-01-23 21:35:11 - cd /src/sys/sparc64/conf TB --- 2014-01-23 21:35:11 - /usr/bin/make -B LINT TB --- 2014-01-23 21:35:11 - cd /src/sys/sparc64/conf TB --- 2014-01-23 21:35:11 - /usr/sbin/config -m LINT TB --- 2014-01-23 21:35:11 - building LINT kernel TB --- 2014-01-23 21:35:11 - CROSS_BUILD_TESTING=YES TB --- 2014-01-23 21:35:11 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-23 21:35:11 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-23 21:35:11 - SRCCONF=/dev/null TB --- 2014-01-23 21:35:11 - TARGET=sparc64 TB --- 2014-01-23 21:35:11 - TARGET_ARCH=sparc64 TB --- 2014-01-23 21:35:11 - TZ=UTC TB --- 2014-01-23 21:35:11 - __MAKE_CONF=/dev/null TB --- 2014-01-23 21:35:11 - cd /src TB --- 2014-01-23 21:35:11 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Jan 23 21:35:11 UTC 2014 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_iconv.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_lookup.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_vfsops.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/msdosfs/msdosfs_vnops.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -mcmodel=medany -msoft-float -ffreestanding -fstack-protector -Werror /src/sys/fs/nfs/nfs_commonkrpc.c In file included from /src/sys/rpc/rpc.h:70, from /src/sys/fs/nfs/nfs_commonkrpc.c:61: /src/sys/rpc/svc.h:330: error: field 'sp_lock' has incomplete type *** Error code 1 Stop in /obj/sparc64.sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2014-01-23 21:44:54 - WARNING: /usr/bin/make returned exit code 1 TB --- 2014-01-23 21:44:54 - ERROR: failed to build LINT kernel TB --- 2014-01-23 21:44:54 - 3835.92 user 569.07 system 4961.95 real http://tinderbox.freebsd.org/tinderbox-freebsd9-build-RELENG_9-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Fri Jan 24 00:58:19 2014 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CA5CB48; Fri, 24 Jan 2014 00:58:19 +0000 (UTC) Received: from worker01.tb.des.no (worker01.tb.des.no [41.154.2.147]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D435F1080; Fri, 24 Jan 2014 00:58:18 +0000 (UTC) Received: from worker01.tb.des.no (localhost [127.0.0.1]) by worker01.tb.des.no (8.14.5/8.14.5) with ESMTP id s0O0w7vx041754; Fri, 24 Jan 2014 02:58:07 +0200 (SAST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by worker01.tb.des.no (8.14.5/8.14.5/Submit) id s0O0w6qf041666; Fri, 24 Jan 2014 00:58:06 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 24 Jan 2014 00:58:06 GMT Message-Id: <201401240058.s0O0w6qf041666@worker01.tb.des.no> X-Authentication-Warning: worker01.tb.des.no: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_10 tinderbox] failure on sparc64/sparc64 Precedence: bulk X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.17 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jan 2014 00:58:19 -0000 TB --- 2014-01-23 23:20:43 - tinderbox 2.20 running on worker01.tb.des.no TB --- 2014-01-23 23:20:43 - FreeBSD worker01.tb.des.no 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2014-01-23 23:20:43 - starting RELENG_10 tinderbox run for sparc64/sparc64 TB --- 2014-01-23 23:20:43 - cleaning the object tree TB --- 2014-01-23 23:20:43 - /usr/local/bin/svn stat --no-ignore /src TB --- 2014-01-23 23:21:36 - At svn revision 261091 TB --- 2014-01-23 23:21:37 - building world TB --- 2014-01-23 23:21:37 - CROSS_BUILD_TESTING=YES TB --- 2014-01-23 23:21:37 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-23 23:21:37 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-23 23:21:37 - SRCCONF=/dev/null TB --- 2014-01-23 23:21:37 - TARGET=sparc64 TB --- 2014-01-23 23:21:37 - TARGET_ARCH=sparc64 TB --- 2014-01-23 23:21:37 - TZ=UTC TB --- 2014-01-23 23:21:37 - __MAKE_CONF=/dev/null TB --- 2014-01-23 23:21:37 - cd /src TB --- 2014-01-23 23:21:37 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Jan 23 23:21:47 UTC 2014 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Fri Jan 24 00:57:39 UTC 2014 TB --- 2014-01-24 00:57:39 - generating LINT kernel config TB --- 2014-01-24 00:57:39 - cd /src/sys/sparc64/conf TB --- 2014-01-24 00:57:39 - /usr/bin/make -B LINT TB --- 2014-01-24 00:57:39 - cd /src/sys/sparc64/conf TB --- 2014-01-24 00:57:39 - /usr/sbin/config -m LINT TB --- 2014-01-24 00:57:39 - building LINT kernel TB --- 2014-01-24 00:57:39 - CROSS_BUILD_TESTING=YES TB --- 2014-01-24 00:57:39 - MAKEOBJDIRPREFIX=/obj TB --- 2014-01-24 00:57:39 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2014-01-24 00:57:39 - SRCCONF=/dev/null TB --- 2014-01-24 00:57:39 - TARGET=sparc64 TB --- 2014-01-24 00:57:39 - TARGET_ARCH=sparc64 TB --- 2014-01-24 00:57:39 - TZ=UTC TB --- 2014-01-24 00:57:39 - __MAKE_CONF=/dev/null TB --- 2014-01-24 00:57:39 - cd /src TB --- 2014-01-24 00:57:39 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Jan 24 00:57:39 UTC 2014 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools [...] yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c /src/sys/dev/aic7xxx/aicasm/aicasm_macro_gram.y cc -O2 -pipe -I. -I/src/sys/dev/aic7xxx/aicasm -std=gnu99 -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 -Wno-pointer-sign -c /src/sys/dev/aic7xxx/aicasm/aicasm.c cc -O2 -pipe -I. -I/src/sys/dev/aic7xxx/aicasm -std=gnu99 -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 -Wno-pointer-sign -c /src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c /src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c: In function 'symtable_dump': /src/sys/dev/aic7xxx/aicasm/aicasm_symbol.c:461: internal compiler error: in var_ann, at tree-flow-inline.h:127 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. *** Error code 1 Stop. bmake[1]: stopped in /obj/sparc64.sparc64/src/sys/LINT *** Error code 1 Stop. bmake: stopped in /src *** [buildkernel] Error code 1 Stop in /src. TB --- 2014-01-24 00:58:05 - WARNING: /usr/bin/make returned exit code 1 TB --- 2014-01-24 00:58:05 - ERROR: failed to build LINT kernel TB --- 2014-01-24 00:58:05 - 4230.16 user 1824.79 system 5842.35 real http://tinderbox.des.no/tinderbox-freebsd10-build-RELENG_10-sparc64-sparc64.full