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

error: unknown type name 'uintptr_t'; release 5.8 on arch linux #6847

Open
soloturn opened this issue May 12, 2023 · 2 comments
Open

error: unknown type name 'uintptr_t'; release 5.8 on arch linux #6847

soloturn opened this issue May 12, 2023 · 2 comments

Comments

@soloturn
Copy link

on arch linux 5.8 release gets the following error:

lvm/lib/Support/Signals.cpp
In file included from /src/swift-language-3/src/llvm-project/llvm/lib/Support/Signals.cpp:14:
/swift-language-3/src/llvm-project/llvm/include/llvm/Support/Signals.h:119:24: error: unknown type name 'uintptr_t'; did you mean '__intptr_t'?
  void CleanupOnSignal(uintptr_t Context);
                       ^~~~~~~~~
                       __intptr_t
/usr/include/bits/types.h:207:25: note: '__intptr_t' declared here
__STD_TYPE __SWORD_TYPE __intptr_t;
                        ^
In file included from /src/swift-language-3/src/llvm-project/llvm/lib/Support/Signals.cpp:256:
/src/swift-language-3/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:348:11: error: out-of-line definition of 'CleanupOnSignal' does not match any declaration in namespace 'llvm::sys'
void sys::CleanupOnSignal(uintptr_t Context) {
          ^~~~~~~~~~~~~~~
2 errors generated.
[167/4656][  3%][92.576s] Building C object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_portable.c.o
ninja: build stopped: subcommand failed.
ERROR: command terminated with a non-zero exit status 1, aborting

@soloturn
Copy link
Author

i saw a patch from @tachoknight with a patch for 5.8 on fedora:
https://github.com/tachoknight/swift-lang-packaging-fedora/blob/5.8/uintptr.patch

@soloturn
Copy link
Author

the commit upstream is:
llvm@ff1681d

how can one trigger that the llvm automerger takes it? @gottesmm ?

archlinux-github pushed a commit to archlinux/aur that referenced this issue May 20, 2023
bring commit:
llvm/llvm-project@ff1681d
from llvm-project upstream.

ticket in apple/llvm-project:
apple/llvm-project#6847
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

1 participant