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

fix fizz build on arm64 #94

Closed
wants to merge 2 commits into from
Closed

Conversation

ahornby
Copy link
Contributor

@ahornby ahornby commented Jul 21, 2023

fix fizz build on arm64

Summary:

Build was broken on arm64 ubuntu 22.04 due to unconditional use of aes/sse3 code

Used the same cmake logic as folly does to conditionally include the files on x86_64 only

Test Plan:

Local build with:
./build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. fizz

Before, broken:

cc: error: unrecognized command-line option ‘-maes’
cc: error: unrecognized command-line option ‘-mssse3’

After, works


Stack created with Sapling. Best reviewed with ReviewStack.

ahornby added 2 commits July 26, 2023 19:54
SlidingBloomReplayCacheTest.cpp test was flaky,  looks like the expiry
can happen at exactly 1 second, moving to 1001 milliseconds fixed it.

Updated associated comments to remove the time periods as was
duplicative of the chrono call just below the comments

Test Plan:

Run locally

```
 ./build/fbcode_builder/getdeps.py build --src-dir=. fizz
 ./build/fbcode_builder/getdeps.py test --src-dir=. fizz
```

before, fails with:
```
[==========] 5 tests from 1 test suite ran. (1115 ms total)
[  PASSED  ] 4 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] SlidingBloomReplayCacheTest.TestTimeBucketing

 1 FAILED TEST
```

after, passes with:
```
100% tests passed, 0 tests failed out of 68

Total Test time (real) =   1.07 sec

```
Summary:

Build was broken on arm64 ubuntu 22.04 due to unconditional use of aes/sse3 code

Used the same cmake logic as folly does to conditionally include the files on x86_64 only

Test Plan:

Local build with:
./build/fbcode_builder/getdeps.py --allow-system-packages build --src-dir=. fizz

Before, broken:
```
cc: error: unrecognized command-line option ‘-maes’
cc: error: unrecognized command-line option ‘-mssse3’
```

After,  works
@ahornby
Copy link
Contributor Author

ahornby commented Sep 10, 2023

alternative fix was merged in a5f718a

@ahornby ahornby closed this Sep 10, 2023
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