Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2015 21:43:56 +0100
From:      Thierry Thomas <thierry@FreeBSD.org>
To:        Gerald Pfeifer <gerald@pfeifer.com>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r378602 - head/cad/kicad
Message-ID:  <20150208204356.GF72400@graf.pompo.net>
In-Reply-To: <alpine.LSU.2.11.1502081806160.2504@tuna.site>
References:  <201502071607.t17G7XGK069391@svn.freebsd.org> <alpine.LSU.2.11.1502081806160.2504@tuna.site>

next in thread | previous in thread | raw e-mail | index | archive | help
Le dim  8 fév 15 à 18:24:57 +0100, Gerald Pfeifer <gerald@pfeifer.com>
 écrivait :

> > Log:
> >   Since Gcc is 4.8 by default, Kicad does not build anymore: e.g. see
> >   http://beefy2.isc.freebsd.org/data/10amd64-default/2015-01-08_21h32m30s/logs/kicad-20140622.2.b4027_1,1.log
> >   
> >   Add an ugly hack to make it build with Gcc 4.7.
> >
> > Modified: head/cad/kicad/Makefile
> > ==============================================================================
> > -# Boost templates and compiler and library support for the ISO C++ 2011 standard from include/wx-3.0
> > -USES+=		compiler:gcc-c++11-lib
> > +
> > +# Does not compile with Gcc48
> > +GCC_DEFAULT=	4.7
> > +USE_GCC=	${GCC_DEFAULT}
> > +#USES+=		compiler:gcc-c++11-lib
> 
> Ugh, this is really a hack.
> 
> Why not just USE_GCC=4.7 instead of overriden GCC_DEFAULT?  GCC_DEFAULT
> is not used anywhere in this port, is it?

I tried without that, and Gcc-4.8 was used. Maybe am I missing
something?

> Have you looked into fixing the port itself or building with clang
> -or- building with GCC and using its libstdc++?  This combination 
> currently used here strikes me as fragile.

Of course, this would be the best solution, but unfortunately I have not
yet understood why we get a different behaviour with Gcc-4.7 and
Gcc-4.8! This hack is just a work-around, because several users asked
for a package of this port.
-- 
Th. Thomas.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150208204356.GF72400>