Bug 206075 - lang/gcc6-devel: fails to build, needs USES=localbase
Summary: lang/gcc6-devel: fails to build, needs USES=localbase
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-09 15:15 UTC by Dmitry Marakasov
Modified: 2016-01-11 04:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2016-01-09 15:15:55 UTC
I've got a build failure while trying to upgrade gcc6-devel to the latest version:

.././../gcc-6-20160103/gcc/graphite-dependences.c:240:3: error: no matching function for call to 'isl_union_map_foreach_map'
  isl_union_map_foreach_map (x, max_number_of_out_dimensions, (void *) &max);
  ^~~~~~~~~~~~~~~~~~~~~~~~~

I could not reproduce it in poudriere, so the cause is probably some locally installed package. As a wild guess, I've added localbase to USES of gcc6-devel and that fixed the problem, so the guess is that it includes some headers from system instead of its local ones.

Complete logs before/after adding USES=localbase:

https://people.freebsd.org/~amdmi3/gcc6.fail.log
https://people.freebsd.org/~amdmi3/gcc6.ok.log
Comment 1 Gerald Pfeifer freebsd_committer freebsd_triage 2016-01-09 23:55:16 UTC
Hi Dmitry, sorry you ran into this.

As far as I can tell, this only should happen with GRAPHITE
enabled and just yesterday I analyzed this and created a fix
that I committed to upstream GCC:

  https://gcc.gnu.org/ml/gcc-patches/2016-01/msg00509.html
 
The next snapshot of GCC 6, which I plan on updating to in
the next 24 hours (it has not been released yet) will have
my fix and should address your issue.
Comment 2 Dmitry Marakasov freebsd_committer freebsd_triage 2016-01-10 12:40:48 UTC
That was with GRAPHITE disabled.
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2016-01-10 13:53:12 UTC
Ah, in that case I bet your system nevertheless has the isl package
installed (which would be consistent with your original note of "I
could not reproduce it in poudriere, so the cause is probably some
locally installed package).
Comment 4 Dmitry Marakasov freebsd_committer freebsd_triage 2016-01-10 14:50:59 UTC
(In reply to Gerald Pfeifer from comment #3)
> Ah, in that case I bet your system nevertheless has the isl package
> installed (which would be consistent with your original note of "I
> could not reproduce it in poudriere, so the cause is probably some
> locally installed package).

Yes. So that really is an include directory order problem?
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-01-11 04:56:32 UTC
A commit references this bug:

Author: gerald
Date: Mon Jan 11 04:56:09 UTC 2016
New revision: 405763
URL: https://svnweb.freebsd.org/changeset/ports/405763

Log:
  Update to the 20160110 development snapshot of GCC 6.

  This addresses a build failure with option GRAPHITE set or when the
  devel/isl port is present [1] via a patch I contributed upstream
  since the previous snapshot.

  PR:		206075 [1]

Changes:
  head/lang/gcc6-devel/Makefile
  head/lang/gcc6-devel/distinfo
Comment 6 Gerald Pfeifer freebsd_committer freebsd_triage 2016-01-11 04:59:08 UTC
(In reply to Dmitry Marakasov from comment #4)
> Yes. So that really is an include directory order problem?

Not a directory order problem, but a directory consideration problem.

This should be fixed upstream now and with the update I just committed
to the lang/gcc6-devel ports also there.