[Bug 245511] lang/gcc9: build with base GCC on powerpc64 elfv1

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 30 22:10:19 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245511

--- Comment #15 from Piotr Kubaj <pkubaj at FreeBSD.org> ---
No CXXFLAGS_FOR_TARGET, no CFLAGS_FOR_TARGET, STAGE1_TFLAGS="-O0":
/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/
-B/usr/local/powerpc64-portbld-freebsd12.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd12.1/include -isystem
/usr/local/powerpc64-portbld-freebsd12.1/sys-include   -O0 -g -O2 -pipe
-DLIBICONV_PLUG -fno-strict-aliasing -m32 -fPIC -mstrict-align -O2  -g -O2
-pipe  -DLIBICONV_PLUG -fno-strict-aliasing  -DIN_GCC    -W -Wall
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC
-pthread -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fPIC -pthread -mno-minimal-toc -I. -I. -I../../.././gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../include  -DHAVE_CC_TLS 
-o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
during GIMPLE pass: store-merging
In file included from
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:56:
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c: In function
'__muldi3':
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:219:20: internal
compiler error: Segmentation fault
  219 | #define __NDW(a,b) __ ## a ## di ## b
      |                    ^~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:273:18: note: in
expansion of macro '__NDW'
  273 | #define __muldi3 __NDW(mul,3)
      |                  ^~~~~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:548:1: note: in
expansion of macro '__muldi3'
  548 | __muldi3 (DWtype u, DWtype v)
      | ^~~~~~~~
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[6]: *** [Makefile:498: _muldi3.o] Error 1
gmake[6]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/32/libgcc'
gmake[5]: *** [Makefile:1210: multi-do] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[4]: *** [Makefile:127: all-multi] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[3]: *** [Makefile:17170: all-stage1-target-libgcc] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[1]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
*** Error code 1



No CXXFLAGS_FOR_TARGET:
libtool: compile:  /wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-shared-libgcc -B/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc -nostdinc++
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/src
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/src/.libs
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/libsupc++/.libs
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/
-B/usr/local/powerpc64-portbld-freebsd12.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd12.1/include -isystem
/usr/local/powerpc64-portbld-freebsd12.1/sys-include -fno-checking
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/../libgcc
-I/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/include/powerpc64-portbld-freebsd12.1
-I/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/include
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++
-D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=class_type_info.lo -g -O2 -pipe -DLIBICONV_PLUG
-c
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/class_type_info.cc
 -fPIC -DPIC -D_GLIBCXX_SHARED -o class_type_info.o
during GIMPLE pass: store-merging
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/class_type_info.cc:
In member function 'virtual bool
__cxxabiv1::__class_type_info::__do_upcast(const
__cxxabiv1::__class_type_info*, void**) const':
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/class_type_info.cc:45:6:
internal compiler error: Segmentation fault
   45 | bool __class_type_info::
      |      ^~~~~~~~~~~~~~~~~
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[6]: *** [Makefile:761: class_type_info.lo] Error 1
gmake[6]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/libsupc++'
gmake[5]: *** [Makefile:562: all-recursive] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3'
gmake[4]: *** [Makefile:487: all] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3'
gmake[3]: *** [Makefile:15135: all-stage1-target-libstdc++-v3] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[1]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
*** Error code 1



CXXFLAGS_FOR_TARGET="-O1":
libtool: compile:  /wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-shared-libgcc -B/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc -nostdinc++
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/src
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/src/.libs
-L/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/libsupc++/.libs
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/
-B/usr/local/powerpc64-portbld-freebsd12.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd12.1/include -isystem
/usr/local/powerpc64-portbld-freebsd12.1/sys-include -fno-checking
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/../libgcc
-I/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/include/powerpc64-portbld-freebsd12.1
-I/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/include
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++
-D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings
-Wcast-qual -Wabi=2 -fdiagnostics-show-location=once -ffunction-sections
-fdata-sections -frandom-seed=eh_personality.lo -O1 -c
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_personality.cc
 -fPIC -DPIC -D_GLIBCXX_SHARED -o eh_personality.o
during GIMPLE pass: uncprop
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_personality.cc:
In function '_Unwind_Reason_Code __cxxabiv1::__gxx_personality_v0(int,
_Unwind_Action, _Unwind_Exception_Class, _Unwind_Exception*,
_Unwind_Context*)':
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_personality.cc:336:30:
internal compiler error: Segmentation fault
  336 | #define PERSONALITY_FUNCTION __gxx_personality_v0
      |                              ^~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libstdc++-v3/libsupc++/eh_personality.cc:351:1:
