[UOS] ll-builder : stage build error
Tofloor
poster avatar
杨洪江
deepin
10 hours ago
Author

uos V20 1070 , ll-builder V1.11.0, 编译 demo 报错:

org.deepin.demo$ ll-builder build
Using project file /home/yang/deve/ll2/org.deepin.demo/linglong.yaml
(4918) /usr/src/packages/BUILD/apps/ll-builder/src/main.cpp:194 Handling build command
[Builder info]
Linglong Builder Version: 1.11.0-1
[Build Target]
org.deepin.demo
[Project Info]
Package Name: your name
Version: 0.0.0.1
Package Type: app
Build Arch: x86_64
Target Arch: x86_64
[Current Repo]
Name: stable
Url: https://mirror-repo-linglong.deepin.com
[Processing Dependency]
Package Version Module Status
org.deepin.base 23.1.0.3 binary complete
org.deepin.base 23.1.0.3 develop complete
org.deepin.base 23.1.0.3 binary complete
org.deepin.base 23.1.0.3 develop complete
(4918) /usr/src/packages/BUILD/apps/ll-builder/src/main.cpp:222 Build failed: [code -1 ] message:
stage build error

================================================================================================

linglong.yaml 内容:

version: "1"

package:
id: org.deepin.demo
name: your name #set your application name
version: 0.0.0.1 #set your version
kind: app
description: |
your description #set a brief text to introduce your application.

command: [echo, -e, hello world] #the commands that your application need to run.

base: org.deepin.base/23.1.0 #set the base environment, this can be changed.
runtime: org.deepin.base/23.1.0

#set the runtime environment if you need, a example of setting deepin runtime is as follows.
#runtime:
#org.deepin.runtime.dtk/25.2.1

#set the source if you need, a simple example of git is as follows.
#sources:

- kind: git

url: https://github.com/linuxdeepin/linglong-builder-demo.git

version: master\n

commit: a3b89c3aa34c1aff8d7f823f0f4a87d5da8d4dc0

build: |
echo 'hello' #some operation to build this project

Reply Favorite View the author
All Replies
mozixun
Moderator
10 hours ago
#1

runtime是不是写错了
image.png

PS: 最新的base是25.2.2了

Reply View the author
杨洪江
deepin
10 hours ago
#2
mozixun

runtime是不是写错了
image.png

PS: 最新的base是25.2.2了

试过最新的,基本一样的情况。增加新的信息:

[ERR | 4026531836:12987 | readAllContainerJson:50 ] failed to create /run/user/0/linglong/box Permission denied
[ERR | 4026531836:12987 | run:227 ] run failed: filesystem error: cannot create directories: Permission denied [/run/user/0/linglong/box]
[ERR | 4026533128:1 | create_directories:43 ] ret(-1),errno(75): Value too large for defined data type /home/yang/deve/ll2/org.deepin.demo/linglong/overlay/build_base/merged/opt/apps 493
[FAL | 4026533128:1 | do_mount_with_fd:198 ] fail to open target(/home/yang/deve/ll2/org.deepin.demo/linglong/overlay/build_base/merged/opt/apps/org.deepin.demo/files): errno(2): No such file or directory

Reply View the author
杨洪江
deepin
9 hours ago
#3

找到问题了,问kimi说根本原因是官方源 fuse-overlayfs 版本太低,存在bug。解决方案是 安装 linglong-box。

sudo apt install linglong-box

Reply View the author