public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jose Isaias Cabrera <jicman@outlook.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: The adventure of building Bedrock in Cygwin: any help would be appreciated
Date: Mon, 20 May 2019 19:12:00 -0000	[thread overview]
Message-ID: <DB7PR01MB5386A14A1CF3564C8AB1A2EBDE060@DB7PR01MB5386.eurprd01.prod.exchangelabs.com> (raw)


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

             reply	other threads:[~2019-05-20 19:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-20 19:12 Jose Isaias Cabrera [this message]
2019-05-20 20:23 ` Hans-Bernhard Bröker
2019-05-21 12:51   ` Jose Isaias Cabrera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB7PR01MB5386A14A1CF3564C8AB1A2EBDE060@DB7PR01MB5386.eurprd01.prod.exchangelabs.com \
    --to=jicman@outlook.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).