Comments (11)
@ikitayama please see #764
from build.
Hi @ikitayama,
This is a known issue, see #747 (comment). TL;DR: use make -j$(nproc) RUST_ENABLE=n
.
If you can find a way to make it work you're welcome to submit pull requests. In the mean time I think we should force RUST_ENABLE=n
on non-x64_64 hosts. I'll make a PR for that.
Thanks!
from build.
Hi @ikitayama,
This is a known issue, see #747 (comment). TL;DR: use
make -j$(nproc) RUST_ENABLE=n
.If you can find a way to make it work you're welcome to submit pull requests. In the mean time I think we should force
RUST_ENABLE=n
on non-x64_64 hosts. I'll make a PR for that.Thanks!
@jforissier I get:
[100%] Built target xtest
Building /home/itaru/work/out-br/build/optee_test_ext-1.0/ta/os_test_lib/Makefile
make[3]: Nothing to be done for 'all'.
Building /home/itaru/work/out-br/build/optee_test_ext-1.0/ta/os_test_lib_dl/Makefile
make[3]: Nothing to be done for 'all'.
Building /home/itaru/work/out-br/build/optee_test_ext-1.0/ta/os_test/Makefile
GEN out/dyn_list
LD out/5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.elf
/home/itaru/work/build/../toolchains/aarch64/bin/aarch64-linux-ld.bfd: /home/itaru/work/toolchains/aarch64/bin/../lib/gcc/aarch64-buildroot-linux-gnu/12.3.0/libgcc_eh.a(unwind-dw2-fde-dip.o): in function `_Unwind_Find_FDE':
/home/itaru/work/out-aarch64-sdk/build/host-gcc-final-12.3.0/build/aarch64-buildroot-linux-gnu/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:512: undefined reference to `_dl_find_object'
make[3]: *** [/home/itaru/work/optee_os/out/arm/export-ta_arm64/mk/link.mk:123: out/5b9e0e40-2636-11e1-ad9e-0002a5d5c51b.elf] Error 1
make[2]: *** [package/pkg-generic.mk:284: /home/itaru/work/out-br/build/optee_test_ext-1.0/.stamp_built] Error 2
make[1]: *** [Makefile:23: _all] Error 2
make[1]: Leaving directory '/home/itaru/work/out-br'
make: *** [common.mk:341: buildroot] Error 2
from build.
Indeed, GCC 12 is incompatible with C++ TAs. One more thing to disable on M1. So make -j$(nproc) RUST_ENABLE=n WITH_CXX_TESTS=n
.
from build.
Indeed, GCC 12 is incompatible with C++ TAs. One more thing to disable on M1. So
make -j$(nproc) RUST_ENABLE=n WITH_CXX_TESTS=n
.
Thanks! That worked.
make run-only
make[1]: Entering directory '/home/itaru/work/build'
ln -sf /home/itaru/work/build/../out-br/images/rootfs.cpio.gz /home/itaru/work/build/../out/bin/
* QEMU is now waiting to start the execution
* Start execution with either a 'c' followed by <enter> in the QEMU console or
* attach a debugger and continue from there.
*
* To run OP-TEE tests, use the xtest command in the 'Normal World' terminal
* Enter 'xtest -h' for help.
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
xterm: Xt error: Can't open display:
xterm: DISPLAY is not set
from build.
Indeed, GCC 12 is incompatible with C++ TAs. One more thing to disable on M1. So
make -j$(nproc) RUST_ENABLE=n WITH_CXX_TESTS=n
.
Requiring that buildroot's GCC be 11 leads to a make toolchains
failure.
RUN curl https://storage.googleapis.com/git-repo-downloads/repo > /bin/repo && chmod a+x /bin/repo
RUN mkdir /optee
WORKDIR /optee
RUN repo init -u https://github.com/OP-TEE/manifest.git -m qemu_v8.xml && repo sync -j10
WORKDIR /optee/build
RUN make -j2 RUST_ENABLE=n WITH_CXX_TESTS=n toolchains
RUN make -j$(nproc) check RUST_ENABLE=n WITH_CXX_TESTS=n
from build.
It looks like Buildroot has lost support for GCC 11.x :-/ can you please try this patch:
diff --git a/br-ext/configs/sdk-common b/br-ext/configs/sdk-common
index 64e0b5c..18563be 100644
--- a/br-ext/configs/sdk-common
+++ b/br-ext/configs/sdk-common
@@ -1,6 +1,6 @@
BR2_CCACHE=y
BR2_CCACHE_USE_BASEDIR=y
-BR2_GCC_VERSION_11_X=y
+BR2_GCC_VERSION_14_X=y
BR2_INIT_NONE=y
BR2_KERNEL_HEADERS_6_1=y
BR2_PACKAGE_BUSYBOX=n
It will likely not work due to BR2_KERNEL_HEADERS_6_1=y
being incorrect, but I do not know which version is expected for GCC 14.x, so please report any error message and we will take it from there. Thanks!
from build.
It looks like Buildroot has lost support for GCC 11.x :-/ can you please try this patch:
diff --git a/br-ext/configs/sdk-common b/br-ext/configs/sdk-common index 64e0b5c..18563be 100644 --- a/br-ext/configs/sdk-common +++ b/br-ext/configs/sdk-common @@ -1,6 +1,6 @@ BR2_CCACHE=y BR2_CCACHE_USE_BASEDIR=y -BR2_GCC_VERSION_11_X=y +BR2_GCC_VERSION_14_X=y BR2_INIT_NONE=y BR2_KERNEL_HEADERS_6_1=y BR2_PACKAGE_BUSYBOX=nIt will likely not work due to
BR2_KERNEL_HEADERS_6_1=y
being incorrect, but I do not know which version is expected for GCC 14.x, so please report any error message and we will take it from there. Thanks!
@jforissier Will do that tomorrow in the morning my time!
from build.
It looks like Buildroot has lost support for GCC 11.x :-/ can you please try this patch:
diff --git a/br-ext/configs/sdk-common b/br-ext/configs/sdk-common index 64e0b5c..18563be 100644 --- a/br-ext/configs/sdk-common +++ b/br-ext/configs/sdk-common @@ -1,6 +1,6 @@ BR2_CCACHE=y BR2_CCACHE_USE_BASEDIR=y -BR2_GCC_VERSION_11_X=y +BR2_GCC_VERSION_14_X=y BR2_INIT_NONE=y BR2_KERNEL_HEADERS_6_1=y BR2_PACKAGE_BUSYBOX=nIt will likely not work due to
BR2_KERNEL_HEADERS_6_1=y
being incorrect, but I do not know which version is expected for GCC 14.x, so please report any error message and we will take it from there. Thanks!
It seems to be working? I am seeing two xterms saying "Secure World" and "Normal World" on my M1 Max. Builds were done in Ubuntu VM.
[...]
* QEMU is now waiting to start the execution
* Start execution with either a 'c' followed by <enter> in the QEMU console or
* attach a debugger and continue from there.
*
* To run OP-TEE tests, use the xtest command in the 'Normal World' terminal
* Enter 'xtest -h' for help.
Connection to 127.0.0.1 54320 port [tcp/*] succeeded!
Connection to 127.0.0.1 54321 port [tcp/*] succeeded!
cd /home/itaru/work/build/../out/bin && /home/itaru/work/build/../qemu/build/aarch64-softmmu/qemu-system-aarch64 \
-nographic -smp 2 -cpu max,sme=on,pauth-impdef=on -d unimp -semihosting-config enable=on,target=native -m 1057 -bios bl1.bin -initrd rootfs.cpio.gz -kernel Image -append 'console=ttyAMA0,38400 keep_bootcon root=/dev/vda2 ' -object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0,max-bytes=1024,period=1000 -netdev user,id=vmnic -device virtio-net-device,netdev=vmnic -machine virt,acpi=off,secure=on,mte=off,gic-version=3,virtualization=false -s -S -serial tcp:127.0.0.1:54320 -serial tcp:127.0.0.1:54321
QEMU 8.1.2 monitor - type 'help' for more information
(qemu)
from build.
@jforissier I get to the prompt which I see on the Normal World xterm. Thanks a lot for your help!
from build.
@jforissier I get to the prompt which I see on the Normal World xterm. Thanks a lot for your help!
Great news! I have updated #764. Thanks!
from build.
Related Issues (20)
- Modify the linux kernel but not working HOT 3
- Failure to run with manifest qemu_v8.xml and SPMC_AT_EL=2 HOT 2
- AMD Versal ACAP - do not update to BSP 2023.1 HOT 4
- cannot find -lpci error while cross compiling for LS1043 HOT 1
- Who can help me!make -f qemu.mk all and get a error :ccache: error: Exec format error HOT 5
- Openssl doesn't get built in when build called from qemu.mk HOT 2
- RPI3b:-sh: apt-get: not found HOT 3
- Does the build support the config XEN_BOOT=y && SPCM_AT_EL=2 on qemu_v8 HOT 5
- Rust error "could not rename downloaded file" HOT 3
- Rust error: "failed to install component: 'rust-std-aarch64-unknown-linux-gnu', detected conflict" HOT 2
- Legacy BR options in tooclhain build HOT 6
- image load on qemu HOT 2
- optee_test_ext: /bin/bash: Argument list too long HOT 3
- Build fails on aarch64 hosts HOT 25
- toolchain.mk: Rust toolchain is not downloaded on aarch64 hosts HOT 1
- C++ tests fail on aarch64 hosts HOT 2
- Compilation of Rust examples fails on aarch64 hosts HOT 2
- Differences Between Using Buildroot and OP-TEE Build for OP-TEE Components HOT 2
- rockpi4 build issues HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.