Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2017 20:40:25 -0500
From:      Robert Parkhurst <raparkhurst@digitalsynapse.io>
To:        Mark Linimon <linimon@lonesome.com>
Cc:        FreeBSD-sparc64 <freebsd-sparc64@freebsd.org>
Subject:   Re: Xorg question on FreeBSD 11.1
Message-ID:  <1505353225.4543.9.camel@digitalsynapse.io>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <bits/\1>,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 <bits/\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-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 <http://gcc.gnu.org/bugs.html>; 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1505353225.4543.9.camel>