From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 2 21:55:25 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E7CFDE1B for ; Tue, 2 Apr 2013 21:55:25 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) by mx1.freebsd.org (Postfix) with ESMTP id B50CBDC2 for ; Tue, 2 Apr 2013 21:55:25 +0000 (UTC) Received: by mail-ob0-f174.google.com with SMTP id 16so806723obc.5 for ; Tue, 02 Apr 2013 14:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=sl6vgUJFUucU8DjKw+RH+67kPK3TsSWR4av70CntndQ=; b=EUD5v844DTAE0eFIRLXIxgpJe8MScpWOxdzJfYyl1hDnPabhi4B9zQCQzKOaXo8VTd d48SDnOVNiYv4jEU3OhMTkoh1A8N3brXh6Nc3j9J+AYwadrwxV51nkXFhVNlGEBHOian Czqdqukd9hg4r5uyiskUm7Hl33ajRQy3ekuGWAVXP7fl7Hid54LtMvfgEmB+O3AJVOm9 SJZuMHsfCztIJAsdWOn/LjHFQjW2fC48N1TjKxcqjUNoLzCnxsjvsijAZV7LYx6ptWAi Cl+7stla/YZmFn4eZ9Xa7HNlJRTr6c3CcCJvrMcHoh7Aa7Y6c/cGwkupIi+Iy3BlDbPZ BE5g== MIME-Version: 1.0 X-Received: by 10.182.12.6 with SMTP id u6mr6087276obb.3.1364939725274; Tue, 02 Apr 2013 14:55:25 -0700 (PDT) Received: by 10.182.116.196 with HTTP; Tue, 2 Apr 2013 14:55:25 -0700 (PDT) In-Reply-To: References: <20130402222743.298ac417@zeta.dino.sk> Date: Tue, 2 Apr 2013 17:55:25 -0400 Message-ID: Subject: Re: Trying to build cland version on PowerPC From: Super Bisquit To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD PowerPC ML 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 21:55:26 -0000 And to add: I've changed the variable in both /usr/src/sys/kern.conf and /usr/src/sys/kmod.conf to CLANG_IS_CC="yes" with the results being a failed build. I thought that the error was only on the year old version of 10 I have but it seems to be even on the present version. On Tue, Apr 2, 2013 at 5:52 PM, Super Bisquit wrote: > This is the same problem as I am having. Nathan had mentioned that ppc64 > is more complete. > Now, can either I or Milan use the PPC64 sources on PPC32 or is there a > conditional that we can add to /etc/make.conf to enable the use of the > standard gcc-4.x? > > Thanks muchly, > Desmond > > > On Tue, Apr 2, 2013 at 5:02 PM, Justin Hibbits wrote: > >> Clang is not complete on PowerPC yet. LLVM in subversion, to be 3.3 I >> think, has full support for ppc64, but there are still some missing >> features for 32-bit, namely TLS and PIC. So for now WITH_CLANG_IS_CC >> doesn't work for PowerPC. >> >> - Justin >> On Apr 2, 2013 1:33 PM, "Milan Obuch" wrote: >> >> > 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 >> > _______________________________________________ >> > freebsd-ppc@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> > >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> > >