From owner-freebsd-sparc64@freebsd.org Thu Sep 14 01:40:44 2017 Return-Path: Delivered-To: freebsd-sparc64@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 29D62E1B72C for ; Thu, 14 Sep 2017 01:40:44 +0000 (UTC) (envelope-from raparkhurst@digitalsynapse.io) Received: from sender-of-o52.zoho.com (sender-of-o52.zoho.com [135.84.80.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 04C5B83540 for ; Thu, 14 Sep 2017 01:40:42 +0000 (UTC) (envelope-from raparkhurst@digitalsynapse.io) Received: from xerf-fx (cpe-66-68-160-213.austin.res.rr.com [66.68.160.213]) by mx.zohomail.com with SMTPS id 1505353226339692.9649746163835; Wed, 13 Sep 2017 18:40:26 -0700 (PDT) Message-ID: <1505353225.4543.9.camel@digitalsynapse.io> Subject: Re: Xorg question on FreeBSD 11.1 From: Robert Parkhurst To: Mark Linimon Cc: FreeBSD-sparc64 Date: Wed, 13 Sep 2017 20:40:25 -0500 In-Reply-To: <20170911031134.GA29922@lonesome.com> References: <1504912654.4543.5.camel@digitalsynapse.io> <20170909171502.GA22562@lonesome.com> <1CD52BED-3135-4ED0-A73F-500B1B133B05@digitalsynapse.io> <20170910175811.GA27418@lonesome.com> <1505093988.4543.7.camel@digitalsynapse.io> <20170911031134.GA29922@lonesome.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2017 01:40:44 -0000 Hi, In Mk/bsd.defaults.mk, use the following change: >=C2=A0 > =C2=A0 GCC_DEFAULT?=3D=C2=A0=C2=A04.9 >=C2=A0 I did this: /usr/ports/Mk/bsd.default-versions.mk In /usr/ports/lang/gcc49 re-ran `make install clean` and got the following: gmake[5]: Entering directory '/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/include' echo timestamp > stamp-pb echo timestamp > stamp-host echo 0 > stamp-namespace-version echo 1 > stamp-visibility echo 1 > stamp-extern-template sed -e '/^#pragma/b' \ =C2=A0=C2=A0=C2=A0=C2=A0-e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/ _GLIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' = \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's,^#include "\(.*\)",#include ,g' \ =C2=A0=C2=A0=C2=A0=C2=A0< /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++- v3/../libgcc/gthr.h > sparc64-portbld-freebsd11.1/bits/gthr.h sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIB= CXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0< /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++-v3= /../libgcc/gthr- single.h > sparc64-portbld-freebsd11.1/bits/gthr-single.h sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIB= CXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_G= LIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0< /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++-v3= /../libgcc/gthr- posix.h > sparc64-portbld-freebsd11.1/bits/gthr-posix.h sed -e 's/\(UNUSED\)/_GLIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIB= CXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_G= LIBCXX_\1/g' \ =C2=A0=C2=A0=C2=A0=C2=A0-e 's,^#include "\(.*\)",#include ,g' \ =C2=A0=C2=A0=C2=A0=C2=A0< /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++-v3= /../libgcc/gthr- posix.h > sparc64-portbld-freebsd11.1/bits/gthr-default.h gmake[5]: Leaving directory '/usr/ports/lang/gcc49/work/.build/sparc64- portbld-freebsd11.1/libstdc++-v3/include' gmake[5]: Entering directory '/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3' gmake "AR_FLAGS=3Drc" "CC_FOR_BUILD=3Dcc" "CC_FOR_TARGET=3D/usr/ports/lang/gcc49/work/.build/./gcc/xgcc -B/usr/ports/lang/gcc49/work/.build/./gcc/" "CFLAGS=3D-g -O2 -pipe=C2=A0=C2= =A0- DLIBICONV_PLUG -fno-strict-aliasing" "CXXFLAGS=3D-g -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing=C2=A0=C2=A0-DLIBICONV_PLUG" "CFLAGS_FOR_BUILD=3D-O2 -pipe=C2=A0=C2=A0-DLIBICONV_PLUG -fno-strict-aliasi= ng" "CFLAGS_FOR_TARGET=3D-g -O2 -pipe=C2=A0=C2=A0-DLIBICONV_PLUG -fno-strict-al= iasing" "INSTALL=3D/usr/bin/install -c" "INSTALL_DATA=3Dinstall=C2=A0=C2=A0-m 0644" "INSTALL_PROGRAM=3Dinstall=C2=A0=C2=A0-s -m 555" "INSTALL_SCRIPT=3Dinstall= =C2=A0=C2=A0-m 555" "LDFLAGS=3D" "LIBCFLAGS=3D-g -O2 -pipe=C2=A0=C2=A0-DLIBICONV_PLUG -fno-stri= ct- aliasing" "LIBCFLAGS_FOR_TARGET=3D-g -O2 -pipe=C2=A0=C2=A0-DLIBICONV_PLUG -= fno- strict-aliasing" "MAKE=3Dgmake" "MAKEINFO=3Dmakeinfo --no-split --split- size=3D5000000 --split-size=3D5000000 --split-size=3D5000000" "SHELL=3D/bin= /sh" "RUNTESTFLAGS=3D" "exec_prefix=3D/usr/local" "infodir=3D/usr/local/info/gcc49" "libdir=3D/usr/local/lib/gcc49" "includedir=3D/usr/local/include" "prefix=3D/usr/local" "tooldir=3D/usr/local/sparc64-portbld-freebsd11.1" "gxx_include_dir=3D/usr/local/lib/gcc49/include/c++/" "AR=3D/usr/local/sparc64-portbld-freebsd11.1/bin/ar" "AS=3D/usr/ports/lang/gcc49/work/.build/./gcc/as" "LD=3D/usr/ports/lang/gcc49/work/.build/./gcc/collect-ld" "RANLIB=3D/usr/local/sparc64-portbld-freebsd11.1/bin/ranlib" "NM=3D/usr/ports/lang/gcc49/work/.build/./gcc/nm" "NM_FOR_BUILD=3D" "NM_FOR_TARGET=3D/usr/local/sparc64-portbld-freebsd11.1/bin/nm" "DESTDIR=3D" "WERROR=3D" all-recursive gmake[6]: Entering directory '/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3' Making all in include gmake[7]: Entering directory '/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/include' mkdir -p ./sparc64-portbld-freebsd11.1/bits/stdc++.h.gch /usr/ports/lang/gcc49/work/.build/./gcc/xgcc -shared-libgcc -B/usr/ports/lang/gcc49/work/.build/./gcc -nostdinc++ -L/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/src -L/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/src/.libs -L/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/libsupc++/.libs -B/usr/local/sparc64-portbld- freebsd11.1/bin/ -B/usr/local/sparc64-portbld-freebsd11.1/lib/ -isystem /usr/local/sparc64-portbld-freebsd11.1/include -isystem /usr/local/sparc64-portbld-freebsd11.1/sys-include=C2=A0=C2=A0=C2=A0=C2=A0-= x c++-header -nostdinc++ -g -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing=C2=A0=C2=A0- DLIBICONV_PLUG=C2=A0=C2=A0-I/usr/ports/lang/gcc49/work/.build/sparc64-portb= ld- freebsd11.1/libstdc++-v3/include/sparc64-portbld-freebsd11.1 -I/usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/include -I/usr/ports/lang/gcc49/work/gcc- 4.9.4/libstdc++-v3/libsupc++ -O2 -g -std=3Dgnu++0x /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++- v3/include/precompiled/stdc++.h \ -o sparc64-portbld-freebsd11.1/bits/stdc++.h.gch/O2ggnu++0x.gch In file included from /usr/ports/lang/gcc49/work/.build/sparc64- portbld-freebsd11.1/libstdc++-v3/include/unordered_set:48:0, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0from /usr/ports/lang/gcc49/work/gcc-4.9.4/libstd= c++- v3/include/precompiled/stdc++.h:116: /usr/ports/lang/gcc49/work/.build/sparc64-portbld- freebsd11.1/libstdc++-v3/include/bits/unordered_set.h:1354:1: internal compiler error: in relocate_ptrs, at ggc-common.c:434 =C2=A0} // namespace std =C2=A0^ no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See for instructions. gmake[7]: *** [Makefile:1597: sparc64-portbld- freebsd11.1/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1 gmake[7]: Leaving directory '/usr/ports/lang/gcc49/work/.build/sparc64- portbld-freebsd11.1/libstdc++-v3/include' gmake[6]: *** [Makefile:485: all-recursive] Error 1 gmake[6]: Leaving directory '/usr/ports/lang/gcc49/work/.build/sparc64- portbld-freebsd11.1/libstdc++-v3' gmake[5]: *** [Makefile:391: all] Error 2 gmake[5]: Leaving directory '/usr/ports/lang/gcc49/work/.build/sparc64- portbld-freebsd11.1/libstdc++-v3' gmake[4]: *** [Makefile:12243: all-stage1-target-libstdc++-v3] Error 2 gmake[4]: Leaving directory '/usr/ports/lang/gcc49/work/.build' gmake[3]: *** [Makefile:18522: stage1-bubble] Error 2 gmake[3]: Leaving directory '/usr/ports/lang/gcc49/work/.build' gmake[2]: *** [Makefile:18854: bootstrap-lean] Error 2 gmake[2]: Leaving directory '/usr/ports/lang/gcc49/work/.build' *** Error code 1 Let me know if I'm doing something wrong or if there's a bug I need to file for this. If it's easier, I can try to download the package to move onto other things :) Thanks, Robert On Sun, 2017-09-10 at 22:11 -0500, Mark Linimon wrote: > On Sun, Sep 10, 2017 at 08:39:48PM -0500, Robert Parkhurst wrote: > > The fresh install comes with 4.2.1 I believe? >=20 > In the base system, yes.=C2=A0=C2=A0That's the latest that can be include= d > there > for licensing reasons. >=20 > > Do I need 4.9 or is 4.2.1 okay? >=20 > You will need 4.9 from ports to be able to compile most ports.=C2=A0=C2= =A0But > you > will need to disable the default which has moved past 4.9. >=20 > In Mk/bsd.defaults.mk, use the following change: >=20 > =C2=A0 GCC_DEFAULT?=3D=C2=A0=C2=A04.9 >=20 > (Sorry, I cannot paste the correct patch from here.) >=20 > The last time I tried to compile 4.9 I had no problem.=C2=A0=C2=A0You can= find > out what your current default is with gcc --version.=C2=A0=C2=A0It should= say > 4.2.1. >=20 > If you get stuck, I can show you how to download the gcc4.9 package. >=20 > mcl