cancel
Showing results for 
Search instead for 
Did you mean: 

Yocto Build Error: Patch Too Many Files Open

ceneblock
Associate

Hello,

  I get the following error when trying to run bitbake -k -v core-image-minimal

 

Build Configuration:
BB_VERSION = "2.6.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "stm32mp1"
DISTRO = "poky"
DISTRO_VERSION = "4.3.1"
TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "nanbield:bf9f2f6f60387b3a7cd570919cef6c4570edcb82"
meta-oe
meta-python = "nanbield:1750c66ae8e4268c472c0b2b94748a59d6ef866d"
meta-st-stm32mp = "nanbield:eccd561ae8dc9c942491ef772b2d5385a64f66ae"

Initialising tasks...NOTE: Marking Active Tasks
NOTE: Pruned 13989 inactive tasks, 5116 left
NOTE: Assign Weightings
NOTE: Compute totals (have 1 endpoint(s))
done.
Sstate summary: Wanted 14 Local 0 Mirrors 0 Missed 14 Current 2380 (0% match, 99% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Running task 4801 of 5116 (virtual:native:/home/user/dev/yocto/yocto/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-tools_2.8.bb:do_patch)
NOTE: recipe tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0: task do_patch: Started
NOTE: tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0 do_patch: Direct dependencies are ['/home/user/dev/yocto/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot']
NOTE: tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0 do_patch: Installed into sysroot: []
NOTE: tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0 do_patch: Skipping as already exists in sysroot: ['quilt-native']

NOTE: tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0 do_patch: Applying patch '0001-v2.8-stm32mp-r1.patch' (../yocto/meta-st-stm32mp/recipes-bsp/trusted-firmware-a/tf-a-stm32mp/0001-v2.8-stm32mp-r1.patch)
ERROR: tf-a-tools-native-v2.8.6-stm32mp-r1.1-r0 do_patch: Applying patch '0001-v2.8-stm32mp-r1.patch' on target directory '/home/user/dev/yocto/build/tmp/work/x86_64-linux/tf-a-tools-native/v2.8.6-stm32mp-r1.1/git'
CmdError('quilt --quiltrc /home/user/dev/yocto/build/tmp/work/x86_64-linux/tf-a-tools-native/v2.8.6-stm32mp-r1.1/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-v2.8-stm32mp-r1.patch
patching file CONTRIBUTING.md
patching file Makefile
patching file SECURITY.md
patching file bl2/bl2_main.c
patching file common/aarch32/debug.S
patching file common/bl_common.c
patching file docs/devicetree/bindings/arm/secure.txt
patching file docs/devicetree/bindings/clock/st,stm32mp1-rcc.txt
patching file docs/devicetree/bindings/clock/st,stm32mp13-rcc.txt
patching file docs/devicetree/bindings/i2c/i2c-stm32.txt
patching file docs/devicetree/bindings/memory-controllers/st,stm32mp1-ddr.txt
patching file docs/devicetree/bindings/mmc/mmci.txt
patching file docs/devicetree/bindings/mmc/st,stm32-sdmmc2.txt
patching file docs/devicetree/bindings/power/st,stm32mp1-pwr.txt
patching file docs/devicetree/bindings/power/st,stpmic1.txt
patching file docs/devicetree/bindings/reset/st,stm32mp1-rcc.txt
patching file docs/devicetree/bindings/rng/st,stm32-rng.txt
patching file docs/devicetree/bindings/serial/st,stm32-usart.txt
patching file docs/devicetree/bindings/soc/st,stm32-etzpc.txt
patching file docs/devicetree/bindings/soc/st,stm32-romem.txt
patching file docs/devicetree/bindings/soc/st,stm32-stgen.txt
patching file docs/devicetree/bindings/soc/st,stm32-tamp.txt
patching file docs/devicetree/bindings/watchdog/st,stm32-iwdg.txt
patch: **** Can\'t create file .pc/0001-v2.8-stm32mp-r1.patch/docs/devicetree/bindings/watchdog/st,stm32-iwdg.txt : Too many open files

 

And there are a ton of other files that give a similar error. I've been following Digikey's tutorial for trying to generate an image for STM32MP157D-DK1.

If there's any other information that I can provide, please let me know!

Some online searching seems to suggest ulimit, but mine is set to 1024. Is there a way to limit quilt from opening so many files or is there something else?

1 REPLY 1
Erwan SZYMANSKI
ST Employee

Hello @ceneblock ,
This error seems to be more related to a PC configuration than a Yocto build problem. I found many subject online dealing with this. I think you will have to make some tries with what you can find on the web as ST cannot fix this kind of issue ..

Kind regards,
Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.