Skip to content

Conversation

@jsquyres
Copy link
Contributor

@jsquyres jsquyres commented May 3, 2019

I cloned this repo for the first time today and ran into a few problems building on MacOS Mojave 10.14.

Here's a small number of standalone fixes to the build_helper.sh script.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label May 3, 2019
@jsquyres
Copy link
Contributor Author

jsquyres commented May 3, 2019

I'm not quite sure how to interpret the Travis CI failure -- the raw log shows that it does not invoke the build_helper.sh script, and that's the only file that this PR changed. 🤷‍♂

@siyengar
Copy link

siyengar commented May 4, 2019

Thanks @jsquyres well take a look at this by Monday. Don’t worry about the Travis build for now. There’s some issues with the docker script with some dependencies which were working on

@siyengar
Copy link

siyengar commented May 4, 2019

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@udippant has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@jsquyres
Copy link
Contributor Author

jsquyres commented May 4, 2019

Thanks! I just noted on #4 that if I rebase this branch on top of current HEAD (ad12bcc), everything builds properly on MacOS Mojave. Sweet!

I didn't push the rebase here to this PR because it would probably make it a little more difficult to track since you already imported these commits internally. There were no conflicts on the rebase, so the net effect is trivial, anyway.

@jsquyres
Copy link
Contributor Author

jsquyres commented May 7, 2019

I see that you guys imported these commits internally -- do you know when they will show up here on the open source / github.com side? (I can rebase, if it would help)

Thanks!

@udippant
Copy link
Contributor

udippant commented May 7, 2019

Thank you @jsquyres for the patch, and sorry for the delay. We were changing few things in the way we consume some of these dependencies and wanted to clear those changes first.

I have some suggestions on the script mostly to make the script simpler.

@jsquyres
Copy link
Contributor Author

jsquyres commented May 7, 2019

@udippant No worries on the delay; many thanks for your comments / suggestions. I had a few comments / questions back to you...

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@udippant has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

jsquyres added 4 commits May 8, 2019 14:12
The help message and README.md referred to a "-i" option for
build_helper, but it wasn't there.  This commit trivially adds it.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
MacOS does not have `nproc`.  So try searching for `nproc`, and if
it's not found, try looking for `sysctl`.  If neither are found,
default to 4.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
Accurately describe when Folly is successfully installed.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
MacOS Homebrew installs OpenSSL into a non-default location in order
to not unintentionally override the MacOS OpenSSL.  So if we see the
Homebrew directory, set it into OPENSSL_ROOT_DIR so that cmake will
find it.

Signed-off-by: Jeff Squyres <jeff@squyres.com>
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@udippant has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@jsquyres jsquyres deleted the pr/fix-build-helper-dash-i branch May 8, 2019 21:38
@facebook-github-bot
Copy link
Contributor

@udippant merged this pull request in ad3d7d7.

facebook-github-bot pushed a commit that referenced this pull request Dec 10, 2019
Summary:
This should fix the Travis CI builds. It adds rust toolchain support inside docker and sets the required THRIFT env variable.
Pull Request resolved: facebookexperimental/rust-shed#3

Reviewed By: krallin

Differential Revision: D18905608

Pulled By: lukaspiatkowski

fbshipit-source-id: 5db1eff6f215a6617d8acaa0c99a62d45225956b
@z6833 z6833 mentioned this pull request Dec 20, 2019
facebook-github-bot pushed a commit that referenced this pull request Apr 26, 2021
Summary:
As per design, we are not supposed to honor duplicate byte event registrations. Duplicate is defined by a registration for the same <stream ID, stream offset, callback*> tuple twice.
Currently, there is a bug where-in we can register the same byte event a second time *if* there is another byte event for a higher offset that is registered in-between, for the same stream.
Example Sequence that triggers the bug:
1. Registration for Stream ID =10, offset = 50, callback = A. This will be successful.
2. Registration for Stream ID = 10, offset = 55, callback = <doesn't matter>. This will be successful.
3. Registration for Stream ID = 10, offset = 50, callback = A. This is a duplicate of #1. This *should not* be honored, but it was being honored (this was the bug).

This commit fixes the bug, #3 will return INVALID_OPERATION.

Reviewed By: bschlinker, lnicco

Differential Revision: D27946237

fbshipit-source-id: f9751ac90159284f86a285e5e0ebb23b83041d2a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants