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

build fail when __LP64__ is not defined #73

Open
welbonwang opened this issue Jan 16, 2020 · 2 comments
Open

build fail when __LP64__ is not defined #73

welbonwang opened this issue Jan 16, 2020 · 2 comments

Comments

@welbonwang
Copy link

LP64 is not defined default when build for armv7. line 89 causes a error. It might be #ifdef __LP64__ instead of #if __LP64__

@swolchok
Copy link
Contributor

I am not able to reproduce this problem. Can you provide more details, such as: how exactly are you building? What is the exact compiler error output you are seeing?

@welbonwang
Copy link
Author

welbonwang commented Aug 24, 2021

reproduce command as following:

clang -D__KERNEL_ARM_ARCH__=7 -arch armv7 -isysroot /Applications/Xcode10.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -Wall -Wundef -Werror -c -o fishhook.o fishhook.c

and errors

fishhook.c:89:5: error: '__LP64__' is not defined, evaluates to 0 [-Werror,-Wundef]
#if __LP64__
    ^

I use Xcode 10.0.1

$ clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Applications/Xcode10.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

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