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

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri May 8 08:50:07 UTC 2020


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

--- Comment #20 from Piotr Kubaj <pkubaj at FreeBSD.org> ---
I set STAGE1_CFLAGS="-O0" STAGE1_CXXFLAGS="-O0" in MAKE_ARGS and removed
CFLAGS_FOR_TARGET="-O0" CXXFLAGS_FOR_TARGET="-O0". Build still fails and I can
see -O0 is not passed:
gmake[6]: Entering directory
'/wrkdirs/usr/ports/lang/gcc9/work/.build/powerpc64-portbld-freebsd12.1/32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/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




root at powerpc64-121-default:/usr/ports/lang/gcc9 # grep MAKE_ARGS Makefile
MAKE_ARGS+=             STAGE1_CFLAGS="-O0" STAGE1_CXXFLAGS="-O0"
BOOT_CFLAGS="-O0"

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


More information about the freebsd-ppc mailing list