Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run program "jam" (in directory "/home/ubuntu/europa/src/PLASMA" #174

Open
adityai opened this issue May 1, 2016 · 10 comments
Open

Comments

@adityai
Copy link

adityai commented May 1, 2016

I am trying to build a Docker container for Europa. I am using CircleCI to compile the code. When the code compiles, I plan to make a Docker container or a VagrantBox for Europa.

I have forked this project to adityai/europa and I am compiling on CircleCI. The first build failed -https://circleci.com/gh/adityai/europa/1 with this error message on the build-cpp-unix ant task.

Error:
Cannot run program "jam" (in directory "/home/ubuntu/europa/src/PLASMA"

I will attempt to debug on my own, but if anyone has insights on how to resolve this issue, please share on this ticket.

@miatauro-NASA
Copy link
Contributor

The default build uses Perforce Jam for its build, so you'll have to install it as a part of the CircleCI build setup.

There's an experimental CMake build that will replace the jam/ant/make combination. Please feel free to give that a try.

@adityai
Copy link
Author

adityai commented May 2, 2016

Thank you. I was not able to figure out how to work with cmake. I created a circle.yml file to install jam and ran the build on circleci. I would like to add the circle.yml file to the primary nasa/europa repo when I get this all working.

https://circleci.com/gh/adityai/europa/5

The build failed. It looks like there are some errors related to missing header files (antlr3.h). I haven't done c++ for a while. I will continue troubleshooting, but please let me know if I missed something simple and important.

@miatauro-NASA
Copy link
Contributor

There are a couple of prerequisites that need to be installed for Europa to build, listed and linked to on the Building Europa wiki page (please let me know if anything on that page is especially out-of-date).

For the CMake build, there's a TravisCI .travis.yml file in the Europa root that should show you everything you need to do to build in CircleCI (or on the command-line, for that matter).

@adityai
Copy link
Author

adityai commented May 2, 2016

Almost there. The commands in the .travis.yml helped. All but the last 'coveralls --gcov-options' commands passed.

https://circleci.com/gh/adityai/europa/19

I do not know what coveralls does. I think it is doing a code coverage check. Can I just comment out this command?

@miatauro-NASA
Copy link
Contributor

Yes, it's just for coverage tracking.

@adityai
Copy link
Author

adityai commented May 2, 2016

Thank you. The cmake compilation passed, but the ant build task executed anyway and it failed. If I figure out a way to prevent the ant build task from running in circleci, can we consider the build as a pass?

https://circleci.com/gh/adityai/europa/20

@miatauro-NASA
Copy link
Contributor

The build, at least, looks successful, though its occurring as part of the "dependencies" part of your build recipe. The "test" part of the recipe seems to be doing the old ant/jam build for some reason, which is itself failing. I'll look into that. I can't see anything in your circle.yml that would cause that to happen.

@miatauro-NASA
Copy link
Contributor

Note that this seems to be related to #172.

@adityai
Copy link
Author

adityai commented May 19, 2016

The .travis.yml file shows specific steps for building the project and it is not doing anything with the build.xml. I used the same commands from the .travis.yml in my circle.yml file to perform the build. I am curious about the build.xml. It does not look like we absolutely must have that build.xml for compiling and packaging. Why not just execute the commands used in the .travis.yml file?

I deleted the build.xml in the forked repo and the build succeeded in both circleci and travis.
https://travis-ci.org/adityai/europa/builds/131318702
https://circleci.com/gh/adityai/europa/31

Please let me know your thoughts.

@theronic
Copy link

theronic commented Mar 4, 2018

@adityai did you manage to sort out all your build issues? I see build #38 failed. Is that the latest?

Great to see a Dockerfile for this, because I found it super hard to get all the dependencies right on my Mac :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants