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

Building on arm systems, specifically Android in linux proot environment. #292

Open
jonjitsu opened this issue Nov 19, 2017 · 2 comments
Open

Comments

@jonjitsu
Copy link

I am trying to build this on an Android device within a linux proot environment https://github.com/corbinlc/GNURootDebian

I tried building according to the instructions in the readme, i.e.:

$ wget https://github.com/layus/mozart2/releases/download/v2.0.0-beta.0/mozart2-2.0.0-beta.0-Source.zip
$ unzip mozart2-2.0.0-beta.0-Source.zip
$ cd mozart2-2.0.0-beta.0-Source/
$ cmake .
$ make

It gets to about 25%(stage1) and fails with "Bus error". If I run the created boosthost/emulator/ozemulator alone it gives me "Bus error".

I have tried on two arm based android devices (armv81 & armv71).

I am using openjdk-8, gcc 4.9.2 and boost 1.55.

I realise I am trying to do something which is probably not supported. I'm looking for ideas on how to make this work. Should I try a specific version of java or gcc?

If I get it working I can post working instructions.

@layus
Copy link
Member

layus commented Nov 20, 2017

Hi jonjitsu,

This kind of error seems linked to the huge amount of RAM required in some steps of the build. But I can be any other kind of issue sadly.
Could you try to get the exact command that is failing ? make -j1 VERBOSE=1 should do if I remember correctly.

That being said, a Bus error looks quite certainly related to an incompatibility with proot, according to other issue reports on the web.

@jonjitsu
Copy link
Author

Thanks for the response. It is failing on this step:

cd /usr/local/src/mozart2-2.0.0-beta.0-Source/lib && ../boosthost/emulator/ozemulator --home /usr/local/src/mozart2-2.0.0-beta.0-Source/lib/.. --base /usr/local/src/mozart2-2.0.0-beta.0-Source/lib/stage0/Base.ozf --init /usr/local/src/mozart2-2.0.0-beta.0-Source/lib/stage0/Init.ozf --search-load cache=/usr/local/src/mozart2-2.0.0-beta.0-Source/lib/stage0 x-oz://system/Compile.ozf -c /usr/local/src/mozart2-2.0.0-beta.0-Source/lib/main/base/Base.oz -o /usr/local/src/mozart2-2.0.0-beta.0-Source/lib/stage1/Base.ozf

Do you think it would build in a chrooted environment?

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

No branches or pull requests

2 participants