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 build errors in /deps/fmt/ #30

Closed
onderweg opened this issue Jun 2, 2022 · 2 comments
Closed

macOS build errors in /deps/fmt/ #30

onderweg opened this issue Jun 2, 2022 · 2 comments

Comments

@onderweg
Copy link

onderweg commented Jun 2, 2022

Hi, when building on macOS 12.4, arm64, with cmake --build . -j$(sysctl -n hw.logicalcpu)) build fails because of multiple build errors, originating in the fmt package.

Partial build output:

/my-repos/turbo/deps/fmt/src/os.cc:263:25: error: unknown type name 'error_code'; did you mean 'std::error_code'?
void file::dup2(int fd, error_code& ec) FMT_NOEXCEPT {
                        ^~~~~~~~~~
                        std::error_code
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/system_error:315:24: note: 'std::error_code' declared here
class _LIBCPP_TYPE_VIS error_code
                       ^
/my-repos/turbo/deps/fmt/src/os.cc:266:26: error: use of undeclared identifier 'error_code'; did you mean 'std::error_code'?
  if (result == -1) ec = error_code(errno);
                         ^
/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/system_error:315:24: note: 'std::error_code' declared here
class _LIBCPP_TYPE_VIS error_code
                       ^
2 errors generated.
make[2]: *** [deps/fmt/CMakeFiles/fmt.dir/src/os.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Any pointers to how to resolve this issue?

@magiblot
Copy link
Owner

magiblot commented Jun 2, 2022

Mhm... We can try to update the fmt dependency.

Run:

cd deps/fmt
git fetch
git checkout 8.1.1

And build again. If it still doesn't work, try:

cd deps/fmt
git fetch
git checkout master

Cheers.

@onderweg
Copy link
Author

onderweg commented Jun 2, 2022

Thanks! That fixed it 😀

magiblot added a commit that referenced this issue Jun 2, 2022
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