delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/05/20/15:12:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=dgN
CBSQ6h9QgVWXirTDGq6Ff150FFKu7Gb/jHPljDmepgqEcEZgjRMUNVVRknhOzxqo
7A25GWboc9rkT1kB62Bg8L6aBkUpvY0ueLWNK6UZT9QUJuZRk7LYnIlYwqfPb//c
EBT6IEfAonuMAigrJSDYl5ZKEm1ccdS3KZAO5+V4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=vsb8z/U2E
j3DRZFBFvHv9thFD90=; b=eTy6EEuD0hnJNiEKHE0qUIUUXJq4CbPMs3UumCL3L
Vtup7qUPF7fv9jZn414XcP6D+1vz1LDmgwaiRhsgaupm/byM/HAR/wBwYFKD5+Eo
auI6EhSgmliAl4QanB27RMMEXTH1fGvehiguk36v63ojSlko7iP5b2WxJIa7syrH
gg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=opened, ticket, answers, H*c:alternative
X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z/nDWMtLzQUnU7dsFL6NOEVi3nXFkkccj4T6ceLd/zE=; b=Bno7bkbSZcjDsciRvLzx3dnsVEE2h1pRSCffGaduJXZ2kAMC2tFyCHdDvjvuo9/3ADfzA0mQbncj+mayEFnozUW5jJRnqjf1MQvBTLMQf4Bq6Lu0O9eviPUzXkRsp5UB9Y9y0v621e3CLsi51mf76R2p8k+29bl9vSaEd47dPphccZB2c37bYWlQlc0opmJzM+8gD1X6Kgtxjv2DcdBaj9T8hYPVc8OJyUp7JdOLpDC+6BJfLo/v0K+HWcS/I8u9UNt6BPg7BI083NDS7pNOCCn8idtfksyZpEEaYp5kIMaGgEtpuU3rOG/z2lfTWJhxInuQzLXPGvp0s9xdOAwDiQ==
From: Jose Isaias Cabrera <jicman AT outlook DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: The adventure of building Bedrock in Cygwin: any help would be appreciated
Date: Mon, 20 May 2019 19:12:11 +0000
Message-ID: <DB7PR01MB5386A14A1CF3564C8AB1A2EBDE060@DB7PR01MB5386.eurprd01.prod.exchangelabs.com>
x-ms-exchange-purlcount: 1
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x4KJCP4h023373

Greetings.

After a few weeks trying to build Bedrock with gcc-6, I abandoned that idea and now I want to do it with the default cygwin compilers (gcc & g++ 7.4.0).

The first problem I encountered was,

libstuff/libstuff.h:7:10: fatal error: execinfo.h: No such file or directory

and this one I have commented out, which may be a mistake, but I don't care about back trace.  After that, I tried it again, and now I have a new problem:

$ CC=gcc GXX=g++ make
g++ -g -std=c++14 -fpic -O2 -Wall -Werror -Wformat-security -DGIT_REVISION=f6d58b9 -I/home/e608313/builds/Bedrock -I/home/e608313/builds/Bedrock/mbedtls/include -MMD -MF libstuff/libstuff.d -MT libstuff/libstuff.h.gch -c libstuff/libstuff.h
libstuff/libstuff.h: In function ‘bool SIEquals(const string&, const string&)’:
libstuff/libstuff.h:485:70: error: ‘strcasecmp’ was not declared in this scope
 inline bool SIEquals(const string& lhs, const string& rhs) { return !strcasecmp(lhs.c_str(), rhs.c_str()); }
                                                                      ^~~~~~~~~~
libstuff/libstuff.h:485:70: note: suggested alternative: ‘strncmp’
 inline bool SIEquals(const string& lhs, const string& rhs) { return !strcasecmp(lhs.c_str(), rhs.c_str()); }
                                                                      ^~~~~~~~~~
                                                                      strncmp
In file included from libstuff/libstuff.h:870:0:
libstuff/SRandom.h: At global scope:
libstuff/SRandom.h:7:27: error: ‘uint’ has not been declared
     static string randStr(uint& length);
                           ^~~~
make: *** No rule to make target 'libstuff/libstuff.d', needed by '.build/libstuff/libstuff.d'.  Stop.

There is no configure script on the source directory, so according to Bedrock [1] this is all I need to build it:


# Clone out this repo:
git clone https://github.com/Expensify/Bedrock.git

# Install some dependencies
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 g++-6 libpcre++-dev zlib1g-dev

# Build it
cd Bedrock
make

I have downloaded libpcre-devel v8.43-1 and zlib-devel 1.2.11-1 as well as zlib0 same version. I have opened a git ticket on the Bedrock site and I am waiting for some answers, but I am pretty sure that some of you may know what do to with this. : -) Thanks.

josé

[1] https://bedrockdb.com/#how-to-get-it
Bedrock by Expensify - Bedrock – Rock-solid distributed data<https://bedrockdb.com/#how-to-get-it>
Bedrock – Rock-solid distributed data. Bedrock is a simple, modular, WAN-replicated, Blockchain-based data foundation for global-scale applications.
bedrockdb.com


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019