-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ncurses-5.9-r101 fails #183
Comments
I just rebuilt it here without issues -- did you do a full system rebuild before trying it the first time? |
I did. I can keep reproducing the issue, by |
Seems related to this? #66 and the setting of |
That workaround is necessary for both ncurses 5 and 6. However, in your case, it seems to only be applying sometimes. Can you attach this file from your failed build?
|
If you modify the line in your
does this help? |
OK -- I actually managed to reproduce this on my system. Investigating. |
Alright, I have it narrowed down. It looks like on the first build, it's working directory is Removing the |
It's something to do with crossdev for sure. |
Interesting: after forcing the test to pass, it goes ahead with doing the correct configure using |
Ahh, found relevant lines from the ebuild:
|
Alright, so this actually affects both versions of ncurses. Removing |
The workaround doesn’t seem to work:
Build log → https://gist.github.com/2380707a5060a38cb02d69baa383719d |
We definitely have to figure out how to split the configure options and the build options. Who knows how many errors are silently reported as |
@pchome fwiw most packages will fail to configure if a test for an option specified on the configure command line doesn't pass. So any fails for other optional tests are probably for dependencies not specified in the ebuild and so should be disabled in that case anyway! ;-) |
@sjnewbury @pchome is right though, because sometimes configure scripts will enable certain optimization settings or customization settings based on these tests. We actually have an open issue #171 where a situation like this is happening. I'm unsure how exactly to "trick" the configure scripts into ignoring the extended CFLAGS for tests like these. Manually patching them is an option if it's not a frequent problem. |
Maybe it should be something similar to https://github.com/vaeth/portage-bashrc-mv/blob/master/bashrc.d/50-ccache.sh |
Ncurses 6.1 compiles fine, but 5.9 does not.
build.log
emerge --info
With
*FLAGS-=-flto*
it works.Curious fact is that after I build it without LTO, I can get rid of the
*FLAGS-=-flto*
and rebuild and it compiles fine, with LTO enabled.The text was updated successfully, but these errors were encountered: