Skip to content

Version 1.21 does not compile for the iOS platform #1749

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

Closed
fat-fellow opened this issue Feb 24, 2025 · 2 comments
Closed

Version 1.21 does not compile for the iOS platform #1749

fat-fellow opened this issue Feb 24, 2025 · 2 comments
Labels

Comments

@fat-fellow
Copy link

# github.com/prometheus/client_golang/prometheus
In file included from process_collector_cgo_darwin.c:18:
/Applications/Xcode-16.2.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.2.sdk/usr/include/mach/mach_vm.h:1:2: error: mach_vm.h unsupported.
process_collector_cgo_darwin.c:66:17: error: call to undeclared function 'mach_vm_region'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Copy link

dosubot bot commented Feb 24, 2025

Hey @fat-fellow! I'm here to help you with any bugs or questions you have while waiting for a human maintainer. Just let me know how I can assist you. Dosu

The compilation issue for version 1.21 on the iOS platform is due to the use of mach_vm.h and the function mach_vm_region, which are not available or supported on iOS. These elements are specific to macOS and are not part of the iOS SDK, leading to undeclared function errors when compiling for iOS [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added the bug label Feb 24, 2025
@bwplotka
Copy link
Member

bwplotka commented Mar 4, 2025

Noted -- we need to exclude this during build, we might do it for 1.21.1 actually

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

2 participants