Bug 241727

Summary: lang/gambit-c: fix build on GCC architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Jimmy Olgeni <olgeni>
Status: Closed FIXED    
Severity: Affects Only Me CC: olgeni
Priority: --- Flags: olgeni: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (olgeni)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-11-05 08:15:25 UTC
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.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-11-06 20:55:30 UTC
Approved as mentor (builds on ppcports) pending maintainer review.
Comment 2 Jimmy Olgeni freebsd_committer freebsd_triage 2019-11-18 00:20:47 UTC
Nice catch - thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-11-20 12:01:09 UTC
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