-
Hi, I'm facing errors on native-build during build. Can anyone help?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Ah, sorry, the xpack-develop branch is unstable for the moment, I was trying to build it for Apple Silicon (and failed). |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what happened in your test, in my environment the build for xpack-develop passed, both on Ubuntu and macOS. Anyway, I did some cosmetic changes and updated both branches. Please give it a clean try and let me know if it works now. |
Beta Was this translation helpful? Give feedback.
-
Did you also remove the work folder before the build? |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what you are trying to achieve. If you want to run the build inside a docker image, you normally use the build.sh script, which does everything automatically. The build-native.sh was intended to run native builds, using the resources on your host. I ran exactly the same commands you mentioned above on an Ubuntu 18 with the prerequisites installed and the build passed: ilg@ubu18x64-nb:~$ cd Downloads/
ilg@ubu18x64-nb:~/Downloads$ git clone --branch xpack-develop https://github.com/xpack-dev-tools/qemu-arm-xpack.git
Cloning into 'qemu-arm-xpack'...
remote: Enumerating objects: 1359, done.
remote: Counting objects: 100% (902/902), done.
remote: Compressing objects: 100% (540/540), done.
remote: Total 1359 (delta 617), reused 632 (delta 350), pack-reused 457
Receiving objects: 100% (1359/1359), 259.34 KiB | 2.65 MiB/s, done.
Resolving deltas: 100% (907/907), done.
ilg@ubu18x64-nb:~/Downloads$ cd qemu-arm-xpack
ilg@ubu18x64-nb:~/Downloads/qemu-arm-xpack$ git submodule update --init --recursive
Submodule 'scripts/helper' (https://github.com/xpack-dev-tools/build-helper.git) registered for path 'scripts/helper'
Cloning into '/home/ilg/Downloads/qemu-arm-xpack/scripts/helper'...
Submodule path 'scripts/helper': checked out 'c34b1f7c574121e09d4978614aa709936bfa2136'
ilg@ubu18x64-nb:~/Downloads/qemu-arm-xpack$ bash scripts/helper/build-native.sh --debug --develop
xPack QEMU Arm native build script.
Linux ubu18x64-nb 5.4.0-91-generic #102~18.04.1-Ubuntu SMP Thu Nov 11 14:46:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Running on Ubuntu x64 (64-bit).
Preparing release 2.8.0-13...
Container build script: "/home/ilg/Work/qemu-arm-dev/build.git/scripts/helper/container-build.sh".
DISTRIBUTION_FILE_DATE="20211220-0935"
Script "scripts/helper/build-native.sh" started at Mon 20 Dec 11:35:04 EET 2021.
mkdir: created directory '/home/ilg/Work/qemu-arm-dev/build.git'
...
Script "scripts/helper/build-native.sh" completed at Mon Dec 20 11:41:10 EET 2021.
Duration: 3 minutes.
ilg@ubu18x64-nb:~/Downloads/qemu-arm-xpack$ ls -l ~/Work/qemu-arm-dev/linux-x64/install/qemu-arm/
total 16
drwxr-xr-x 2 ilg ilg 4096 Dec 20 11:41 bin
drwxr-xr-x 3 ilg ilg 4096 Dec 20 11:38 distro-info
drwxr-xr-x 2 ilg ilg 4096 Dec 20 11:41 libexec
drwxr-xr-x 4 ilg ilg 4096 Dec 20 11:41 share
ilg@ubu18x64-nb:~/Downloads/qemu-arm-xpack$ ls -l ~/Work/qemu-arm-dev/linux-x64/install/qemu-arm/bin
total 19416
-rwxr-xr-x 1 ilg ilg 19878760 Dec 20 11:41 qemu-system-gnuarmeclipse
ilg@ubu18x64-nb:~/Downloads/qemu-arm-xpack$ Remove the Work folder and try the steps as described in the README files. |
Beta Was this translation helpful? Give feedback.
I'm not sure what you are trying to achieve. If you want to run the build inside a docker image, you normally use the build.sh script, which does everything automatically.
The build-native.sh was intended to run native builds, using the resources on your host.
I ran exactly the same commands you mentioned above on an Ubuntu 18 with the prerequisites installed and the build passed: