Bug 216810 - devel/tigcc: fails to build with gcc5 or later
Summary: devel/tigcc: fails to build with gcc5 or later
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords: needs-patch
Depends on:
Blocks: 216707
  Show dependency treegraph
 
Reported: 2017-02-05 06:39 UTC by Jan Beich
Modified: 2017-02-05 07:20 UTC (History)
1 user (show)

See Also:
cyberbotx: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2017-02-05 06:39:52 UTC
gnu/gcc-4.1-20060728/gcc/toplev.c:533:1: error: redefinition of 'floor_log2'
 floor_log2 (unsigned HOST_WIDE_INT x)
 ^
In file included from gnu/gcc-4.1-20060728/gcc/toplev.c:59:0:
gnu/gcc-4.1-20060728/gcc/toplev.h:175:1: note: previous definition of 'floor_log2' was here
 floor_log2 (unsigned HOST_WIDE_INT x)
 ^
gnu/gcc-4.1-20060728/gcc/toplev.c:568:1: error: redefinition of 'exact_log2'
 exact_log2 (unsigned HOST_WIDE_INT x)
 ^
In file included from gnu/gcc-4.1-20060728/gcc/toplev.c:59:0:
gnu/gcc-4.1-20060728/gcc/toplev.h:181:1: note: previous definition of 'exact_log2' was here
 exact_log2 (unsigned HOST_WIDE_INT x)
 ^

http://package23.nyi.freebsd.org/data/103amd64-default-PR216707/2017-02-03_20h32m45s/logs/errors/tigcc-0.96.b8_4.log
http://package22.nyi.freebsd.org/data/103i386-default-PR216707/2017-02-03_20h32m46s/logs/errors/tigcc-0.96.b8_4.log
Comment 1 Naram Qashat 2017-02-05 06:54:51 UTC
I'm honestly not sure how to fix this. It doesn't help that tigcc is basically building as gcc 4.1 either...
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-02-05 07:20:02 UTC
A commit references this bug:

Author: jbeich
Date: Sun Feb  5 07:19:09 UTC 2017
New revision: 433377
URL: https://svnweb.freebsd.org/changeset/ports/433377

Log:
  devel/tigcc: unbreak with gcc5 or later

  PR:		216810

Changes:
  head/devel/tigcc/Makefile
Comment 3 Jan Beich freebsd_committer freebsd_triage 2017-02-05 07:20:10 UTC
Inline linkage has changed resulting in the conflict of definitions, see https://gcc.gnu.org/gcc-5/porting_to.html