From owner-freebsd-toolchain@freebsd.org Mon Jul 24 07:23:17 2017 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 DD75CDBCEFA for ; Mon, 24 Jul 2017 07:23:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-38.reflexion.net [208.70.210.38]) (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 8A79283B6E for ; Mon, 24 Jul 2017 07:23:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 455 invoked from network); 24 Jul 2017 07:27:53 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 24 Jul 2017 07:27:53 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.1) with SMTP; Mon, 24 Jul 2017 03:23:15 -0400 (EDT) Received: (qmail 20500 invoked from network); 24 Jul 2017 07:23:15 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 24 Jul 2017 07:23:15 -0000 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 92207EC805D; Mon, 24 Jul 2017 00:23:14 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: libstdc++ build failures on MIPS, PowerPC, Sparc From: Mark Millard In-Reply-To: <1652170A-4809-4C0C-AA9D-3C364EA3866B@FreeBSD.org> Date: Mon, 24 Jul 2017 00:23:13 -0700 Cc: FreeBSD Toolchain , FreeBSD Current , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <995425D0-1240-4008-8BF7-982C7725353C@dsl-only.net> References: <1652170A-4809-4C0C-AA9D-3C364EA3866B@FreeBSD.org> To: rpokala@mac.com, David Chisnall X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2017 07:23:18 -0000 On 2017-Jul-24, at 12:03 AM, David Chisnall = wrote: > On 23 Jul 2017, at 23:54, Mark Millard wrote: >>=20 >>> c++ -isystem ${OUTDIR}/tmp/usr/include/c++/v1 -std=3Dc++11 = -nostdinc++ -isystem ${OUTDIR}/tmp/usr/include -L${OUTDIR}/tmp/usr/lib = -B${OUTDIR}/tmp/usr/lib --sysroot=3D${OUTDIR}/tmp = -B${OUTDIR}/tmp/usr/bin -O -pipe -G0 -EB -mabi=3D32 -msoft-float = -DIN_GLIBCPP_V3 -DHAVE_CONFIG_H -I${SRCDIR}/gnu/lib/libstdc++ = -I${SRCDIR}/contrib/libstdc++/libsupc++ -I${SRCDIR}/contrib/gcc = -I${SRCDIR}/contrib/libstdc++/include = -I${SRCDIR}/contrib/gcclibs/include = -I${SRCDIR}/contrib/libstdc++/include -I. = -frandom-seed=3DRepeatabilityConsideredGood -fno-implicit-templates = -ffunction-sections -fdata-sections -Wno-deprecated -c = ${SRCDIR}/contrib/libstdc++/src/bitmap_allocator.cc -o = bitmap_allocator.o >=20 > This is quite a surprising build command. It=E2=80=99s using = usr/include/c++/v1 for system includes, but usr/include/c++/v1 is the = libc++ header directory. libstdc++ shouldn=E2=80=99t need to be built = with C++11 support, but libc++ does, so this command looks like a = combination of both libc++ and libstdc++ build flags all mashed = together. I see that when I forwarded Ravi Pokala's message to other lists that seemed appropriate --where it was more likely to be noticed-- I forgot to CC Ravi. I fix this now by listing him in the To for this reply. As for the command: I expect that the weird mix is the essence of what Ravi P. was reporting, going along with the -std=3Dc++11 command line option that was explicitly rejected by the compiler. I have not yet tried a gcc 4.2.1 based build for powerpc64 or powerpc yet. (I tend to experiment with clang support of them.) But I will at some point and see if I get a similar issue. =3D=3D=3D Mark Millard markmi at dsl-only.net