Hello,
I recently start to work with Verdin imx8m plus toradex SOM, before that I worked with Toradex colibri imx6ull and imx7d.
I build a Docker image to build Yocto image into container. I am using docker version:
Docker version 20.10.8
I build a docker image to run Ubuntu 20.4 and install it packages as said in Yocto-requiriments-for-ubuntu
When I try to build a Yocto Image there is a Yocto error:
Sstate summary: Wanted 987 Local 76 Mirrors 0 Missed 911 Current 9 (7% match, 8% complete)
NOTE: Executing Tasks
ERROR: perl-native-5.34.1-r0 do_compile: oe_runmake failed
ERROR: perl-native-5.34.1-r0 do_compile: ExecutionError('/home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063', 1, None, None)
ERROR: Logfile of failure stored in: /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/log.do_compile.80063
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| make: find: Operation not permitted
| make: find: Operation not permitted
| make: find: Operation not permitted
| make: /bin/sh: Operation not permitted
| make: /bin/sh: Operation not permitted
| make crosspatch
| make: make: Operation not permitted
| make: *** [Makefile:79: all] Error 127
| ERROR: oe_runmake failed
| WARNING: /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063:185 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063, line 185
| #2: die, /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063, line 169
| #3: oe_runmake, /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063, line 164
| #4: do_compile, /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063, line 142
| #5: main, /home/fgs/cuffia-oe-core/build/tmp/work/x86_64-linux/perl-native/5.34.1-r0/temp/run.do_compile.80063, line 189
ERROR: Task (virtual:native:/home/fgs/cuffia-oe-core/build/../layers/openembedded-core/meta/recipes-devtools/perl/perl_5.34.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 447 tasks of which 232 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 6 seconds
Some recipies are succesful to be compiled but when try to compile perl-native prints that error. I clean perl-native and I try to compile perl recipe alone and always prints the same error.
I did a test to compile in a host machine with ubuntu 20.04 (not in a Docker) and compile succesfuly.
For me, this seems to be the culprit:
syscall_0x1b3(0x7ffcf503ca80, 0x58, 0x7f7faf032600, 0x8, 0x7ffcf503ca30, 0) = -1 EPERM (Operation not permitted)
munmap(0x7f7fa90d7000, 36864) = 0
rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM CHLD XCPU XFSZ], NULL,
write(2</dev/pts/7<char 136:7>>, "make: make: Operation not permit"..., 36make: make: Operation not permitted
Upgrading my Docker from version 19 to 25 did the job. See [1] and thereby linked actual cause [2].
Hi, @emmanuelperea,
Did you solve this problem? I'm looking for a solution to the same error.
Hi @emmanuelperea!
Thank you for contacting NXP Support!
Try to limit the cores and try to recompile the SDK.
You can limit the cores using the next lines in the local.conf file:
Note: We recommend 4 GB of RAM per core
BB_NUMBER_THREADS = "4"
PARALLEL_MAKE = "-j 4"
If the problem persists try to compile the packages with failure one by one with the next commands.
Bitbake -c clean <package>
Bitbake -c compile <package>
Example:
Bitbake -c clean rust-live-native
Bitbake -c compile rust-live-native
Note: Only do that with big packages like:
Linux-imx
QT
Rust
onxruntime.
etc.
Best Regards!
Chavira