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

[libc][math] some math functions aren't being built in fullbuild mode #87088

Closed
nickdesaulniers opened this issue Mar 29, 2024 · 6 comments
Closed
Assignees
Labels

Comments

@nickdesaulniers
Copy link
Member

When doing a fullbuild, I noticed some math functions aren't being built into the resulting libc.a (such as atan2f #86137).

-- Skipping libc entrypoint libc.src.math.acos.
-- Skipping libc entrypoint libc.src.math.acosh.
-- Skipping libc entrypoint libc.src.math.asin.
-- Skipping libc entrypoint libc.src.math.asinh.
-- Skipping libc entrypoint libc.src.math.atan.
-- Skipping libc entrypoint libc.src.math.atan2.
-- Skipping libc entrypoint libc.src.math.atanh.
-- Skipping libc entrypoint libc.src.math.cosh.
-- Skipping libc entrypoint libc.src.math.erf.
-- Skipping libc entrypoint libc.src.math.pow.
-- Skipping libc entrypoint libc.src.math.sincos.
-- Skipping libc entrypoint libc.src.math.sinh.
-- Skipping libc entrypoint libc.src.math.tanh.
-- Skipping libc entrypoint libc.src.math.tgamma.
-- Skipping libc entrypoint libc.src.math.tgammaf.

were listed as being skipped (atan2f wasn't even in that list). I have libmpfr-dev installed (that shouldn't matter either way), but perhaps something else is going wrong with our dependencies, and only in fullbuild mode?

@llvmbot
Copy link
Collaborator

llvmbot commented Mar 29, 2024

@llvm/issue-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

When doing a fullbuild, I noticed some math functions aren't being built into the resulting libc.a (such as atan2f #86137).
-- Skipping libc entrypoint libc.src.math.acos.
-- Skipping libc entrypoint libc.src.math.acosh.
-- Skipping libc entrypoint libc.src.math.asin.
-- Skipping libc entrypoint libc.src.math.asinh.
-- Skipping libc entrypoint libc.src.math.atan.
-- Skipping libc entrypoint libc.src.math.atan2.
-- Skipping libc entrypoint libc.src.math.atanh.
-- Skipping libc entrypoint libc.src.math.cosh.
-- Skipping libc entrypoint libc.src.math.erf.
-- Skipping libc entrypoint libc.src.math.pow.
-- Skipping libc entrypoint libc.src.math.sincos.
-- Skipping libc entrypoint libc.src.math.sinh.
-- Skipping libc entrypoint libc.src.math.tanh.
-- Skipping libc entrypoint libc.src.math.tgamma.
-- Skipping libc entrypoint libc.src.math.tgammaf.

were listed as being skipped (atan2f wasn't even in that list). I have libmpfr-dev installed (that shouldn't matter either way), but perhaps something else is going wrong with our dependencies, and only in fullbuild mode?

@nickdesaulniers
Copy link
Member Author

ah, these aren't listed in the entrypoints file!

(once we re-add them, we still have an issue with atan2f though)

@nickdesaulniers
Copy link
Member Author

right, because some of these are currently gpu only.

@nickdesaulniers
Copy link
Member Author

nickdesaulniers commented Mar 29, 2024

We have libc/src/math/generic/{atan2f|atanf|atanhf}, and yet literally none of those exist for me in projects/libc/lib/libc.a.

$ llvm-nm ./projects/libc/lib/libc.a | grep atan
$

@lntue
Copy link
Contributor

lntue commented Mar 29, 2024

oh, for full build mode, I think we build libc and libm separately.

@nickdesaulniers
Copy link
Member Author

d'oh! That's it!

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

No branches or pull requests

3 participants