Summary: | dev-libs/ppl-0.12.1-r1 with sci-mathematics/glpk-4.50 - ppl_lpsol.c:568:1: error: unknown type name ‘LPX’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeremy Murphy <jeremy.william.murphy> |
Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | beolach+gb, dschridde+gentoobugs, gentoo, jason.mours, kredba, robbat2, sci-mathematics, tetromino |
Priority: | Normal | ||
Version: | 10.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 446698 | ||
Bug Blocks: | |||
Attachments: |
build.log for failed compile.
build.log.JM |
Description
Jeremy Murphy
2013-06-15 05:24:06 UTC
Created attachment 350974 [details]
build.log for failed compile.
Build fails because it cannot find the symbols that were removed.
CC-ing glpk maintainers in case they can help with updating ppl. (By the way, why is the glpk ebuild using EAPI5 but not setting a subslot when libglpk soname version changes?) ppl can't be updated without breaking gcc. it needs to be installed into a new SLOT. Created attachment 351278 [details]
build.log.JM
Same problem here. I was able to pull some more out in the backtrace, looks like my unicode is from a different local. Hope this helps, real show stopper on my end.
For now you could make ppl depend on <=glpk-4.48, so that users don't run into this problem. Done. (In reply to Ryan Hill from comment #6) > Done. Hey Ryan, could you please remove the build glpk-4.48 build dependency for ppl -0.12.1-r1? glpk-4.50 is already a global mask, which I've unmasked for use in other builds. While I am anxious in ppl-0.x implementing working linear programming with glpk-4.50, I have extensive builds with benched lapack. As I just *KNOW* the ppl guys & gals are all about extending ppl's already capably functional linear programming extensions, I already went ahead with glpk-4.50 on my system. Your mask is redundant against the global mask and renders portage useless for me in certain circumstances. While dev-libs/ppl is not a fugazi library , */for that insane prune crazy management (*not* the gentoo way)/* , I am a patient boy. Rhetorical: Every find an amazing function in a *useless* program? gcc / glibc does all the time... I'd prefer the dependencies were accurate. If this is preventing you from installing 4.50 can't you temporarily disable the lpsol USE flag? (it'll be broken anyways). Or copy ppl-0.12-1-r1 into an overlay and remove the version from the dependency. (In reply to Ryan Hill from comment #8) > I'd prefer the dependencies were accurate. If this is preventing you from > installing 4.50 can't you temporarily disable the lpsol USE flag? (it'll be > broken anyways). Or copy ppl-0.12-1-r1 into an overlay and remove the > version from the dependency. Since when is glpk a dependency for anything? I already have 4.50 on my machine... and it is the first and only instance of glpk on my machine. ppl never needed it before? Now with it listed as a dependency @world is complaining. I can't even run haskell-updater (which is not compiling anything but dev-haskell) without it telling me to unmask and downgrade to glpk-4.48... although, I suppose I could tell it to use a different package manager.. BUT why do I need to? How was this issue NOT addressed by masking glpk-4.50 globally? I choose to keep 4.50 installed, and compile GHC over and over, until ppl addresses this issue and mends my graphite. I do not believe that glpk is,was, or should be listed as a dependency for ppl... am I that far off base here? For those who downgraded more power to you, in my opinion there will be errata in the other packages that have used 4.50 already, namely GHC. So again, why do I HAVE to downgrade or use it at all? I'll live with the error compiling ppl, which is a package that I have not compiled against glpk yet anyways... but I would like to be able to compile my @world up to ppl. (In reply to Jason Mours from comment #9) Jason, I think Ryan is perfectly correct about the dependencies. It sounds like you have accidentally enabled USE=lpsol for dev-libs/ppl when you don't really want/need it. You should check those USE flag settings and jump onto the forums or IRC if you can't get it to behave how you want. > Since when is glpk a dependency for anything? glpk is a dependency of ppl when the lpsol USE flag is enabled. This has always been the case. Nothing has changed here. Perhaps you never noticed because you had it installed already? > How was this issue NOT addressed by masking glpk-4.50 globally? Because eventually it will be unmasked? We have to keep old versions of ppl around indefinitely (different gcc versions require specific versions of ppl and we don't remove old gcc versions) and I'd really like it if they actually build. > I do not believe that glpk is,was, or should be listed as a dependency for > ppl... am I that far off base here? Well it'll error out during configure if glpk is not installed, so I would say yes. > So again, why do I HAVE to downgrade or use it at all? You don't. The whole point of having the lpsol USE flag is so people don't have to install glpk. Disable it and carry on. No I stand corrected. lspol is a use flag I have stated in package.use from over a month ago. I installed glpk after I saw 4.50 listed packages >10 days ago, and not from implementing the use flag, as it was cited [N] when I pulled it in. But I'm sure I'm wrong in this instance. I apologize Ryan. The new glpk-4.53 may allow for an easy fix; please see https://bugs.gentoo.org/show_bug.cgi?id=501320 for more info. (In reply to Erik Quaeghebeur from comment #13) > The new glpk-4.53 may allow for an easy fix; please see > https://bugs.gentoo.org/show_bug.cgi?id=501320 for more info. To be more explicit, there are now files lpx.h and lpx.c that one can add to any 4.48-compatible project to make it compile with 4.53+ glpk versions. Literally, from glpk-4.54/examples/oldapi: "The program module in this subdirectory contains an implementation of the old GLPK API as it was defined in GLPK 4.48. To compile an existing project using the old GLPK API you need to add to the project two files lpx.h and lpx.c. Please note that you may mix calls to old and new GLPK API routines in the same project (except calls to glp_create_prob and glp_delete_prob). The file lpxsamp.c is an example that illustrates using the old GLPK API routines." Would this allow for the block on glpk > 4.48 to be lifted, or is there something else in play? ppl-1.1 is in the tree now and i think that means everything shakes out OK (In reply to SpanKY from comment #15) > ppl-1.1 is in the tree now and i think that means everything shakes out OK I see that the new ppl-1.1 ebuild still requires <=glpk-4.48 -- is that restriction meant to be lifted now? (In reply to Jeremy Murphy from comment #16) should be fixed now, thanks http://sources.gentoo.org/dev-libs/ppl/ppl-1.1.ebuild?r1=1.1&r2=1.2 |