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

macOS: error: use of undeclared identifier 'CLONE_NOOWNERCOPY' #688

Closed
ryandesign opened this issue Oct 20, 2020 · 2 comments · Fixed by #694
Closed

macOS: error: use of undeclared identifier 'CLONE_NOOWNERCOPY' #688

ryandesign opened this issue Oct 20, 2020 · 2 comments · Fixed by #694
Labels
bug Does not work as intended/documented build Affects building of Ccache itself portability Affects portability of building or using Ccache
Milestone

Comments

@ryandesign
Copy link

ryandesign commented Oct 20, 2020

Hi, I'm the maintainer of ccache in MacPorts. After updating to 4.0 it became apparent that it doesn't build anymore on some older macOS versions like 10.12 for various reasons. 4.0 does build on 10.13 and up. 3.7.12 and earlier built fine on older macOS versions down to 10.6 or maybe even earlier.

How to reproduce

  1. Compile ccache 4.0 on macOS 10.12

Actual behavior

https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/129053/steps/install-port/logs/stdio

src/Util.cpp:259:44: error: use of undeclared identifier 'CLONE_NOOWNERCOPY'
  if (clonefile(src.c_str(), dest.c_str(), CLONE_NOOWNERCOPY) != 0) {
                                           ^

Expected behavior

successful compile

Environment

ccache version 4.0

macOS Sierra v10.12.6 (16G2136)
Xcode v9.2 (9C40b)
Apple LLVM version 9.0.0 (clang-900.0.39.2)

@ryandesign ryandesign added the bug Does not work as intended/documented label Oct 20, 2020
@jrosdahl jrosdahl added the build Affects building of Ccache itself label Oct 20, 2020
@jrosdahl jrosdahl changed the title error: use of undeclared identifier 'CLONE_NOOWNERCOPY' macOS: error: use of undeclared identifier 'CLONE_NOOWNERCOPY' Oct 20, 2020
erijo added a commit to erijo/ccache that referenced this issue Oct 20, 2020
@erijo
Copy link
Contributor

erijo commented Oct 20, 2020

I pushed a potential fix for this to the same branch as my potential fix for #689.

@ryandesign
Copy link
Author

Thanks, the fix for this issue works. I haven't tested the other fixes yet.

erijo added a commit to erijo/ccache that referenced this issue Oct 21, 2020
@jrosdahl jrosdahl added this to the 4.0.1 milestone Oct 22, 2020
@jrosdahl jrosdahl added the portability Affects portability of building or using Ccache label Oct 22, 2020
@jrosdahl jrosdahl modified the milestones: 4.0.1, 4.1 Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Does not work as intended/documented build Affects building of Ccache itself portability Affects portability of building or using Ccache
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants