IMX6ULL Yocto build about rust proble

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX6ULL Yocto build about rust proble

2,473件の閲覧回数
bruceJR3
Contributor I

Hi NXP Team:

I am using yocto to build Linux kernel6.6.36  for imx6ullevk, but I'm having some issues.When I build with the bitbake core-image-minimal command, Task (virtual:native:/home/user/Project/Yocto/yocto-nxp-imx6ull/sources/poky/meta/recipes-devtools/rust/rust-llvm_1.75.0.bb:do_ compile) failed with exit code '1'.I checked the local rustc version and tried to recompile but nothing worked。

Do you have any idea about to fixed the issue? Thanks

ラベル(1)
0 件の賞賛
返信
9 返答(返信)

2,377件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @bruceJR3 

Did you try to have a clean build for the recipe - rust-llvm? 

If still not work, please share full error log and full steps you have taken and what is the version of your host?

 

Regards

Harvey 

0 件の賞賛
返信

2,338件の閲覧回数
bruceJR3
Contributor I
Hi Harvey,

I have tried clean and then rebuild,but it is not work.My steps are as follows.first,MACHINE=imx6ullevk DISTRO=fsl-framebuffer source imx-setup-release.sh -b build. second,bitbake core-image-minimal --runall=fetch .third ,bitbake core-image-minimal.After that there is a rust-llvm error.The info about my host:Ubuntu22.04 and rustc version: rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball).

Thanks!
0 件の賞賛
返信

2,301件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Several suggestions.

1, What version of BSP are you building? like this one?

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-nanbield -m imx-6.6.3-1.0.0.xml

2, What about change the DISTRO to fsl-imx-fb.

3, How is the performance of your host? a ratio for RAM against cores is 4:1 that would be recommended.

 

Regards

Harvey

0 件の賞賛
返信

2,283件の閲覧回数
bruceJR3
Contributor I
Hi,Harvey
1、my build version is:
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.36-2.1.0.xml
2、I tried to change the DISTRO to fsl-imx-fb,but it is not work.
3、My PC RAM is 16GB,and my Virtual machine RAM is 4GB.
Do you have any other suggestions?

Thanks!
0 件の賞賛
返信

2,268件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

The size of RAM should be at least 8GB. 

 

Regards

Harvey

0 件の賞賛
返信

2,212件の閲覧回数
bruceJR3
Contributor I
Hi ,Harvey
I resized the RAM but it is not work.
Do you have any other suggestions?
Thanks
0 件の賞賛
返信

2,191件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi, 

I just now try to build it again on my host, there is no issue. as seen below.

bitbake core-image-minimal
Loading cache: 100% |#################################################################################################################| Time: 0:00:01
Loaded 5717 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################| Time: 0:00:01
Parsing of 3642 .bb files complete (3641 cached, 1 parsed). 5718 targets, 764 skipped, 17 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.8.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ullevk"
DISTRO = "fsl-imx-fb"
DISTRO_VERSION = "6.6-scarthgap"
TUNE_FEATURES = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f43f393ef0246b7bee6eed8bcf8271cf2b8cdf40"
meta-oe
meta-multimedia
meta-python = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-freescale = "HEAD:0f8091c63dd8805610c09b08409bc58492a3b16f"
meta-freescale-3rdparty = "HEAD:6c063450d464eb2f380443c7d9af1b94ce9b9d75"
meta-freescale-distro = "HEAD:b9d6a5d9931922558046d230c1f5f4ef6ee72345"
meta-imx-bsp
meta-imx-sdk
meta-imx-ml
meta-imx-v2x = "HEAD:6bbf35e73f1b537b19be830462af87a3bd68e1ab"
meta-nxp-demo-experience = "HEAD:8fd7154c05b716e9635279047f65785399432d88"
meta-nxp-matter-baseline
meta-nxp-openthread = "HEAD:783becb4b5716d989f50db95b7133d38eae5b47b"
meta-arm
meta-arm-toolchain = "HEAD:1b85bbb4cab9658da3cd926c62038b8559c5c64e"
meta-clang = "HEAD:fe561f41aef0cff9e6f96730ab59f28dca2eb682"
meta-gnome
meta-networking
meta-filesystems = "HEAD:80e01188fa822d87d301ee71973c462d7a865493"
meta-qt6 = "HEAD:dc13e1bfda4a4757a08c2d6673bc4bac012c4a80"
meta-parsec
meta-tpm = "HEAD:11ea91192d43d7c2b0b95a93aa63ca7e73e38034"
meta-virtualization = "HEAD:6a80f140e387621f62964209a2e07d3bcfb125ce"

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/4.5/x86_64-nativesdk-libc-4.5.tar.xz;sha256sum=... (will check PREMIRRORS first)
Sstate summary: Wanted 2083 Local 0 Mirrors 0 Missed 2083 Current 34 (0% match, 1% complete)############################## | ETA: 0:00:00
Initialising tasks: 100% |############################################################################################################| Time: 0:00:02
NOTE: Executing Tasks
WARNING: bzip2-native-1.0.8-r0 do_fetch: Failed to fetch URL git://sourceware.org/git/bzip2-tests.git;name=bzip2-tests;branch=master;protocol=https, attempting MIRRORS if available
WARNING: libxml-parser-perl-native-2.47-r0 do_fetch: Failed to fetch URL https://search.cpan.org/CPAN/modules/by-module/XML/XML-Parser-2.47.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 4482 tasks of which 47 didn't need to be rerun and all succeeded.

