Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2019 08:38:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 242593] [PowerPC64] lang/gcc8: error: cp/cxx-pretty-print.o: ELF section name out of range (on FreeBSD 12.1-RELEASE)
Message-ID:  <bug-242593-25139@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242593

            Bug ID: 242593
           Summary: [PowerPC64] lang/gcc8: error: cp/cxx-pretty-print.o:
                    ELF section name out of range (on FreeBSD
                    12.1-RELEASE)
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gerald@FreeBSD.org
          Reporter: canardo909@gmx.com
                CC: powerpc@FreeBSD.org
          Assignee: gerald@FreeBSD.org
                CC: powerpc@FreeBSD.org
             Flags: maintainer-feedback?(gerald@FreeBSD.org)

Problem found when compiling gcc8 on FreeBSD 12.1


# cd /usr/ports/lang/gcc8
# make install clean
...
...
...
gmake[5]: Entering directory '/usr/ports/lang/gcc8/work/.build/libdecnumber'
gmake[5]: Nothing to be done for 'all'.
gmake[5]: Leaving directory '/usr/ports/lang/gcc8/work/.build/libdecnumber'
gmake[5]: Entering directory '/usr/ports/lang/gcc8/work/.build/gcc'
/usr/ports/lang/gcc8/work/.build/./prev-gcc/xg++
-B/usr/ports/lang/gcc8/work/.build/./prev-gcc/
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/ -nostdinc++
-B/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libst=
dc++-v3/src/.libs
-B/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libst=
dc++-v3/libsupc++/.libs
 -isystem
/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libstdc=
++-v3/include/powerpc64-portbld-freebsd12.1
 -isystem
/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libstdc=
++-v3/include
 -isystem /usr/ports/lang/gcc8/work/gcc-8.3.0/libstdc++-v3/libsupc++
-L/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libst=
dc++-v3/src/.libs
-L/usr/ports/lang/gcc8/work/.build/prev-powerpc64-portbld-freebsd12.1/libst=
dc++-v3/libsupc++/.libs
-no-pie   -O1 -gtoggle -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG=
_H
-static-libstdc++ -static-libgcc  -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o
cp/constraint.o cp/cp-gimplify.o cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o
cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o cp/error.o cp/except.o
cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o
cp/method.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o
cp/repo.o cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o
cp/typeck2.o cp/vtable-class-hierarchy.o attribs.o incpath.o
c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o
c-family/c-format.o c-family/c-gimplify.o c-family/c-indentation.o
c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o
c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o
c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-ubsan.o
c-family/known-headers.o c-family/c-attribs.o c-family/c-warn.o
c-family/c-spellcheck.o default-c.o rs6000-c.o cc1plus-checksum.o libbacken=
d.a
main.o libcommon-target.a libcommon.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a=20=20
../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a   -L/usr/local/lib -lmpc -lmpfr -lgmp -rdyna=
mic=20
-lz
/usr/local/bin/ld: warning: cp/cxx-pretty-print.o has a corrupt string table
index - ignoring
/usr/local/bin/ld: error: cp/cxx-pretty-print.o: ELF section name out of ra=
nge
collect2: error: ld returned 1 exit status
gmake[5]: *** [/usr/ports/lang/gcc8/work/gcc-8.3.0/gcc/cp/Make-lang.in:120:
cc1plus] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc8/work/.build/gcc'
gmake[4]: *** [Makefile:4652: all-stage2-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc8/work/.build'
gmake[3]: *** [Makefile:22550: stage2-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc8/work/.build'
gmake[2]: *** [Makefile:22765: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc8/work/.build'
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/lang/gcc8
*** Error code 1

Stop.



It runs on an emulated version of FreeBSD

Host is Ubuntu 18.04 LTS 64bits (with 8GB ram)

Qemu version :
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.21)

Command line to run FreeBSD
sudo qemu-system-ppc64 -M pseries-2.12-sxxm -smp 2 -drive
file=3Dqfreebsdppc64.qcow -m 3G -machine cap-sbbc=3Dbroken,cap-ibs=3Dbroken=
 -net
user,hostfwd=3Dtcp::10022-:22 -net nic


Installed FreeBSD version
# uname -mrs
FreeBSD 12.1-RELEASE powerpc


I don't have PowerPC64 hardware, so I can't test if it is purely on Qemu, o=
r if
it also occurs on ppc64 hardware.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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