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] Fatal error (missing entrypoints.txt) when building libc on Intel Mac #60910
Comments
For information, my mac is a 2019 Intel Macbook Pro, running macOS 13 Ventura. |
@llvm/issue-subscribers-libc |
@llvm/issue-subscribers-backend-x86 |
Hi, |
Hi @sivachandra thank you for your reply. As a separate attempt, I made a new directory First, I ran cmake -S llvm -B build.libc -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS='clang;libc' -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libc' -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo It worked well up to this step. Second, I ran cmake --build build.libc -- -j$(nproc) During the building of
Any ideas? |
The config is based on the ARM MacOS config, but with fenv and math functions disabled. This should unblock this bug: #60910 Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D145099
@aafulei I've landed a patch providing a basic config for MacOS on Intel, please tell me if you're still having trouble building. |
Thank you @michaelrj-google , will check later this week. |
Hi @sivachandra @michaelrj-google, there seem to be some new problems on The steps were the same as I did last time. First I ran cmake -S llvm -B build.libc -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS='clang;libc' -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libc' -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo Then I ran cmake --build build.libc -- -j$(nproc) and I got
Could you please take a look? |
To double check, I re-ran the above procedure #60910 (comment) on the latest HEAD of the cmake -S llvm -B build.libc.2 -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS='clang;libc' -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libc' -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build.libc.2 -- -j$(nproc) and still got the above errors. For reference, $ which clang++
/usr/bin/clang++
$ clang++ --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: x86_64-apple-darwin22.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin Posting the errors again --
|
The issue might be have libc in both enable runtimes and enable projects, try removing it from enable runtimes. |
Hi @michaelrj-google you're right. I confirm that with commit cc6de9f and the commands cmake -S llvm -B build.libc.3 -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS='clang;libc' -DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=RelWithDebInf
cmake --build build.libc.3 -- -j$(nproc) i.e. removing Thank you! |
I was trying to build the current
main
branch of thellvm-project
withOnly to get a fatal error
The related lines in
libc/CMakeLists.txt
areHowever in the
libc/config
there is only adarwin/arm
but nodarwin/x86_64
directory.As blind attempts,
entrypoints.txt
(2)headers.txt
fromdarwin/arm
todarwin
.entrypoints.txt
(2)headers.txt
fromlinux/x86_64
todarwin/x86_64
.But neither worked.
Could anyone please help?
The text was updated successfully, but these errors were encountered: