Folly MPMCQueue.h fail to build on Xcode 9

66 views
Skip to first unread message

Jose Rafael Castillo Huggins

unread,
Sep 20, 2017, 10:57:36 AM9/20/17
to Folly: the Facebook Open-source LibrarY

Hi, guys


I'm trying to use Wangle for RPC and finally succeeded in building folly and wangle but the instant I add any wangle include and simply try to compile I get the error below.


Folly and Wangle are version 2017.09.18.00 and as flags are concerned are defaults plus -std=c++17 -stdlib=libc++ or -std=c++14 -stdlib=libc++.


my wangle includes are


#include <wangle/bootstrap/ClientBootstrap.h>
#include <wangle/channel/AsyncSocketHandler.h>
#include <wangle/channel/EventBaseHandler.h>
#include <wangle/codec/LineBasedFrameDecoder.h>

#include <wangle/codec/StringCodec.h>

Tyvm for any help


/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:269:16: error: expected unqualified-id

Slot* slots;

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:275:58: error: expected expression

while (UNLIKELY(!trySeqlockReadSection(state, slots, cap, stride))) {

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:278:57: error: expected expression

maybeUpdateFromClosed(state, ticket, offset, slots, cap, stride);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:279:28: error: expected ',' or ']' in lambda capture list

if (LIKELY(slots[this->idx((ticket - offset), cap, stride)].mayEnqueue(

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:286:29: error: use of undeclared identifier 'head'

auto avail = std::max(head, offset) + cap;

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:299:53: error: expected expression

this->enqueueWithTicketBase(ticket-offset, slots, cap, stride,

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:305:16: error: expected unqualified-id

Slot* slots;

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:310:56: error: expected expression

while (UNLIKELY(!trySeqlockReadSection(state, slots, cap, stride))) {

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:315:55: error: expected expression

maybeUpdateFromClosed(state, ticket, offset, slots, cap, stride);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:316:53: error: expected expression

this->dequeueWithTicketBase(ticket-offset, slots, cap, stride, elem);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:352:55: error: expected expression

if (UNLIKELY(!trySeqlockReadSection(state, slots, cap, stride))) {

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:359:57: error: expected expression

maybeUpdateFromClosed(state, ticket, offset, slots, cap, stride);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:360:28: error: expected ',' or ']' in lambda capture list

if (LIKELY(slots[this->idx((ticket - offset), cap, stride)].mayEnqueue(

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:390:29: error: use of undeclared identifier 'head'

auto avail = std::max(head, offset) + cap;

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:418:55: error: expected expression

if (UNLIKELY(!trySeqlockReadSection(state, slots, cap, stride))) {

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:425:57: error: expected expression

maybeUpdateFromClosed(state, ticket, offset, slots, cap, stride);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:449:47: error: expected expression

if (trySeqlockReadSection(state, slots, cap, stride)) {

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:454:57: error: expected expression

maybeUpdateFromClosed(state, ticket, offset, slots, cap, stride);

^

/Users/junior/Desarrollo/PentaSoftAdvancedCommPlatform/Apple/include/folly/MPMCQueue.h:466:55: error: expected expression

if (UNLIKELY(!trySeqlockReadSection(state, slots, cap, stride))) {

^

Reply all
Reply to author
Forward
0 new messages