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

[Bug]: Can't build on macOS: 'linux/futex.h' file not found #1659

Open
e-n-0 opened this issue Apr 21, 2024 · 0 comments
Open

[Bug]: Can't build on macOS: 'linux/futex.h' file not found #1659

e-n-0 opened this issue Apr 21, 2024 · 0 comments

Comments

@e-n-0
Copy link

e-n-0 commented Apr 21, 2024

Describe the issue

The project fails to compile with abseil installed on my iOS project (that is a direct dependency of Protobuf-C++)
The build fail with the error:
spinlock_linux.inc:17:10 'linux/futex.h' file not found

I also tried to install abseil directly through the pod but that's the same issue.

Steps to reproduce the problem

What version of Abseil are you using?

tested on both:

  • 1.20240116.1
  • 1.20240116.2

What operating system and version are you using?

macOS x64 (Ventura 13.6.5)

What compiler and version are you using?

Apple clang version 15.0.0 (clang-1500.0.40.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

What build system are you using?

I'm building through XCode.
C++17 is also used in the project settings.

Additional context

Podfile:

platform :ios, '12.4'

target 'MyProject' do
	use_frameworks! :linkage => :static
	pod 'Protobuf-C++', :git => 'https://github.com/takeh1k0/protobuf.git', :branch => 'feature/fix-protobuf-c++-podspec'
end

image

@e-n-0 e-n-0 changed the title [Bug]: Can't build on macOS: 'linux/futex.h' file not found` [Bug]: Can't build on macOS: 'linux/futex.h' file not found Apr 21, 2024
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