Command lines:

2034 2024-12-05 15:17:11 mkdir 6ull
2035 2024-12-05 15:17:14 cd 6ull
2036 2024-12-05 15:17:48 repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.36-2.1.0.xml
2037 2024-12-05 15:18:00 repo sync
2038 2024-12-05 15:21:29 MACHINE=imx6ullevk DISTRO=fsl-imx-fb source imx-setup-release.sh -b build-fb
2039 2024-12-05 15:21:48 bitbake core-image-minimal

Make sure that you follow up the Yocto user Guide for the "3 Host Setup" and the performance of your PC host is critical and network.

 

Regards

Harvey

0 件の賞賛
返信

2,187件の閲覧回数
bruceJR3
Contributor I
Hi,
Thank you very much.I'm going to recheck my host environment.
0 件の賞賛
返信

2,335件の閲覧回数
bruceJR3
Contributor I
The error infor as follow:
/BenchmarkRunner.cpp
| /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp: In member function ‘llvm::Expected<int> llvm::exegesis::{anonymous}::SubProcessFunctionExecutorImpl::getFileDescriptorFromSocket(int) const’:
| /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:226:19: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
| 226 | if (BytesRead < 0)
| | ~~~~~~~~~~^~~
| /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp: In member function ‘llvm::Error llvm::exegesis::{anonymous}::SubProcessFunctionExecutorImpl::createSubProcessAndRunBenchmark(llvm::StringRef, llvm::SmallVectorImpl<long int>&) const’:
| /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp:361:61: error: ‘__builtin_thread_pointer’ is not supported on this target
| 361 | syscall(SYS_rseq, (intptr_t)__builtin_thread_pointer() + __rseq_offset,
| | ~~~~~~~~~~~~~~~~~~~~~~~~^~
| [2421/2727] /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/hosttools/g++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/build/tools/llvm-exegesis/lib -I/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib -I/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/build/include -I/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/include -isystem/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/recipe-sysroot-native/usr/include -O2 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/Clustering.cpp.o -MF tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/Clustering.cpp.o.d -o tools/llvm-exegesis/lib/CMakeFiles/LLVMExegesis.dir/Clustering.cpp.o -c /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/rustc-1.75.0-src/src/llvm-project/llvm/tools/llvm-exegesis/lib/Clustering.cpp
| ninja: build stopped: subcommand failed.
|
| WARNING: /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.1516011:156 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| WARNING: Backtrace (BB generated script):
| #1: cmake_runcmake_build, /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.1516011, line 156
| #2: cmake_do_compile, /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.1516011, line 150
| #3: do_compile, /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.1516011, line 145
| #4: main, /home/user/Project/Yocto/yocto-nxp-imx6ull/build/tmp/work/x86_64-linux/rust-llvm-native/1.75.0/temp/run.do_compile.1516011, line 169
ERROR: Task (virtual:native:/home/user/Project/Yocto/yocto-nxp-imx6ull/sources/poky/meta/recipes-devtools/rust/rust-llvm_1.75.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2036 tasks of which 390 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds

Summary: 1 task failed:
virtual:native:/home/user/Project/Yocto/yocto-nxp-imx6ull/sources/poky/meta/recipes-devtools/rust/rust-llvm_1.75.0.bb:do_compile
Summary: There were 2 WARNING messages.
Summary: There was 1 ERROR message, returning a non-zero exit code
0 件の賞賛
返信