Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552714

Summary: sci-electronics/kicad-20130518: build fails with gcc-5.1
Product: Gentoo Linux Reporter: Jasen Borisov <tajjada>
Component: [OLD] GCC PortingAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED OBSOLETE    
Severity: normal CC: rhill, sci-electronics, xaviermiller, zoltan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: build.log xz-compressed
emerge --info output

Description Jasen Borisov 2015-06-21 08:53:36 UTC
Emerging sci-electronics/kicad-20130518 fails with many compiler errors when attempting to build with gcc-5.1.


Reproducible: Always




Build log and output of `emerge --info '=sci-electronics/kicad-20130518::gentoo'` attached to bug.


Output of: `emerge -pqv '=sci-electronics/kicad-20130518::gentoo'`:

[ebuild  N    ] sci-electronics/kicad-20130518  USE="-debug" LINGUAS="en -de -es -fr -hu -it -ja -pl -pt -ru -zh_CN"
Comment 1 Jasen Borisov 2015-06-21 08:56:23 UTC
Created attachment 405466 [details]
build.log xz-compressed
Comment 2 Jasen Borisov 2015-06-21 08:56:59 UTC
Created attachment 405468 [details]
emerge --info output
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2015-06-21 23:51:19 UTC
sci-electronics, this seems up your alley.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2015-07-07 02:46:21 UTC
This package is building against a bundled copy of boost and the error is coming from there.  I noticed we're already applying a patch to cmake to let it find the system copy but it looks like that isn't enough.

From http://www.kicad-pcb.org/display/DEV/Known+System+Related+Issues 

"There has previously been problems with internal bugs in boost, whereby at one point in time the developers decided to include download, patch and build of boost in the KiCad build framework. Many users have been reluctant to understand this fact. Once a build option to skip this download and build was added, such that you can save some initial build time and actually use the boost you already have installed on your system.

This downloading depends inside the KiCad installer framework is being slowly removed again, because it has been acknowledged that is is a bad idea, because it clutters the KiCad installer. Instead such things should be an external project. If you have boost 1.56+ this skipping seems fairly safe now a days. Use the option -DKICAD_SKIP_BOOST=ON when cmake'ing."

The version we have in portage doesn't support that option though.
Comment 5 Denis Dupeyron (RETIRED) gentoo-dev 2015-08-25 18:27:21 UTC
Upstream is preparing for a new release, the first one in more than two years. I will have to massively overhaul the ebuild at that point and will look into that and other things. I will probably not backport any fixes to the current ebuild since it's so old it will no longer make sense to use it.

That said, I'm very unlikely to fix any bug with a version of gcc that's not keyworded for any architecture, and especially ~amd64 since it's what my dev box uses. If you're using Kicad with an unkeyworded and/or masked version of gcc I'll be happy to take your patches though. And if you're a dev, feel free to commit your fixes directly.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2015-08-25 21:18:57 UTC
Considering the only reason it's not keyworded is to give you time to fix these bugs, I don't think that's a valid argument.

Fair enough though.
Comment 7 Zoltan Puskas 2015-11-01 21:47:43 UTC
New 4.0.0-rc1 for kicad has landed into the portage tree. See what gcc-5.1 says to that.
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2015-11-02 14:58:16 UTC
purged from portage