facebook / facebook/folly

error: static assertion failed: Big endian requires a redesigned table

Open
#1,834 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

Another error on 10.6.8 Rosetta with `gcc12`:
```
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_folly/folly/work/folly-v2022.08.01.00/folly/detail/base64_detail/Base64SWAR.cpp: In function 'uint32_t folly::detail::base64_detail::{anonymous}::base64DecodeSWARMainLoop(const char*&, const char*, char*&)':
/opt/local/var/macports/build/_opt_PPCRosettaPorts_devel_folly/folly/work/folly-v2022.08.01.00/folly/detail/base64_detail/Base64SWAR.cpp:101:14: error: static assertion failed: Big endian requires a redesigned table
101 | folly::kIsLittleEndian, "Big endian requires a redesigned table");
| ~~~~~~~^~~~~~~~~~~~~~~
```

Contributor guide

Open the contributing guide

Research direction

Start with folly/detail/base64_detail/Base64SWAR.cpp at line 101 and reproduce the reported gcc12 build on 10.6.8 Rosetta. Trace the big-endian assertion and the surrounding decode table; done means the library builds successfully on the reported big-endian target without that assertion failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.