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

Can't build totalcross VM for arm32v7 #364

Open
ubx opened this issue Aug 9, 2021 · 1 comment
Open

Can't build totalcross VM for arm32v7 #364

ubx opened this issue Aug 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@ubx
Copy link

ubx commented Aug 9, 2021

Describe the bug

Build the totalcross VM for arm32v7 is not possible.

Devices:

Please complete the following information:

  • Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS
  • cmake version 3.10.2
  • Docker version 20.10.8, build 3967b7d
  • TotalCross Version: latest from master branch
  • Architecture: arm32v7

To Reproduce

git clone https://github.com/TotalCross/totalcross.git
cd  totalcross/TotalCrossVM/docker/arm32v7
sudo ./build-docker.sh
 => ERROR [build 7/7] RUN cmake /sources -G Ninja && ninja                                                                                                              0.4s
------                                                                                                                                                                       
 > [build 7/7] RUN cmake /sources -G Ninja && ninja:                                                                                                                         
#11 0.345 CMake Error: The source directory "/sources" does not appear to contain CMakeLists.txt.
#11 0.345 Specify --help for usage, or press the help button on the CMake GUI.
------
Dockerfile:70
--------------------
  68 |     COPY . /sources
  69 |     
  70 | >>> RUN cmake /sources -G Ninja && ninja
  71 |     
  72 |     CMD ["/bin/bash", "-c", "make", "-j$(($(nproc) + 2))", "-f", "${BUILD_FOLDER}/Makefile"]
--------------------
error: failed to solve: process "/bin/sh -c cmake /sources -G Ninja && ninja" did not complete successfully: exit code: 1
@ubx ubx added the bug Something isn't working label Aug 9, 2021
@Merztwin
Copy link

Hello @ubx.

Do you have your arm32v7 device avaliable? Currently we just added a new topic in the page about building the VM for Linux natively using CMake, this way you don't need to rely on Docker to build it. Being the native method on the other hand, means that you'll need to build it on the arm32v7 device, not on your Ubuntu desktop.

We would appreciate feedback on the instructions provided, as well as if it build was successful and if the built-natively VM is working properly.

If, however, building TotalCrossVM natively on your arm device is not an option for you, we humbly request your patience as fixes for the docker scripts are currently WIP and should be out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants