Skip to content
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

dev-libs/gmp fails to detect double format #171

Open
sjnewbury opened this issue Nov 4, 2018 · 3 comments
Open

dev-libs/gmp fails to detect double format #171

sjnewbury opened this issue Nov 4, 2018 · 3 comments

Comments

@sjnewbury
Copy link

During configure gmp detects the format of various data types to enable optimal conversions. When LTO is enabled it detects double type "unknown" and issues a warning about resulting slow performance.

It otherwise builds correctly, so this could have been easily missed. The detection code needs to be improved to cover the LTO case or LTO needs to be disabled to have a performant libgmp.

@sjnewbury sjnewbury changed the title dev-libs/gimp fails to detect double format dev-libs/gmp fails to detect double format Nov 4, 2018
@InBetweenNames
Copy link
Owner

Oh wow, looking at this right now. They are basically scanning the produced .o files to determine the floating point format.

@InBetweenNames
Copy link
Owner

There are a few other problems in the configure script as well, although stripping CFLAGS from that test in particular seems to fix it. Notably, it does preserve the GCC target machine option.

@InBetweenNames
Copy link
Owner

Interesting link: https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Cache-Files.html

I'm wondering if it might be possible to use this or something like it to "force" the test to resolve a normal way, for configure scripts in general. There was another issue on here somewhat related to this, but I'm having trouble finding it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants