Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Dec 2019 11:56:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 242506] [PowerPC] lang/gcc9: cc1: internal compiler error: Segmentation fault (on FreeBSD 12.1-RELEASE-p1)
Message-ID:  <bug-242506-25139@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 242506
           Summary: [PowerPC] lang/gcc9: cc1: internal compiler error:
                    Segmentation fault (on FreeBSD 12.1-RELEASE-p1)
           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 GCC9 on PowerPC with FreeBSD 12.1-RELEASE-p1
powerpc

# cd /usr/ports/lang/gcc9
# make install clean
...
...
gmake[5]: Entering directory '/usr/ports/lang/gcc9/work/.build/gcc'
/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-B/usr/ports/lang/gcc9/work/.build/./gcc/ -xc -nostdinc /dev/null -S -o
/dev/null
-fself-test=3D/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/testsuite/selftests
cc1: internal compiler error: Segmentation fault
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/>; for instructions.
gmake[5]: *** [/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/c/Make-lang.in:124:
s-selftest-c] Error 1
gmake[5]: Leaving directory '/usr/ports/lang/gcc9/work/.build/gcc'
gmake[4]: *** [Makefile:4662: all-stage1-gcc] Error 2
gmake[4]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[3]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[3]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[2]: Leaving directory '/usr/ports/lang/gcc9/work/.build'
=3D=3D=3D> Compilation failed unexpectedly.



Following fix of bug #241125, I'm trying to compile GCC9 on a laptop Apple
Powerbook G4 17" with 2x1GB ram, in command line, using root as user.

HARDWARE INFOS
# uname -mrs
FreeBSD 12.1-RELEASE-p1 powerpc

# getconf LONG_BIT
32

# sysctl -a hw.model
hw.model: Motorola PowerPC 7447A

# sysctl hw | egrep 'hw.(phys|user|real)'
hw.physmem: 2112737280
hw.usermem: 2061774848
hw.realmem: 2112737280

# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ada0s4       4194304        0  4194304     0%

# sysctl kern.maxssiz
kern.maxssiz: 67108864


SOFTWARE INFOS
# $SHELL --version
tcsh 6.20.00 (Astron) 2016-11-24 (powerpc-motorola-FreeBSD) options
wide,nls,dl,al,kan,sm,rh,color,filec

# limits
Resource limits (current):
  cputime              infinity secs
  filesize             infinity kB
  datasize              1048576 kB
  stacksize               65536 kB
  coredumpsize         infinity kB
  memoryuse            infinity kB
  memorylocked         infinity kB
  maxprocesses             6656
  openfiles               58023
  sbsize               infinity bytes
  vmemoryuse           infinity kB
  pseudo-terminals     infinity
  swapuse              infinity kB
  kqueues              infinity
  umtxp                infinity


While running GCC9 compilation in one shell, I run following command in ano=
ther
shell

# ps -aO ssiz | sort -r -k 2 | more

 PID SSIZ TT  STAT    TIME COMMAND
1073  128 v7  Is+  0:00.01 /usr/libexec/getty Pc ttyv7
1072  128 v6  Is+  0:00.01 /usr/libexec/getty Pc ttyv6
1071  128 v5  Is+  0:00.01 /usr/libexec/getty Pc ttyv5
1070  128 v4  Is+  0:00.01 /usr/libexec/getty Pc ttyv4
1069  128 v3  Is+  0:00.01 /usr/libexec/getty Pc ttyv3
1068  128 v2  Is+  0:00.01 /usr/libexec/getty Pc ttyv2
1067  128 v1  Is+  0:00.01 /usr/libexec/getty Pc ttyv1
1066  128 v0  Is+  0:00.01 /usr/libexec/getty Pc ttyv0
1101  128  1  Ss   0:00.10 -csh (csh)
1778  128  1  S+   0:00.01 sort -r -k 2
1777  128  1  R+   0:00.01 ps -aO ssiz
1779  128  1  R+   0:00.01 more
1077  128  0  Ss   0:00.13 -csh (csh)
1484  128  0  S+   0:02.70 gmake DESTDIR=3D RPATH_ENVVAR=3DLD_LIBRARY_PATH
TARGET_SUBDIR=3Dpowerpc-portbld-freebsd12.1 bindir=3D/usr/local/bin
datadir=3D/usr/local/share exec_prefix=3D/usr/local includedir=3D/usr/local=
/i
1179  128  0  S+   0:00.24 gmake DESTDIR=3D RPATH_ENVVAR=3DLD_LIBRARY_PATH
TARGET_SUBDIR=3Dpowerpc-portbld-freebsd12.1 bindir=3D/usr/local/bin
datadir=3D/usr/local/share exec_prefix=3D/usr/local includedir=3D/usr/local=
/i
1164  128  0  S+   0:00.17 gmake DESTDIR=3D RPATH_ENVVAR=3DLD_LIBRARY_PATH
TARGET_SUBDIR=3Dpowerpc-portbld-freebsd12.1 bindir=3D/usr/local/bin
datadir=3D/usr/local/share exec_prefix=3D/usr/local includedir=3D/usr/local=
/i
1154  128  0  S+   0:00.17 gmake -f Makefile -j1 MAKEINFOFLAGS=3D--no-split
bootstrap-lean
1135  128  0  S+   0:00.11 make install clean
1148  128  0  S+   0:00.09 make CONFIG_DONE_GCC9=3D1
/usr/ports/lang/gcc9/work/.install_done.gcc._usr_local
1775  128  0  S+   0:00.04 /usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-B/usr/ports/lang/gcc9/work/.build/./gcc/ -xc -nostdinc /dev/null -S -o
/dev/null -fself-test=3D/usr/ports/lang/gcc9/work/gcc-9.2.0/gcc/t
1153  128  0  S+   0:00.01 /bin/sh -e -c (cd /usr/ports/lang/gcc9/work/.bui=
ld;
if ! /usr/bin/env PERL_USE_UNSAFE_INC=3D1 XDG_DATA_HOME=3D/usr/ports/lang/g=
cc9/work
 XDG_CONFIG_HOME=3D/usr/ports/lang/gcc9/work  HOM
1776  128  0  R+   0:00.01 /usr/ports/lang/gcc9/work/.build/./gcc/cc1 -quiet
-nostdinc -iprefix
/usr/ports/lang/gcc9/work/.build/gcc/../lib/gcc9/gcc/powerpc-portbld-freebs=
d12.1/9.2.0/
-isystem /usr/ports/la


I tried to install /usr/ports/devel/libunwind/, but it is not available for
powerpc arch

--=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-242506-25139>