Date: Tue, 21 Jan 2014 08:50:06 +0000 From: Anna Garcia <annawgarcia11@gmail.com> To: freebsd-sparc64@freebsd.org Subject: www.freebsd.org Message-ID: <001a1132ef7a553bc504f07718b1@google.com>
next in thread | raw e-mail | index | archive | help
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: <owner-freebsd-sparc64@FreeBSD.ORG> 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 <craig001@lerwick.hopto.org> To: Roman Divacky <rdivacky@freebsd.org> Message-ID: <3866560.132.1390324121556.JavaMail.craig@w520> In-Reply-To: <1390175474.8376.3.camel@atlas.lerwick.hopto.org> References: <k1w7uhh383gn36hdmmwmq8f3.1389964362925@email.android.com> <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 <freebsd-sparc64.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-sparc64>, <mailto:freebsd-sparc64-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-sparc64/> List-Post: <mailto:freebsd-sparc64@freebsd.org> List-Help: <mailto:freebsd-sparc64-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64>, <mailto:freebsd-sparc64-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 21 Jan 2014 17:05:42 -0000 ----- Original Message ----- > From: "Craig Butler" <craig001@lerwick.hopto.org> > To: "Roman Divacky" <rdivacky@freebsd.org> > 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 <rdivacky@freebsd.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001a1132ef7a553bc504f07718b1>