note: in expansion of macro 'PERSONALITY_FUNCTION'
  351 | PERSONALITY_FUNCTION (int version,
      | ^~~~~~~~~~~~~~~~~~~~
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[6]: *** [Makefile:761: eh_personality.lo] Error 1
gmake[6]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3/libsupc++'
gmake[5]: *** [Makefile:562: all-recursive] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3'
gmake[4]: *** [Makefile:487: all] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libstdc++-v3'
gmake[3]: *** [Makefile:15135: all-stage1-target-libstdc++-v3] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[1]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
*** Error code 1



CFLAGS_FOR_TARGET="-O1":
/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/
-B/usr/local/powerpc64-portbld-freebsd12.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd12.1/include -isystem
/usr/local/powerpc64-portbld-freebsd12.1/sys-include   -fno-checking -O1 -m32
-fPIC -mstrict-align
-O2  -O1 -DIN_GCC    -W -Wall -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fPIC -pthread -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fPIC -pthread -mno-minimal-toc -I. -I. -I../../.././gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../include  -DHAVE_CC_TLS 
-o _powisf2.o -MT _powisf2.o -MD -MP -MF _powisf2.dep -DL_powisf2 -c
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
during GIMPLE pass: uncprop
In file included from
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:56:
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c: In function
'__powisf2':
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:256:16: internal
compiler error: Segmentation fault
  256 | #define __N(a) __ ## a
      |                ^~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:339:20: note: in
expansion of macro '__N'
  339 | #define __powisf2  __N(powisf2)
      |                    ^~~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:1862:16: note: in
expansion of macro '__powisf2'
 1862 | #  define NAME __powisf2
      |                ^~~~~~~~~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:1877:1: note: in
expansion of macro 'NAME'
 1877 | NAME (TYPE x, int m)
      | ^~~~
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[6]: *** [Makefile:498: _powisf2.o] Error 1
gmake[6]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/32/libgcc'
gmake[5]: *** [Makefile:1210: multi-do] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[4]: *** [Makefile:127: all-multi] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[3]: *** [Makefile:17170: all-stage1-target-libgcc] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[1]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
*** Error code 1



No CFLAGS_FOR_TARGET:
/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/xgcc
-B/wrkdirs/usr/ports/lang/gcc9/work/.build/./gcc/
-B/usr/local/powerpc64-portbld-freebsd12.1/bin/
-B/usr/local/powerpc64-portbld-freebsd12.1/lib/ -isystem
/usr/local/powerpc64-portbld-freebsd12.1/include -isystem
/usr/local/powerpc64-portbld-freebsd12.1/sys-include   -fno-checking -g -O2
-pipe -DLIBICONV_PLUG -fno-strict-aliasing -m32 -fPIC -mstrict-align -O2  -g
-O2 -pipe  -DLIBICONV_PLUG -fno-strict-aliasing  -DIN_GCC    -W -Wall
-Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fPIC
-pthread -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fPIC -pthread -mno-minimal-toc -I. -I. -I../../.././gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/.
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../gcc
-I/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/../include  -DHAVE_CC_TLS 
-o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS
during GIMPLE pass: store-merging
In file included from
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:56:
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c: In function
'__muldi3':
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:219:20: internal
compiler error: Segmentation fault
  219 | #define __NDW(a,b) __ ## a ## di ## b
      |                    ^~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.h:273:18: note: in
expansion of macro '__NDW'
  273 | #define __muldi3 __NDW(mul,3)
      |                  ^~~~~
/wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/libgcc/libgcc2.c:548:1: note: in
expansion of macro '__muldi3'
  548 | __muldi3 (DWtype u, DWtype v)
      | ^~~~~~~~
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[6]: *** [Makefile:498: _muldi3.o] Error 1
gmake[6]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/32/libgcc'
gmake[5]: *** [Makefile:1210: multi-do] Error 1
gmake[5]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[4]: *** [Makefile:127: all-multi] Error 2
gmake[4]: Leaving directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/libgcc'
gmake[3]: *** [Makefile:17170: all-stage1-target-libgcc] Error 2
gmake[3]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[2]: *** [Makefile:22474: stage1-bubble] Error 2
gmake[2]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
gmake[1]: *** [Makefile:22806: bootstrap-lean] Error 2
gmake[1]: Leaving directory '/wrkdirs/usr/ports/lang/gcc9/work/.build'
*** Error code 1

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


More information about the freebsd-ppc mailing list