From owner-freebsd-toolchain@freebsd.org Sun Oct 4 11:12:47 2015 Return-Path: Delivered-To: freebsd-toolchain@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 8D28EA10F41 for ; Sun, 4 Oct 2015 11:12:47 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-2.reflexion.net [208.70.210.2]) (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 52DBA1843 for ; Sun, 4 Oct 2015 11:12:46 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 29592 invoked from network); 4 Oct 2015 11:06:05 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 4 Oct 2015 11:06:05 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.70.2) with SMTP; Sun, 04 Oct 2015 07:06:05 -0400 (EDT) Received: (qmail 31152 invoked from network); 4 Oct 2015 11:06:04 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 4 Oct 2015 11:06:04 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id B8C8B1C43A8; Sun, 4 Oct 2015 04:06:02 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use) Date: Sun, 4 Oct 2015 04:06:03 -0700 Message-Id: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> Cc: freebsd-toolchain@freebsd.org To: FreeBSD PowerPC ML Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2015 11:12:47 -0000 The Problem: root@FreeBSDx64:/usr/src # make -j 7 CROSS_TOOLCHAIN=3Dpowerpc64-gcc = buildworld buildkernel KERNCONF=3DGENERIC64-NODBG TARGET=3Dpowerpc = TARGET_ARCH=3Dpowerpc64 . . . --- bt_split.So --- /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -isystem = /usr/obj/powerpc.powerpc64/usr/src/tmp/usr/include = -L/usr/obj/powerpc.powerpc64/usr/src/tmp/usr/lib = --sysroot=3D/usr/obj/powerpc.powerpc64/usr/src/tmp = -B/usr/local/powerpc64-freebsd/bin/ -fpic -DPIC -O2 -pipe = -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include = -I/usr/src/lib/libc/powerpc64 -DNLS -D__DBINTERFACE_PRIVATE = -I/usr/src/lib/libc/../../contrib/gdtoa = -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 = -I/usr/obj/powerpc.powerpc64/usr/src/lib/libc -I/usr/src/lib/libc/resolv = -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd = -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 -std=3Dgnu99 -fstack-protector -Wsystem-headers = -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign = -I/usr/src/lib/libutil -I/usr/src/lib/msun/powerpc = -I/usr/src/lib/msun/src -c /usr/src/lib/libc/db/btree/bt_split.c -o = bt_split.So . . . --- bt_split.So --- /usr/src/lib/libc/db/btree/bt_split.c: In function '__bt_split': /usr/src/lib/libc/db/btree/bt_split.c:240:8: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) ^ /usr/src/lib/libc/db/btree/bt_split.c: In function 'bt_broot': /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) ^ . . . --- bt_split.So --- cc1: all warnings being treated as errors *** [bt_split.So] Error code 1 make[4]: stopped in /usr/src/lib/libc 1 error . . . The context details follow. Mac OS X 10.10.5 using a VirtualBox V5.0.4 VM with. . . root@FreeBSDx64:/usr/src # freebsd-version -ku; uname -aKU 11.0-CURRENT 11.0-CURRENT FreeBSD FreeBSDx64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r288459: Sat Oct = 3 03:42:08 PDT 2015 = root@FreeBSDx64:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 1100079 = 1100079 root@FreeBSDx64:/usr/src # svnlite info /usr/src Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 288459 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 288459 Last Changed Date: 2015-10-01 12:48:10 -0700 (Thu, 01 Oct 2015) root@FreeBSDx64:/usr/src # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 398559 Node Kind: directory Schedule: normal Last Changed Author: jbeich Last Changed Rev: 398559 Last Changed Date: 2015-10-03 17:42:55 -0700 (Sat, 03 Oct 2015) root@FreeBSDx64:/usr/src # portmaster --list-origins net/avahi devel/boost-all lang/clang37 ports-mgmt/dialog4ports lang/gcc5 devel/git-lite x11/lumina www/midori net/netatalk3 ports-mgmt/pkg ports-mgmt/portmaster devel/powerpc64-xtoolchain-gcc devel/qtcreator security/sudo mail/thunderbird emulators/virtualbox-ose-additions Very little is non-default source code. . . root@FreeBSDx64:/usr/src # svnlite status /usr/src M /usr/src/lib/csu/powerpc64/Makefile ? /usr/src/sys/arm/conf/RPI2-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64-NODBG root@FreeBSDx64:/usr/src # svnlite status /usr/ports ? /usr/ports/ion root@FreeBSDx64:/usr/src # more = /usr/src/sys/powerpc/conf/GENERIC64-NODBG=20 . . . (comments omitted) . . . include GENERIC64 ident GENERIC-NODBG nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions DEADLKRES The following is my personal, local workaround for = /usr/src/lib/csu/powerpc64/Makefile forcing use of the gcc command even = when the context does not have one. root@FreeBSDx64:/usr/src # svnlite diff /usr/src Index: /usr/src/lib/csu/powerpc64/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/lib/csu/powerpc64/Makefile (revision 288459) +++ /usr/src/lib/csu/powerpc64/Makefile (working copy) @@ -13,8 +13,8 @@ # clang doesn't support -mlongcall, and testing shows a clang linked = with a # clang-built csu segfaults, this must currently be compiled with gcc. = Once # clang supports -mlongcall, or we get a fixed ld, this can be = revisited. -CC:=3D gcc -COMPILER_TYPE:=3D gcc +CC?=3D $(XCC) +#COMPILER_TYPE:=3D gcc FILES=3D ${OBJS} FILESMODE=3D ${LIBMODE} =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Sun Oct 4 11:14:13 2015 Return-Path: Delivered-To: freebsd-toolchain@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 5927D9D000E for ; Sun, 4 Oct 2015 11:14:13 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-2.reflexion.net [208.70.210.2]) (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 19A0A18AE for ; Sun, 4 Oct 2015 11:14:12 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 11747 invoked from network); 4 Oct 2015 11:14:11 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 4 Oct 2015 11:14:11 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.70.2) with SMTP; Sun, 04 Oct 2015 07:14:11 -0400 (EDT) Received: (qmail 28085 invoked from network); 4 Oct 2015 11:14:11 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 4 Oct 2015 11:14:11 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 92B871C43C3; Sun, 4 Oct 2015 04:14:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use) From: Mark Millard In-Reply-To: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> Date: Sun, 4 Oct 2015 04:14:10 -0700 Cc: freebsd-toolchain@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> To: FreeBSD PowerPC ML X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2015 11:14:13 -0000 I should have also reported as context details what does not exist: /etc/make.conf and /etc/src.conf do not even exist and so do not contribute anything. The original message follows. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2015-Oct-4, at 04:06 AM, Mark Millard wrote: The Problem: root@FreeBSDx64:/usr/src # make -j 7 CROSS_TOOLCHAIN=3Dpowerpc64-gcc = buildworld buildkernel KERNCONF=3DGENERIC64-NODBG TARGET=3Dpowerpc = TARGET_ARCH=3Dpowerpc64 . . . --- bt_split.So --- /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -isystem = /usr/obj/powerpc.powerpc64/usr/src/tmp/usr/include = -L/usr/obj/powerpc.powerpc64/usr/src/tmp/usr/lib = --sysroot=3D/usr/obj/powerpc.powerpc64/usr/src/tmp = -B/usr/local/powerpc64-freebsd/bin/ -fpic -DPIC -O2 -pipe = -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include = -I/usr/src/lib/libc/powerpc64 -DNLS -D__DBINTERFACE_PRIVATE = -I/usr/src/lib/libc/../../contrib/gdtoa = -I/usr/src/lib/libc/../../contrib/libc-vis -DINET6 = -I/usr/obj/powerpc.powerpc64/usr/src/lib/libc -I/usr/src/lib/libc/resolv = -D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/../libmd = -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 -std=3Dgnu99 -fstack-protector -Wsystem-headers = -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign = -I/usr/src/lib/libutil -I/usr/src/lib/msun/powerpc = -I/usr/src/lib/msun/src -c /usr/src/lib/libc/db/btree/bt_split.c -o = bt_split.So . . . --- bt_split.So --- /usr/src/lib/libc/db/btree/bt_split.c: In function '__bt_split': /usr/src/lib/libc/db/btree/bt_split.c:240:8: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) ^ /usr/src/lib/libc/db/btree/bt_split.c: In function 'bt_broot': /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) ^ . . . --- bt_split.So --- cc1: all warnings being treated as errors *** [bt_split.So] Error code 1 make[4]: stopped in /usr/src/lib/libc 1 error . . . The context details follow. Mac OS X 10.10.5 using a VirtualBox V5.0.4 VM with. . . root@FreeBSDx64:/usr/src # freebsd-version -ku; uname -aKU 11.0-CURRENT 11.0-CURRENT FreeBSD FreeBSDx64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r288459: Sat Oct = 3 03:42:08 PDT 2015 = root@FreeBSDx64:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 1100079 = 1100079 root@FreeBSDx64:/usr/src # svnlite info /usr/src Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 288459 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 288459 Last Changed Date: 2015-10-01 12:48:10 -0700 (Thu, 01 Oct 2015) root@FreeBSDx64:/usr/src # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 398559 Node Kind: directory Schedule: normal Last Changed Author: jbeich Last Changed Rev: 398559 Last Changed Date: 2015-10-03 17:42:55 -0700 (Sat, 03 Oct 2015) root@FreeBSDx64:/usr/src # portmaster --list-origins net/avahi devel/boost-all lang/clang37 ports-mgmt/dialog4ports lang/gcc5 devel/git-lite x11/lumina www/midori net/netatalk3 ports-mgmt/pkg ports-mgmt/portmaster devel/powerpc64-xtoolchain-gcc devel/qtcreator security/sudo mail/thunderbird emulators/virtualbox-ose-additions Very little is non-default source code. . . root@FreeBSDx64:/usr/src # svnlite status /usr/src M /usr/src/lib/csu/powerpc64/Makefile ? /usr/src/sys/arm/conf/RPI2-NODBG ? /usr/src/sys/powerpc/conf/GENERIC64-NODBG root@FreeBSDx64:/usr/src # svnlite status /usr/ports ? /usr/ports/ion root@FreeBSDx64:/usr/src # more = /usr/src/sys/powerpc/conf/GENERIC64-NODBG=20 . . . (comments omitted) . . . include GENERIC64 ident GENERIC-NODBG nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions DEADLKRES The following is my personal, local workaround for = /usr/src/lib/csu/powerpc64/Makefile forcing use of the gcc command even = when the context does not have one. root@FreeBSDx64:/usr/src # svnlite diff /usr/src Index: /usr/src/lib/csu/powerpc64/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/lib/csu/powerpc64/Makefile (revision 288459) +++ /usr/src/lib/csu/powerpc64/Makefile (working copy) @@ -13,8 +13,8 @@ # clang doesn't support -mlongcall, and testing shows a clang linked = with a # clang-built csu segfaults, this must currently be compiled with gcc. = Once # clang supports -mlongcall, or we get a fixed ld, this can be = revisited. -CC:=3D gcc -COMPILER_TYPE:=3D gcc +CC?=3D $(XCC) +#COMPILER_TYPE:=3D gcc FILES=3D ${OBJS} FILESMODE=3D ${LIBMODE} =3D=3D=3D Mark Millard markmi at dsl-only.net From owner-freebsd-toolchain@freebsd.org Fri Oct 9 23:58:24 2015 Return-Path: Delivered-To: freebsd-toolchain@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 C2D5C9D3DBB; Fri, 9 Oct 2015 23:58:24 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D5737E5; Fri, 9 Oct 2015 23:58:24 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykba192 with SMTP id a192so89197438ykb.3; Fri, 09 Oct 2015 16:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NfNNSEcRBkcapgrf4FZXsvn1oGYeLkhOhouENzg1D9w=; b=ILxIyeSj41G2biZHMBKfnX9rTqE/892JylDv00SfpBlOgmIm54lk6HQVRoLZdgej02 IunF+CRvJOvwTs+EiQJAgzlKJKbFp5IULG1qb4MOs76fMWsVHoFoxqGem1CGAsEYFqGd v12bjuaIbnNihh2WoaAvIBvc03tzaIUiQ1me9ViXSVZoc46QgQWcMHRYmJl+s3f8tZnr pIKiEmfVS0kSK4cpH8FyzO4yuB5xTMCf/dvBYtWMO6xMaltPtEBn/R5PYHMhwh3KifUm bMBz7hjJcoOTAllV+fQ/8jvgE2kLOrCfP1JbSnCZfHuexJzwG/VtW+8djUnCeeC2tb4M xpIg== MIME-Version: 1.0 X-Received: by 10.13.200.134 with SMTP id k128mr11257266ywd.172.1444435103554; Fri, 09 Oct 2015 16:58:23 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.111.214 with HTTP; Fri, 9 Oct 2015 16:58:23 -0700 (PDT) In-Reply-To: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> References: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> Date: Fri, 9 Oct 2015 16:58:23 -0700 X-Google-Sender-Auth: uGWDTAl-JCAkd6gk7GMZT5NKuqc Message-ID: Subject: Re: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use) From: Craig Rodrigues To: Mark Millard Cc: FreeBSD PowerPC ML , FreeBSD Toolchain Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 23:58:24 -0000 On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard wrote: > > /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing > type-punned pointer will break strict-aliasing rules > [-Werror=strict-aliasing] > bt_preserve(t, *(pgno_t *)bl->bytes) == RET_ERROR) > You will get many of these warnings all over the codebase. You should add NO_WERROR= to your make invocation, or put NO_WERROR= in make.conf. That's what I do here: https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull -- Craig From owner-freebsd-toolchain@freebsd.org Sat Oct 10 00:06:10 2015 Return-Path: Delivered-To: freebsd-toolchain@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 B7D3E9D13DE for ; Sat, 10 Oct 2015 00:06:10 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x22e.google.com (mail-yk0-x22e.google.com [IPv6:2607:f8b0:4002:c07::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B844D9C for ; Sat, 10 Oct 2015 00:06:10 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykft14 with SMTP id t14so93396925ykf.0 for ; Fri, 09 Oct 2015 17:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=A7YcPuBOPeUXjmMe3fUI/u/sEC8TJLxNmeeMwg715VA=; b=ZKWEWNBa1iz5mOE9Jys2y0dy798g3moZkhD/D6Kf4PBVqklV6ytW2+eVhkIYVb1Jug i/2oxPbX7fiTcWdg4MNaQ7Me59sCg/clYVEOheGMp+RBFzx4M1DUKnscRzjXlbQmqkXd 6zh/r24Ms0WJgzYauwDRaiAYZg3twI09Mmnc2gGOLPLR1JzsvMOSdBmMez4dH7Dqy/Is nh/6c21IdKVh+Lgbn/mqMu9SoqkE+6DSek57fZzUmho+KL/NMZaz/7uu7wmBKnYyVl3Y FiMjsKCp63qV3AFYc1Z4H+i1eMCtc9HuzS/jYukZHTXjus/ekSMHRHGq0Xo2nfX4E3Mj ukWw== MIME-Version: 1.0 X-Received: by 10.13.213.138 with SMTP id x132mr11280364ywd.107.1444435569633; Fri, 09 Oct 2015 17:06:09 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.111.214 with HTTP; Fri, 9 Oct 2015 17:06:09 -0700 (PDT) Date: Fri, 9 Oct 2015 17:06:09 -0700 X-Google-Sender-Auth: 42GnOZMizVA00bqZNEWy5WEy6gM Message-ID: Subject: error: your copy of LLDB does not support scripting. From: Craig Rodrigues To: FreeBSD Toolchain Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 00:06:10 -0000 Hi, In /etc/make.conf, I put WITH_LLDB="yes" and rebuilt/reinstalled the world. I then tried: (lldb) script error: your copy of LLDB does not support scripting. Is there a way to configure LLDB with script support? -- Craig From owner-freebsd-toolchain@freebsd.org Sat Oct 10 01:49:26 2015 Return-Path: Delivered-To: freebsd-toolchain@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 AE08E9D3F56 for ; Sat, 10 Oct 2015 01:49:26 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-2.reflexion.net [208.70.210.2]) (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 68444ACF for ; Sat, 10 Oct 2015 01:49:25 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 1655 invoked from network); 10 Oct 2015 01:49:17 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 10 Oct 2015 01:49:17 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v7.70.2) with SMTP; Fri, 09 Oct 2015 21:49:17 -0400 (EDT) Received: (qmail 19915 invoked from network); 10 Oct 2015 01:49:17 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 10 Oct 2015 01:49:17 -0000 X-No-Relay: not in my network X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.108] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 634311C43CE; Fri, 9 Oct 2015 18:49:11 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use) From: Mark Millard In-Reply-To: Date: Fri, 9 Oct 2015 18:49:16 -0700 Cc: FreeBSD PowerPC ML , FreeBSD Toolchain Message-Id: References: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> To: Craig Rodrigues X-Mailer: Apple Mail (2.2104) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 01:49:26 -0000 On 2015-Oct-9, at 4:58 PM, Craig Rodrigues = wrote: > On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard > wrote: >=20 > /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] > bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) >=20 > You will get many of these warnings all over the codebase. > You should add NO_WERROR=3D > to your make invocation, or put NO_WERROR=3D in make.conf. >=20 > That's what I do here: > = https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull = Yes. Thanks for the reference to = FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull . It is interesting to see. Type-punned pointer vs. strict-aliasing leaves me more worried about = source-code-assumption vs. code-generator-assumption mismatches. Many = warnings/errors are more like initialized-but-unused and various others = that I did not mention. Since powerpc64-xtoolchain and its powerpc64-gcc = are gcc5.2 based these days it might give more warnings/errors than = gcc4.9 or earlier. (I've not checked.) I switched to use NO_WERROR (and WERROR) after I sent in the note and = had looked at some of the other generated warnings/errors. =3D=3D=3D Mark Millard markmi at dsl-only.net On 2015-Oct-9, at 4:58 PM, Craig Rodrigues = wrote: On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard > wrote: /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing = type-punned pointer will break strict-aliasing rules = [-Werror=3Dstrict-aliasing] bt_preserve(t, *(pgno_t *)bl->bytes) =3D=3D RET_ERROR) You will get many of these warnings all over the codebase. You should add NO_WERROR=3D to your make invocation, or put NO_WERROR=3D in make.conf. That's what I do here: = https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull = -- Craig =20 From owner-freebsd-toolchain@freebsd.org Sat Oct 10 02:16:44 2015 Return-Path: Delivered-To: freebsd-toolchain@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 E22499D34F5 for ; Sat, 10 Oct 2015 02:16:44 +0000 (UTC) (envelope-from rpaulo@me.com) Received: from mr11p00im-asmtp003.me.com (mr11p00im-asmtp003.me.com [17.110.69.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C2F081C89; Sat, 10 Oct 2015 02:16:44 +0000 (UTC) (envelope-from rpaulo@me.com) Received: from akita.hsd1.ca.comcast.net (c-73-162-13-215.hsd1.ca.comcast.net [73.162.13.215]) by mr11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Mar 31 2015)) with ESMTPSA id <0NVZ0080QFNNGB10@mr11p00im-asmtp003.me.com>; Sat, 10 Oct 2015 02:16:37 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2015-10-10_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 kscore.is_bulkscore=8.89616158517015e-12 compositescore=0.981618935876834 phishscore=0 kscore.is_spamscore=0 rbsscore=0.981618935876834 recipient_to_sender_totalscore=0 spamscore=0 urlsuspectscore=0.981618935876834 adultscore=0 kscore.compositescore=0 circleOfTrustscore=0 suspectscore=0 recipient_domain_to_sender_totalscore=0 bulkscore=0 recipient_domain_to_sender_domain_totalscore=0 recipient_to_sender_domain_totalscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1412110000 definitions=main-1510100031 Message-id: <1444443395.18959.0.camel@me.com> Subject: Re: error: your copy of LLDB does not support scripting. From: Rui Paulo To: Craig Rodrigues , FreeBSD Toolchain Date: Fri, 09 Oct 2015 19:16:35 -0700 In-reply-to: References: Content-type: text/plain; charset=UTF-8 X-Mailer: Evolution 3.16.5-1 MIME-version: 1.0 Content-transfer-encoding: 7bit X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 02:16:45 -0000 On Fri, 2015-10-09 at 17:06 -0700, Craig Rodrigues wrote: > Hi, > > In /etc/make.conf, I put WITH_LLDB="yes" > and rebuilt/reinstalled the world. > > I then tried: > > (lldb) script > error: your copy of LLDB does not support scripting. > > Is there a way to configure LLDB with script support? I think you need to use the ports lldb. -- Rui Paulo From owner-freebsd-toolchain@freebsd.org Sat Oct 10 02:40:37 2015 Return-Path: Delivered-To: freebsd-toolchain@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 141AE9D25E7 for ; Sat, 10 Oct 2015 02:40:37 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-1.reflexion.net [208.70.210.1]) (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 C7EAD962 for ; Sat, 10 Oct 2015 02:40:36 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 22247 invoked from network); 10 Oct 2015 02:40:29 -0000 Received: from unknown (HELO mail-cs-01.app.dca.reflexion.local) (10.81.19.1) by 0 (rfx-qmail) with SMTP; 10 Oct 2015 02:40:29 -0000 Received: by mail-cs-01.app.dca.reflexion.local (Reflexion email security v7.70.2) with SMTP; Fri, 09 Oct 2015 22:40:29 -0400 (EDT) Received: (qmail 19486 invoked from network); 10 Oct 2015 02:40:29 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 10 Oct 2015 02:40:29 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id AC6DB1C43AE; Fri, 9 Oct 2015 19:40:22 -0700 (PDT) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: powerpc64-xtoolchain/powerpc64-gcc lacks lib32 support, so fails boot1.elf link (for example) Message-Id: Date: Fri, 9 Oct 2015 19:40:27 -0700 To: FreeBSD PowerPC ML , FreeBSD Toolchain Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2015 02:40:37 -0000 For an amd64 11.0 context with powerpc64-xtoolchain-gcc in place: doing make -j 7 CROSS_TOOLCHAIN=3Dpowerpc64-gcc \ -DWITHOUT_GCC -DWITHOUT_GCC_BOOTSTRAP -DWITHOUT_GNUCXX \ -DWITHOUT_CLANG -DWITHOUT_CLANG_BOOTSTRAP -DWITHOUT_CLANG_FULL = -DWITHOUT_CLANG_IS_CC \ -DWITHOUT_CLANG_EXTRAS -DWITHOUT_LLDB \ buildworld buildkernel KERNCONF=3DGENERIC64-NODBG \ TARGET=3Dpowerpc TARGET_ARCH=3Dpowerpc64 the result is the following during WITH_BOOT's build activity: --- boot1.elf --- /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -isystem = /usr/obj/powerpc.powerpc64/usr/src/tmp/usr/include = -L/usr/obj/powerpc.powerpc64/usr/src/tmp/usr/lib = --sysroot=3D/usr/obj/powerpc.powerpc64/usr/src/tmp = -B/usr/local/powerpc64-freebsd/bin/ -ffreestanding -msoft-float -Os = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../common = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../../ -D_STANDALONE -m32 = -mcpu=3Dpowerpc -m32 -mcpu=3Dpowerpc -std=3Dgnu99 -nostdlib -static = -Wl,-N -Wl,-m -Wl,elf32ppc_fbsd -Wl,-m -Wl,elf32ppc_fbsd -o boot1.elf = boot1.o ashldi3.o syncicache.o=20 boot1.o: In function `__puts': boot1.c:(.text+0xf4): undefined reference to `_restgpr_28_x' boot1.o: In function `__printf': boot1.c:(.text+0x50c): undefined reference to `_restgpr_24_x' boot1.o: In function `ofw_getprop': boot1.c:(.text+0x638): undefined reference to `_restgpr_31_x' boot1.o: In function `ofw_close': boot1.c:(.text+0x6a4): undefined reference to `_restgpr_31_x' boot1.o: In function `dskread': boot1.c:(.text+0x7ac): undefined reference to `_restgpr_25_x' boot1.o: In function `fsread': boot1.c:(.text+0xcb4): undefined reference to `_restgpr_16_x' boot1.o: In function `domount': boot1.c:(.text+0xd88): undefined reference to `_restgpr_28_x' boot1.o: In function `ofw_write.constprop.2': boot1.c:(.text+0xe10): undefined reference to `_restgpr_30_x' boot1.o: In function `putchar': boot1.c:(.text+0xe60): undefined reference to `_restgpr_30_x' boot1.o: In function `main': boot1.c:(.text.startup+0x538): undefined reference to `_restgpr_18_x' collect2: error: ld returned 1 exit status *** [boot1.elf] Error code 1 This is from there being no lib32-like libgcc or its use from what I can = tell. For example a normal gcc 4.2.1 build WITH_LIB32=3D has the = following that a CROSS_TOOLCHAIN=3Dpowerpc64-gcc does not have: . . . --- _lib-eh-install --- sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh.a = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 . . . --- _lib-eh-install --- sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh.a = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh_p.a = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 --- _libinstall --- sh /usr/src/tools/install.sh -s -o root -g wheel -m 444 = libgcc_s.so.1 /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 sh /usr/src/tools/install.sh -l s libgcc_s.so.1 = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32/libgcc_s.so . . . --- _lib-eh-install --- sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh.a = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libgcc_eh_p.a = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 . . . --- gnu/lib__L --- sh /usr/src/tools/install.sh -s -o root -g wheel -m 444 = libgcc_s.so.1 /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32 sh /usr/src/tools/install.sh -l s libgcc_s.so.1 = /usr/obj/powerpc.powerpc64/usr/src/lib32/usr/lib32/libgcc_s.so Some of which would be assocaited with the -m32 use in (for a normal gcc = 4.2.1 based build): --- boot1.elf --- cc -ffreestanding -msoft-float -Os = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../common = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../../ -D_STANDALONE -m32 = -mcpu=3Dpowerpc -m32 -mcpu=3Dpowerpc -std=3Dgnu99 -nostdlib -static = -Wl,-N -Wl,-m -Wl,elf32ppc_fbsd -Wl,-m -Wl,elf32ppc_fbsd -o boot1.elf = boot1.o ashldi3.o syncicache.o=20 The failing powerpc64-xtoolchain-gcc case lists the following when = -Wl,-M,--verbose is used: --- sys.all__D --- /usr/local/bin/powerpc64-portbld-freebsd11.0-gcc -isystem = /usr/obj/powerpc.powerpc64/usr/src/tmp/usr/include = -L/usr/obj/powerpc.powerpc64/usr/src/tmp/usr/lib = --sysroot=3D/usr/obj/powerpc.powerpc64/usr/src/tmp = -B/usr/local/powerpc64-freebsd/bin/ -ffreestanding -msoft-float -Os = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../common = -I/usr/src/sys/boot/powerpc/boot1.chrp/../../../ -D_STANDALONE -m32 = -mcpu=3Dpowerpc -m32 -mcpu=3Dpowerpc -std=3Dgnu99 -nostdlib -static = -Wl,-N -Wl,-m -Wl,elf32ppc_fbsd -Wl,-M,--verbose -Wl,-m = -Wl,elf32ppc_fbsd -Wl,-M,--verbose -o boot1.elf boot1.o ashldi3.o = syncicache.o=20 . . . --- sys.all__D --- GNU ld (GNU Binutils) 2.25.1 Supported emulations: elf64ppc_fbsd elf64ppc elf32ppc_fbsd elf32ppc using internal linker script: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= /* Script for -N: mix text and data on same page; don't align data */ /* Copyright (C) 2014 Free Software Foundation, Inc. Copying and distribution of this script, with or without = modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. */ OUTPUT_FORMAT("elf32-powerpc-freebsd", "elf32-powerpc-freebsd", "elf32-powerpc-freebsd") OUTPUT_ARCH(powerpc:common) ENTRY(_start) SEARCH_DIR("=3D/usr/local/powerpc-freebsd/lib32"); = SEARCH_DIR("=3D/lib32"); SEARCH_DIR("=3D/usr/lib32"); = SEARCH_DIR("=3D/usr/local/lib32"); = SEARCH_DIR("=3D/usr/local/powerpc-freebsd/lib"); SEARCH_DIR("=3D/lib"); = SEARCH_DIR("=3D/usr/lib"); SEARCH_DIR("=3D/usr/local/lib"); PROVIDE (__stack =3D 0); PROVIDE (___stack =3D 0); . . . However: root@FreeBSDx64:/usr/src # ls /usr/local/powerpc-freebsd/lib32 ls: /usr/local/powerpc-freebsd/lib32: No such file or directory root@FreeBSDx64:/usr/src # ls /lib32 ls: /lib32: No such file or directory root@FreeBSDx64:/usr/src # ls /usr/lib32 . . . (list from amd64's context) . . . root@FreeBSDx64:/usr/src # ls /usr/local/lib32 ls: /usr/local/lib32: No such file or directory root@FreeBSDx64:/usr/src # ls /usr/local/powerpc-freebsd/lib ls: /usr/local/powerpc-freebsd/lib: No such file or directory root@FreeBSDx64:/usr/src # ls /usr/lib . . . (list from amd64's context) . . . root@FreeBSDx64:/usr/src # ls /usr/local/lib . . . (list from amd64's context) . . . so powerpc64-xtoolchain and its powerpc64 do not have any lib32 specific = search areas populated but for /usr/lib32: none powerpc64 specific. The context details follow. Mac OS X 10.10.5 using a VirtualBox V5.0.4 VM with. . . root@FreeBSDx64:/usr/src # freebsd-version -ku; uname -aKU 11.0-CURRENT 11.0-CURRENT FreeBSD FreeBSDx64 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r288459: Sat Oct = 3 03:42:08 PDT 2015 = root@FreeBSDx64:/usr/obj/usr/src/sys/GENERIC-NODEBUG amd64 1100079 = 1100079 root@FreeBSDx64:/usr/src # svnlite info /usr/src Path: . Working Copy Root Path: /usr/src URL: https://svn.freebsd.org/base/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 288459 Node Kind: directory Schedule: normal Last Changed Author: gjb Last Changed Rev: 288459 Last Changed Date: 2015-10-01 12:48:10 -0700 (Thu, 01 Oct 2015) root@FreeBSDx64:/usr/src # more /etc/src.conf # World: NO_WERROR=3D # Kernel: WERROR=3D root@FreeBSDx64:/usr/src # more /etc/make.conf /etc/make.conf: No such file or directory root@FreeBSDx64:/usr/src # svnlite info /usr/ports Path: /usr/ports Working Copy Root Path: /usr/ports URL: https://svn.freebsd.org/ports/head Relative URL: ^/head Repository Root: https://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 398559 Node Kind: directory Schedule: normal Last Changed Author: jbeich Last Changed Rev: 398559 Last Changed Date: 2015-10-03 17:42:55 -0700 (Sat, 03 Oct 2015) root@FreeBSDx64:/usr/src # portmaster --list-origins net/avahi devel/boost-all lang/clang37 ports-mgmt/dialog4ports lang/gcc5 devel/git-lite x11/lumina sysutils/lxterminal www/midori net/netatalk3 ports-mgmt/pkg ports-mgmt/portmaster devel/powerpc64-xtoolchain-gcc devel/qtcreator security/sudo mail/thunderbird emulators/virtualbox-ose-additions Very little is non-default source code. . . root@FreeBSDx64:/usr/src # svnlite status M lib/csu/powerpc64/Makefile ? sys/arm/conf/RPI2-NODBG M sys/boot/powerpc/Makefile.inc ? sys/powerpc/conf/GENERIC64-NODBG root@FreeBSDx64:/usr/src # svnlite status /usr/ports ? /usr/ports/ion root@FreeBSDx64:/usr/src # more = /usr/src/sys/powerpc/conf/GENERIC64-NODBG=20 . . . (comments omitted) . . . include GENERIC64 ident GENERIC-NODBG nooptions INVARIANTS nooptions INVARIANT_SUPPORT nooptions WITNESS nooptions WITNESS_SKIPSPIN nooptions DEADLKRES (The copy->paste sequence for the below diffs likely turned tabs into = spaces.) root@FreeBSDx64:/usr/src # svnlite diff sys/boot/powerpc/Makefile.inc=20 Index: sys/boot/powerpc/Makefile.inc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/boot/powerpc/Makefile.inc (revision 288459) +++ sys/boot/powerpc/Makefile.inc (working copy) @@ -2,7 +2,7 @@ =20 .if ${MACHINE_ARCH} =3D=3D "powerpc64" CFLAGS+=3D -m32 -mcpu=3Dpowerpc -LDFLAGS+=3D -m elf32ppc_fbsd +LDFLAGS+=3D -Wl,-m -Wl,elf32ppc_fbsd -Wl,-M,--verbose .endif =20 .include "../Makefile.inc" The following is my personal, local workaround for = /usr/src/lib/csu/powerpc64/Makefile forcing use of the gcc command even = when the context does not have one. root@FreeBSDx64:/usr/src # svnlite diff /usr/src Index: /usr/src/lib/csu/powerpc64/Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/lib/csu/powerpc64/Makefile (revision 288459) +++ /usr/src/lib/csu/powerpc64/Makefile (working copy) @@ -13,8 +13,8 @@ # clang doesn't support -mlongcall, and testing shows a clang linked = with a # clang-built csu segfaults, this must currently be compiled with gcc. = Once # clang supports -mlongcall, or we get a fixed ld, this can be = revisited. -CC:=3D gcc -COMPILER_TYPE:=3D gcc +#CC:=3D gcc +#COMPILER_TYPE:=3D gcc FILES=3D ${OBJS} FILESMODE=3D ${LIBMODE} =3D=3D=3D Mark Millard markmi at dsl-only.net