Skip to content

Changes for OS X support - #47

Closed
Dalzhim wants to merge 5 commits into
meta:masterfrom
Dalzhim:master
Closed

Dalzhim wants to merge 5 commits into
meta:masterfrom
Dalzhim:master

Conversation

@Dalzhim

@Dalzhim Dalzhim commented Apr 28, 2016

Copy link
Copy Markdown
Contributor

I have made a few changes in order to get Wangle to build on OS X. There were 4 different problems which I've fixed in 4 different commits. The commit messages should be self-explanatory. The c++14 requirement might not be the best option to solve the compilation issue depending on the project's objective. Maybe the methods that relied on return type deduction should just specify their return type explicitly so as to remain c++11 compatible. I leave that to discussion.

@elliottneilclark

Copy link
Copy Markdown
Contributor

#40 got merged which added the openssl headers path. Can you update the pull request?

@Dalzhim

Dalzhim commented Apr 30, 2016

Copy link
Copy Markdown
Contributor Author

The PR has been updated.

@elliottneilclark

Copy link
Copy Markdown
Contributor

@facebook-github-bot import

@ghost

ghost commented Apr 30, 2016

Copy link
Copy Markdown

Thanks for importing. If you are an FB employee go to Phabricator to review.

Comment thread wangle/CMakeLists.txt Outdated
cmake_minimum_required(VERSION 2.8)

set(CMAKE_CXX_FLAGS "-std=c++0x -fPIC")
set(CMAKE_CXX_FLAGS "-std=c++14 -fPIC")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does -std=c++1y work for you? That would keep from moving the minimum gcc to 4.9

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have updated my pull request according to your suggestion.

Comment thread wangle/CMakeLists.txt Outdated
${GLOG_LIBRARY_PATH}
${GFLAGS_LIBRARY_PATH}
-latomic)
$<$<NOT:$<CXX_COMPILER_ID:Clang>>:latomic>)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmake isn't my area, but it looks like on gcc this results in -llatomic

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, I've accidentally removed the hyphen while making this parameter absent with clang. I've updated the pull request with a fix.

@elliottneilclark

Copy link
Copy Markdown
Contributor

@facebook-github-bot shipit

@elliottneilclark

Copy link
Copy Markdown
Contributor

Thanks for the PR. The latest build and looks good to me.

@ghost

ghost commented May 16, 2016

Copy link
Copy Markdown

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in f8d07e7 May 16, 2016
meta-codesync Bot pushed a commit that referenced this pull request Jul 7, 2026
Summary:
The `llvm@20` pin that landed in meta/rebalancer#47 breaks Mac builds. Homebrew's folly bottles are compiled against LLVM 22's libc++; linking against LLVM 20 produces `ld: symbol(s) not found for architecture arm64` on libfolly.

The correct fix (which was developed but didn't make it into the meta/rebalancer#47 squash merge) is to:
1. Revert the `llvm@20` pin back to `brew install llvm` (LLVM 22) in `getdeps_mac.yml`, `before_all_macos.sh`, and `wheels.yml`
2. Remove `fmt` from `[homebrew]` in `manifests/fmt` so getdeps builds fmt 12.1.0 from source as a static library — no `-DFMT_SHARED`, so `fmt::format` stays header-inline and visible under LLVM 22's libc++

This matches Linux behavior (getdeps already builds fmt from source there).

X-link: meta/rebalancer#48

Reviewed By: yangneu2015

Differential Revision: D110918926

Pulled By: r-barnes

fbshipit-source-id: fd15b2f83f14bd8c6077a6ecf210eeebf106e459
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants