Created attachment 208873 [details] patch On powerpc64 build fails with: gcc -O2 -pipe -fno-move-loop-invariants -fstack-protector-strong -fno-strict-aliasing -I"../include" -c -o "_gambit.o" -I. -DHAVE_CONFIG_H -D___GAMBITDIR="\"/usr/local\"" -D___GAMBITDIR_INCLUDE="\"/usr/local/include/gambit-c\"" -D___GAMBITDIR_LIB="\"/usr/local/lib/gambit-c\"" -D___GAMBITDIR_DOC="\"/usr/local/share/doc/gambit-c\"" -D___GAMBITDIR_INFO="\"/usr/local/share/info\"" -D___SYS_TYPE_CPU="\"powerpc64\"" -D___SYS_TYPE_VENDOR="\"portbld\"" -D___SYS_TYPE_OS="\"freebsd12.1\"" -D___CONFIGURE_COMMAND="\"./configure '--enable-single-host' '--enable-gcc-opts' '--docdir=/usr/local/share/doc/gambit-c' '--includedir=/usr/local/include/gambit-c' '--libdir=/usr/local/lib/gambit-c' '--enable-compiler-name=gsc-gambit' '--enable-interpreter-name=gsi-gambit' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--infodir=/usr/local/share/info/' '--build=powerpc64-portbld-freebsd12.1' 'build_alias=powerpc64-portbld-freebsd12.1' 'CC=gcc' 'CFLAGS=-O2 -pipe -fno-move-loop-invariants -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CPP=gcpp' 'CXX=g++' 'CXXFLAGS=-O2 -pipe -fno-move-loop-invariants -fstack-protector-strong '"\" -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\"\"" -D___BAT_EXTENSION="\"\"" -D___PRIMAL _gambit.c -D___LIBRARY {standard input}: Assembler messages: {standard input}:8827: Warning: end of file not at end of a line; newline inserted {standard input}:9906: Error: missing operand {standard input}:9906: Error: missing operand {standard input}:9906: Error: syntax error; found ` gcc: Internal error: Killed (program cc1) Please submit a full bug report. See <URL:http://www.freebsd.org/support.html> for instructions. Use newer GCC from ports to fix build. Fix GCC option description to be more accurate and remove workaround for older GCC, since it will not be used anymore.
Approved as mentor (builds on ppcports) pending maintainer review.
Nice catch - thanks!
A commit references this bug: Author: pkubaj Date: Wed Nov 20 12:00:34 UTC 2019 New revision: 518006 URL: https://svnweb.freebsd.org/changeset/ports/518006 Log: lang/gambit-c: fix build on GCC architectures PR: 241727 Approved by: olgeni (maintainer), linimon (mentor) Changes: head/lang/gambit-c/Makefile