both matplotlib-0.91.2 and 0.98 both fail to build with error of src/_wxagg.cpp:144: error: expected initializer before '*' token error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 Reproducible: Always Steps to Reproduce: 1.emerge matplotlib 2. 3. Actual Results: both matplotlib-0.91.2 and 0.98 both fail to build with error of src/_wxagg.cpp:144: error: expected initializer before '*' token error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 Expected Results: builds correctly
- please attach error output, external links may be down or not reachable for other reasons.
Created attachment 158955 [details] emerge log
setting wxagg= False in setup.cfg solves the compile issue, which might be obvious from the error.
Hi, It works fine here. Could you tell which USE flags are enbicabled for matplotlib, and could you try with wxpython-2.8* Thanks
> both matplotlib-0.91.2 and 0.98 both fail to build with error of > > src/_wxagg.cpp:144: error: expected initializer before '*' token > error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 No news for more than 6 weeks. Is it reproducible with matplotlib-0.91.4 or matplotlib-0.98.3? Thanks
I had a very similar problem, and it could be solved just by re-emerging wxpython. Unfortunately I've got no clue on the initial problem. HTH, Philippe.
> I had a very similar problem, and it could be solved just by re-emerging > wxpython. Unfortunately I've got no clue on the initial problem. > > HTH, > Philippe. > The problem is wxwidgets has multislot install. For eg. on my system there is 2.6 and 2.8 I was getting the same error as OP. Looking around I found that compiler was not able to find proper wx headers. eselect wxwidgets told me that no version was selected. I selected latest version as default, remerged matplotlib 0.98.3 and build was smooth. I did not have to remerge wxpython. Catch: I don't know if eselecting a default wxwidget install will have side effects on other packages. This info needs to be propagated to package maintainers of matplotlib, and may be wxpython and wxwidgets, if not already done
(In reply to comment #7) > The problem is wxwidgets has multislot install. I forced wxpython:2.8 in the matplotlib ebuilds. I tried with multiple wxwidgets/wxpython installed and it worked. I'm closing this one now, re-open if you still encounter problems. Thanks all.
Not sure if it is proper to reopen this bug. I have tested matplotlib against wxpython:2.9. May be it's time to revert this hack?
Please reopen if this problem still exists with version 1.4