From owner-freebsd-ppc@freebsd.org Tue Mar 7 00:57:17 2017 Return-Path: Delivered-To: freebsd-ppc@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 1C3CECFA992 for ; Tue, 7 Mar 2017 00:57:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-193.reflexion.net [208.70.211.193]) (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 C0E9A1A0B for ; Tue, 7 Mar 2017 00:57:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 31873 invoked from network); 7 Mar 2017 00:57:14 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 7 Mar 2017 00:57:14 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.30.2) with SMTP; Mon, 06 Mar 2017 19:57:14 -0500 (EST) Received: (qmail 30558 invoked from network); 7 Mar 2017 00:57:14 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 7 Mar 2017 00:57:14 -0000 Received: from [192.168.1.111] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id B5B92EC9050; Mon, 6 Mar 2017 16:57:13 -0800 (PST) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: FYI: clang 4.0 vs. 3.9.1 system compiler for powerpc64 and powerpc: same problems for what I've looked at so far Message-Id: Date: Mon, 6 Mar 2017 16:57:13 -0800 To: FreeBSD PowerPC ML , FreeBSD Toolchain X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2017 00:57:17 -0000 So far a quick look at building and installing for TARGET_ARCH=3Dpowerpc64= and TARGET_ARCH=3Dpowerpc based on -r314687 (so clang 4.0 based) = indicates the same basic status as for 3.9.1. (This is cross built from amd64.) [I list the svnlite status and older file revision(s) involved for /usr/src later.] TARGET_ARCH=3Dpowerpc : buildkernel completes but booting the kernel that it builds gets /sbin/init failure with a Signal 13. Sometimes things hang and others get a panic for misalignment. I use a kernel built with gcc 4.2.1 because of this. The problem "R31 restored before floating point code cleanup code that assumes R31 is not restored yet" still exists. This leads to bad address usage in the cleanup code that involves floating point code. Things are odd but I can boot with a buildworld that is from clang --but it requires exiting an automatic single-user mode entry from an example of the floating point code problem. One observes quickly programs that use floating point internally that might not be obvious externally. The C++ exception handling problems still exist. TARGET_ARCH=3Dpowerpc64 : The C++ exception handling problems still exist. (The above need not be comprehensive lists of issues.) /usr/src things I have locally different from -r314687 : # svnlite status /usr/src/ | sort ? /usr/src/sys/amd64/conf/GENERIC-DBG ? /usr/src/sys/amd64/conf/GENERIC-NODBG ? /usr/src/sys/arm/conf/BPIM3-DBG ? /usr/src/sys/arm/conf/BPIM3-NODBG ? /usr/src/sys/arm/conf/RPI2-DBG ? /usr/src/sys/arm/conf/RPI2-NODBG ? /usr/src/sys/arm64/conf/GENERIC-DBG ? /usr/src/sys/arm64/conf/GENERIC-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-DBG ? /usr/src/sys/powerpc/conf/GENERIC64vtsc-NODBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-DBG ? /usr/src/sys/powerpc/conf/GENERICvtsc-NODBG M /usr/src/bin/sh/jobs.c M /usr/src/bin/sh/miscbltin.c M /usr/src/contrib/llvm/tools/lld/ELF/Target.cpp M /usr/src/crypto/openssl/crypto/armcap.c M /usr/src/lib/csu/powerpc64/Makefile M /usr/src/libexec/rtld-elf/Makefile M /usr/src/sys/arm/arm/gic.c M /usr/src/sys/boot/ofw/Makefile.inc M /usr/src/sys/boot/powerpc/Makefile.inc M /usr/src/sys/boot/powerpc/kboot/Makefile M /usr/src/sys/boot/uboot/Makefile.inc M /usr/src/sys/conf/kmod.mk M /usr/src/sys/ddb/db_main.c M /usr/src/sys/ddb/db_script.c M /usr/src/sys/powerpc/ofw/ofw_machdep.c # svnlite info sys/cam/scsi/scsi_pass.c | grep "Re[plv]" = = = Relative URL: = ^/head/sys/cam/scsi/scsi_pass.c Repository Root: svn://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 314623 Last Changed Rev: 308451 Note: Both TARGET_ARCH's were tested on the same PowerMac G5 so-called "Quad Core". I currently do not have access to any other powerpc family context. =3D=3D=3D Mark Millard markmi at dsl-only.net