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

libfmt is a dependency of Folly #46

Closed
wants to merge 2 commits into from
Closed

libfmt is a dependency of Folly #46

wants to merge 2 commits into from

Conversation

keksipurkki
Copy link
Contributor

The build script mac-build.sh does not install libfmt even though it's a dependency of Folly, resulting in a broken build.

Fix: Add libfmt to the list of build dependencies.

Summary: Building Folly fails if libfmt (https://github.com/fmtlib/fmt) is not
available.
Summary:

Modify `mac-build.sh` to run `make` with -j$NCPU flag, where $NCPU is the number
of cores as reported by macOS.

The speed-up was measured to be x2 on Dual-Core Intel Core i5.
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.

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

@ngoyal
Copy link
Contributor

ngoyal commented Feb 10, 2020

Thanks for doing this! It looks like #47 is a subset of this PR, so we can probably close that one if this one works out.

@facebook-github-bot
Copy link
Contributor

@ngoyal merged this pull request in 967c3b8.

facebook-github-bot pushed a commit that referenced this pull request Nov 18, 2020
Summary:
This test fails on i686 and armv7hl:
```
54/66 Test #46: TypesTest ............................Child aborted***Exception:   0.19 sec
[==========] Running 5 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 5 tests from TestTypes
[ RUN      ] TestTypes.WriteAndRead24BitsNormal
[       OK ] TestTypes.WriteAndRead24BitsNormal (0 ms)
[ RUN      ] TestTypes.Write24BitsOverflow
[       OK ] TestTypes.Write24BitsOverflow (0 ms)
[ RUN      ] TestTypes.Write24BitsBuffer
[       OK ] TestTypes.Write24BitsBuffer (0 ms)
[ RUN      ] TestTypes.Write24BitsBufferOverflow
F1116 16:18:08.078014    67 IOBuf.h:678] Check failed: amount <= tailroom() (4294967295 vs. 4)
*** Check failure stack trace: ***
*** Aborted at 1605572288 (Unix time, try 'date -d 1605572288') ***
*** Signal 6 (SIGABRT) (0x43) received by PID 67 (pthread TID 0xf4e43b80) (linux TID 67) (maybe from PID 67, UID 0) (code: -6), stack trace: ***
(error retrieving stack trace)
```

Rewrite the test to use a buffer just large enough to hold 24 bits.

Reviewed By: knekritz

Differential Revision: D25010436

fbshipit-source-id: 551d87b59674767fa189f464efbf0b5dc16ae1ff
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.

None yet

3 participants