Bug 241727 - lang/gambit-c: fix build on GCC architectures
Summary: lang/gambit-c: fix build on GCC architectures
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jimmy Olgeni
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-05 08:15 UTC by Piotr Kubaj
Modified: 2019-11-06 20:55 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (olgeni)


Attachments
patch (680 bytes, patch)
2019-11-05 08:15 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (olgeni)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 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.