From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 2 20:32:57 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 61FEE5D4 for ; Tue, 2 Apr 2013 20:32:57 +0000 (UTC) (envelope-from freebsd-ppc@dino.sk) Received: from mailhost.netlab.sk (mailhost.netlab.sk [84.245.65.10]) by mx1.freebsd.org (Postfix) with ESMTP id AE5F98C1 for ; Tue, 2 Apr 2013 20:32:56 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by mailhost.netlab.sk with ESMTPSA; Tue, 02 Apr 2013 22:28:01 +0200 id 004EB641.515B3F51.0000AD68 Date: Tue, 2 Apr 2013 22:27:43 +0200 From: Milan Obuch To: freebsd-ppc@freebsd.org Subject: Trying to build cland version on PowerPC Message-ID: <20130402222743.298ac417@zeta.dino.sk> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.17; amd64-portbld-freebsd9.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX+/v7++v6YOTrq8PCcuIX989UvOSj++v0BNCbpAAAAB3RJTUUHsQwfFzs7RBhzUQAAAhJJREFUOI1dU8GOqzAMNKIoV1bvwD1i0ysqrHplIdBrVSX7ATSbd03VVvn9tQNtQy0hjAdn7LED4AAcPtWm9RV+MPSfxhBLx9ajd6X/ngB6/mTwnRSZua7i7Ca+0ctZKo4Qmz+JY13X6I3nFZBxIYW1PbgfQ5RP8g0XlltEWGf3cV03joYpRnFbvYDKbXjZlXyyhEZA4lI+cN3NaVXE4VKjSwTExO10eTEkkJVqIAD5z0nUBQJluQDRSQjcrBiHAJxZlAH5CUMBMC7OcJ4LMQNnxhZ1HYPscMc6J4UlWRMNwzOpCcAHKSICd1EDn83abdREIbXsHkD1OinP1aCUCOEVRaa1lMcvywUWdYgk13JQUpYNKmvXQ8Kw5ML9YI5h8SakctBc7E/IYuLhYd/zZIk+1gM1vNweQBvHE0j+oYah3sMqAytQYlZk6+ANaaawJdu3OFzYGMZ3iGpa3qMlq9ZH0VZTgrCtw/ngdYkEIIpSbP1bWQAdFdX9vocBdkH2qVjVmuMu3gI5rjs814EUdrCZgWlPaxZZ3RiLFUtr+ud0PXwp2dnQSNXgePt6AZpBj6UMJ7VQkzN4utVeaSW1Dhn/kblGrKeMvNGnzwX4zuEDarYz1KdPtR60Gul0Gued+515SJXhCsl+Tx/3kY/UDvicPll9mfu50t3tvQ/thZpJYgeuwdSKNJ6tCD98MCgoxLDaPxbwqqwPWaWiAAAAAElFTkSuQmCC X-Face: ak5rwz4-aUa>hPFZlcg,bXxn.(TN}e9DGFrKU\.i_'B[&5=pAd9o"j)5VSUYW:BRQG#^42Ev$Il|; Ztn=,C X-Operating-System: FreeBSD/amd64 8.2-STABLE Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2013 20:32:57 -0000 Hi, I am tryingto build clang version FreeBSD on PowerPC, dual 2 GHz PowerMac. When making world with following in /etc/src.conf WITH_CLANG=YES WITH_CLANG_EXTRAS=YES WITH_CLANG_IS_CC=YES compilation ends with following message cc -O2 -pipe -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/powerpc -DNLS -D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -I/usr/src/lib/libc/../../contrib/libc-vis -I/usr/obj/usr/src/lib/libc -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE -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 -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -DNDEBUG -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -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 -c /usr/src/lib/libc/gen/fnmatch.c -o fnmatch.o UNREACHABLE executed! Stack dump: 0. Program arguments: /usr/obj/usr/src/tmp/usr/bin/cc -cc1 -triple powerpc-unknown-freebsd10.0 -S -disable-free -disable-llvm-verifier -main-file-name fnmatch.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu ppc -momit-leaf-frame-pointer -coverage-file /tmp/fnmatch-BBr22n.s -resource-dir /usr/obj/usr/src/tmp/usr/bin/../lib/clang/3.2 -D NLS -D __DBINTERFACE_PRIVATE -D _ACL_PRIVATE -D POSIX_MISTAKE -D BROKEN_DES -D PORTMAP -D DES_BUILTIN -D YP -D NS_CACHING -D SYMBOL_VERSIONING -D NDEBUG -I /usr/src/lib/libc/include -I /usr/src/lib/libc/../../include -I /usr/src/lib/libc/powerpc -I /usr/src/lib/libc/../../contrib/gdtoa -I /usr/src/lib/libc/../../contrib/libc-vis -I /usr/obj/usr/src/lib/libc -I /usr/src/lib/libc/resolv -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/rpc -isysroot /usr/obj/usr/src/tmp -fmodule-cache-path /var/tmp/clang-module-cache -O2 -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -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 -std=gnu99 -fno-dwarf-directory-asm -fdebug-compilation-dir /usr/obj/usr/src/lib/libc -ferror-limit 19 -fmessage-length 271 -stack-protector 1 -mstackrealign -fno-signed-char -fobjc-runtime=gnustep -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/fnmatch-BBr22n.s -x c /usr/src/lib/libc/gen/fnmatch.c 1. parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '/usr/src/lib/libc/gen/fnmatch.c'. 4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function '@fnmatch1' cc: error: unable to execute command: Abort trap (core dumped) cc: error: clang frontend command failed due to signal (use -v to see invocation) FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: powerpc-unknown-freebsd10.0 Thread model: posix cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script. cc: note: diagnostic msg: Error generating preprocessed source(s). *** [fnmatch.o] Error code 254 Stop in /usr/src/lib/libc. *** [lib/libc__L] Error code 1 This error is deterministic, it occured every time I tried make buildworld. If I leave/comment out WITH_CLANG_IS_CC=YES from /etc/src.conf, everything gets compiled, built and installed, naturally, system is built with gcc. Note this is 32 bit powerpc system, when I try 64 bit version, result is similar, just the error is placed differently. Has anybody here any clue how I can build clang usable for buildworld? Regards, Milan