Xorg question on FreeBSD 11.1
Robert Parkhurst
raparkhurst at digitalsynapse.io
Thu Sep 14 01:40:44 UTC 2017
Hi,
In Mk/bsd.defaults.mk, use the following change:
>
> GCC_DEFAULT?= 4.9
>
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' \
-e
'/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/
_GLIBCXX_\1/g' \
-e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
-e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< /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' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
< /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' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
-e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
< /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' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCXX_\1/g' \
-e 's/SUPPORTS_WEAK/__GXX_WEAK__/g' \
-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*USE_WEAK\)/_GLIBCXX_\1/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< /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=rc" "CC_FOR_BUILD=cc"
"CC_FOR_TARGET=/usr/ports/lang/gcc49/work/.build/./gcc/xgcc
-B/usr/ports/lang/gcc49/work/.build/./gcc/" "CFLAGS=-g -O2 -pipe -
DLIBICONV_PLUG -fno-strict-aliasing" "CXXFLAGS=-g -O2 -pipe
-DLIBICONV_PLUG -fno-strict-aliasing -DLIBICONV_PLUG"
"CFLAGS_FOR_BUILD=-O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing"
"CFLAGS_FOR_TARGET=-g -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=install -m 0644"
"INSTALL_PROGRAM=install -s -m 555" "INSTALL_SCRIPT=install -m 555"
"LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -DLIBICONV_PLUG -fno-strict-
aliasing" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -DLIBICONV_PLUG -fno-
strict-aliasing" "MAKE=gmake" "MAKEINFO=makeinfo --no-split --split-
size=5000000 --split-size=5000000 --split-size=5000000" "SHELL=/bin/sh"
"RUNTESTFLAGS=" "exec_prefix=/usr/local"
"infodir=/usr/local/info/gcc49" "libdir=/usr/local/lib/gcc49"
"includedir=/usr/local/include" "prefix=/usr/local"
"tooldir=/usr/local/sparc64-portbld-freebsd11.1"
"gxx_include_dir=/usr/local/lib/gcc49/include/c++/"
"AR=/usr/local/sparc64-portbld-freebsd11.1/bin/ar"
"AS=/usr/ports/lang/gcc49/work/.build/./gcc/as"
"LD=/usr/ports/lang/gcc49/work/.build/./gcc/collect-ld"
"RANLIB=/usr/local/sparc64-portbld-freebsd11.1/bin/ranlib"
"NM=/usr/ports/lang/gcc49/work/.build/./gcc/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=/usr/local/sparc64-portbld-freebsd11.1/bin/nm"
"DESTDIR=" "WERROR=" 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 -x c++-header
-nostdinc++ -g -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing -
DLIBICONV_PLUG -I/usr/ports/lang/gcc49/work/.build/sparc64-portbld-
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=gnu++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,
from /usr/ports/lang/gcc49/work/gcc-4.9.4/libstdc++-
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
} // namespace std
^
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?
>
> In the base system, yes. That's the latest that can be included
> there
> for licensing reasons.
>
> > Do I need 4.9 or is 4.2.1 okay?
>
> You will need 4.9 from ports to be able to compile most ports. But
> you
> will need to disable the default which has moved past 4.9.
>
> In Mk/bsd.defaults.mk, use the following change:
>
> GCC_DEFAULT?= 4.9
>
> (Sorry, I cannot paste the correct patch from here.)
>
> The last time I tried to compile 4.9 I had no problem. You can find
> out what your current default is with gcc --version. It should say
> 4.2.1.
>
> If you get stuck, I can show you how to download the gcc4.9 package.
>
> mcl
More information about the freebsd-sparc64
mailing list