Probem compiling fbthrift in `make docker`

23 views
Skip to first unread message

Andy Konwinski

unread,
May 29, 2019, 7:24:23 PM5/29/19
to Lucida Users
Hey Jeremy,

I'm cloned your version of Lucida and I'm trying to use `make docker` on my macbook pro and working through the issues I run into -- see https://github.com/andyk/lucida/tree/fix-make-docker.

I had to swap out the JVM since Oracle changed their license so can't use Oracle Java 8 any more (they now require you to create and account and log in to accept their license).

Next I hit an issue with cmake and mstch, one of the dependencies of fbthrift.

We are using an old version of fbthrift (v2017.03.20.00) but and that has a dependency on https://github.com/no1msd/mstch but unfortunately fbthrift clones the master branch of mstch instead of a specific version and at some point mstch started requiring a newer version of cmake (3.0.2)than is installed on ubuntu 14.04 (2.8.12.2).

So instead of trying to install a newer version of cmake I tried updating the install script to clone an older version of mstch, just before they pushed that new cmake version requirement.

However, that's not working :( since now I'm getting the following error:

generate/t_mstch_py3_generator.cc: In member function 'virtual void {anonymous}::t_mstch_py3_generator::generate_program()':

generate/t_mstch_py3_generator.cc:377:10: error: 'mstch::config' has not been declared

   mstch::config::escape = [](const std::string& s) { return s; };

          ^

make[4]: *** [generate/t_mstch_py3_generator.o] Error 1


Before I change tactics and try updating cmake instead of using a old version of mstch, I wanted to ask you about how you're doing things:


1) Are you using Oracle Java on the dev machine you're using to build Lucida, or OpenJDK? You're using Java 8?


2) which version of cmake are you using?


3) Are you using Ubuntu 14.04?


4) Do you use, or have you ever tried using, docker for building, developing, and deploying?


Jeremy A Russell

unread,
Jun 21, 2019, 1:41:55 PM6/21/19
to Lucida Users
Hi Andy,

Yikes that sounds like exactly what I expected and is pretty much why I haven't tried getting the docker working again yet :D I knew it was going to be a ton of work. :p

With that out of the way though, I am totally willing to start working on the docker side again since you've shown some interest and have already started on the leg work.

I only have a bit of time for my response right now so I'll make a quick response and then get back to you later today with more detailed answers.

Re: everything before the specific numbered questions... See first sentence above.

Re: 
1. I'm not actually sure on that, I'll have to check my server and get back to you later. 
2. Same answer as 1. I'll check and let you know.
3. Yes I am still using that older version and want to get it working on the latest version fairly soon.
4. Yes for building, developing and deploying.

Jeremy A Russell

unread,
Jun 21, 2019, 1:46:59 PM6/21/19
to Lucida Users
PS. I noticed that you said you had cloned my fork of the repo but it appears as though you cloned the original from claritylab.

My fork does have various improvements and fixes that you're going to want to get in on so I would pull in my changes to your repo when you get a chance and see if that changes anything for you just by having some more updated code to use.


On Wednesday, May 29, 2019 at 4:24:23 PM UTC-7, Andy Konwinski wrote:

Jeremy A Russell

unread,
Jun 24, 2019, 8:09:20 AM6/24/19
to Lucida Users
Still haven't had time to dig deep into the specific things you ran into but here are those version numbers you asked for.

Running 'java -version' got me this...

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

Which should be the Oracle version, and since 9 is the new version that requires has new terms I'm pretty sure I'm still at 8 then.

and 'cmake --version' got me this...

cmake version 3.2.2




On Wednesday, May 29, 2019 at 4:24:23 PM UTC-7, Andy Konwinski wrote:

Andy Konwinski

unread,
Jun 24, 2019, 1:11:24 PM6/24/19
to Jeremy A Russell, Lucida Users
Thanks. I got everything working.

I also realized I'm not interested in most of the modules, including the one that interfaces with the MSFT bot service and the weather one.

--
You received this message because you are subscribed to the Google Groups "Lucida Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucida-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucida-users/efbf4d6c-3796-43a6-9c54-1f31145ae2f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages