2509版本编译错误

使用2509版本,编译storage --version 1.80.118时,什么都不该,报libsoc_adapter/1.90.42错误;实际上编自己的app的时候也有遇到过这个问题;

bingo build --stage=rc

whoami
root
conan版本: 2.13.0
仓库地址为: GitCode - 全球开发者的开源社区,开源代码托管平台
conan create --name storage --version 1.80.118 . -pr:h profile.luajit.ini -pr:b profile.dt.ini -s:a build_type=Debug --user openubmc --channel rc -o /:enable_luajit=True --build=storage/* --build=missing -u -f json --out-file=/tmp/tmpdesw2nq0.graph.json -tf=

======== Exporting recipe to the cache ========
storage/1.80.118@openubmc/rc: Exporting package recipe: /home/workspace/storage/conanfile.py
storage/1.80.118@openubmc/rc: Calling export()
storage/1.80.118@openubmc/rc: RUN: git status . --short --no-branch --untracked-files
storage/1.80.118@openubmc/rc: RUN: git rev-list HEAD -n 1 --full-history – “.”
storage/1.80.118@openubmc/rc: RUN: git branch -r --contains 36ff5b4368781a30ed3e0c46783fdf91e0a06563
storage/1.80.118@openubmc/rc: RUN: git remote
storage/1.80.118@openubmc/rc: RUN: git remote -v
storage/1.80.118@openubmc/rc: RUN: git fetch --prune --prune-tags origin

storage/1.80.118@openubmc/rc: RUN: git tag --points-at HEAD | grep -m 1 1.80.118
storage/1.80.118@openubmc/rc: Copied 1 ‘.yml’ file: conandata.yml
storage/1.80.118@openubmc/rc: Copied 2 ‘.py’ files: conanfile.py, conanbase.py
storage/1.80.118@openubmc/rc: Exported to cache folder: /root/.conan2/p/stora8dd2eab05d9e6/e
storage/1.80.118@openubmc/rc: Exported: storage/1.80.118@openubmc/rc#eec0f08905d2bbbac38333b00f521782 (2025-10-15 07:20:41 UTC)

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=7.3
os=Linux
[options]
/:enable_luajit=True
[conf]
tools.build:sysroot=/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk
tools.gnu:host_triplet=aarch64-target-linux-gnu
user.tools:luajit=luajit/2.1.0.b015@openubmc/stable
user.tools:skynet=skynet/1.8.0.b001_006@openubmc/stable
[buildenv]
PATH=+(path)/opt/hcc_arm64le/bin
KERNEL_PATH=/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk/usr/src/kernel/
CONAN_CMAKE_SYSROOT=/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk
CONAN_CMAKE_FIND_SDK_ROOT=/opt/hi1711sdk
CHOST=aarch64-target-linux-gnu
AR=aarch64-target-linux-gnu-ar
AS=aarch64-target-linux-gnu-as
RANLIB=aarch64-target-linux-gnu-ranlib
LD=aarch64-target-linux-gnu-ld
STRIP=aarch64-target-linux-gnu-strip
CC=aarch64-target-linux-gnu-gcc
HOSTCC=gcc
CXX=aarch64-target-linux-gnu-g++
PKG_CONFIG_PATH=/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk/lib64/pkgconfig:/opt/RTOS/208.9.0/arm64le_5.10_ek_preempt_pro/sdk/usr/lib64/pkgconfig
PKG_CONFIG=/usr/share/bingo/pkg_config.sh
CFLAGS=-Wall -fPIC -fstack-protector-all -Os -fPIE -pie -fno-common -std=gnu11
CXXFLAGS=-I/opt/hcc_arm64le/aarch64-target-linux-gnu/lib/include -Wall -fPIC -fstack-protector-all -Os -fPIE -pie -fno-common -std=c++17
LDFLAGS=-Wl,-z,relro,-z,now,-z,noexecstack

Profile build:
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
[conf]
user.tools:luajit=luajit/2.1.0.b015@openubmc/stable
user.tools:skynet=skynet/1.8.0.b001_006@openubmc/stable
[buildenv]
CFLAGS=-Wall -fPIC -fstack-protector-all -pie -fno-common -std=gnu11
CXXFLAGS=-Wall -fPIC -fstack-protector-all -pie -fno-common -std=c++17
LDFLAGS=-Wl,-z,relro,-z,now,-z,noexecstack
AR=ar
AS=as
LD=ld
STRIP=strip
CC=gcc
HOSTCC=gcc
CXX=g++

======== Computing dependency graph ========
storage/1.80.118@openubmc/rc: Checking remote: artifactory
Connecting to remote ‘artifactory’ with user ‘liutao’
libmc4lua/1.90.92@openubmc/stable: Checking remote: artifactory
boost/1.87.0.b003@openubmc/stable: Checking remote: artifactory
kmc/24.1.5.b001_004@openubmc/stable: Checking remote: artifactory
huawei_secure_c/1.0.2@openubmc/stable: Checking remote: artifactory
vpp/v300r025c10spc002b100_001@openubmc/stable: Checking remote: artifactory
hisec_tls/25.0.1.b002@openubmc/stable: Checking remote: artifactory
signature_verify_cbb_library/25.0.0.b002_001@openubmc/stable: Checking remote: artifactory
sqlite3/3.42.0-3.oe2403sp1-h2.b001@openubmc/stable: Checking remote: artifactory
json/b003_00004@openubmc/stable: Checking remote: artifactory
libsoc_adapter/1.90.42@openubmc/stable: Checking remote: artifactory
skynet/1.8.0.b001_006@openubmc/stable: Checking remote: artifactory
luajit/2.1.0.b015@openubmc/stable: Checking remote: artifactory
libsomp/1.90.27@openubmc/stable: Checking remote: artifactory
liblogger/1.90.5@openubmc/stable: Checking remote: artifactory
mctpd/1.90.6@openubmc/stable: Checking remote: artifactory
persistence/1.90.14@openubmc/stable: Checking remote: artifactory
WARN: include_prerelease version range option in “>=1.70.6, include_prerelease=True” does not take an attribute, its presence unconditionally enables prereleases
WARN: include_prerelease version range option in “>=1.70.6, include_prerelease=True” does not take an attribute, its presence unconditionally enables prereleases
libmgmt_protocol/1.80.43@openubmc/stable: Checking remote: artifactory
computing_component_raid/v100r001c00spc512b020_4@openubmc/stable: Checking remote: artifactory
Graph root
cli
Requirements
boost/1.87.0.b003@openubmc/stable#59369971980a2bd69fe38add2d9dea60 - Not in remote
computing_component_raid/v100r001c00spc512b020_4@openubmc/stable#6f70443f7919ee45d594fc42ef9e1d22 - Not in remote
hisec_tls/25.0.1.b002@openubmc/stable#476fd0dfd107a62745b6cfd5697041e1 - Not in remote
huawei_secure_c/1.0.2@openubmc/stable#ad5c55d13a8eb0a86cf895705d393b7f - Not in remote
json/b003_00004@openubmc/stable#d4cfc42df5879e88ef2df22b86a6d6cd - Not in remote
kmc/24.1.5.b001_004@openubmc/stable#f7f703177e1b15bb69f3ac00125c7eb0 - Not in remote
liblogger/1.90.5@openubmc/stable#fec56e7c3e5addd9626f617649444cd6 - Not in remote
libmc4lua/1.90.92@openubmc/stable#10f075649600cc917ed68cd7f5dfff65 - Not in remote
libmgmt_protocol/1.80.43@openubmc/stable#417f8caa8bad0f551f60a0a56784efdd - Not in remote
libsoc_adapter/1.90.42@openubmc/stable#d766a4be2ab5726dbec2316cd706f95e - Not in remote
libsomp/1.90.27@openubmc/stable#ac3a1b1cb458ecdd2b6ae25493f6b2a4 - Not in remote
luajit/2.1.0.b015@openubmc/stable#14094f7ffb0da376531db179f4487ec7 - Not in remote
mctpd/1.90.6@openubmc/stable#154a504c279af0649449bc1b735830b0 - Not in remote
persistence/1.90.14@openubmc/stable#ba1921c8e63c6f2167dc3427c1f2d3dd - Not in remote
signature_verify_cbb_library/25.0.0.b002_001@openubmc/stable#f5d157cc857812a379375c8afba16cd4 - Not in remote
skynet/1.8.0.b001_006@openubmc/stable#9588dab601a89aba66a7ebc0894a4847 - Not in remote
sqlite3/3.42.0-3.oe2403sp1-h2.b001@openubmc/stable#1978e7ae91c9dcd92b8a1f039e573cf7 - Not in remote
storage/1.80.118@openubmc/rc#eec0f08905d2bbbac38333b00f521782 - Not in remote
vpp/v300r025c10spc002b100_001@openubmc/stable#8904d688413ec6389a676ef359fdd3ed - Not in remote
Build requirements
luajit/2.1.0.b015@openubmc/stable#14094f7ffb0da376531db179f4487ec7 - Not in remote
skynet/1.8.0.b001_006@openubmc/stable#9588dab601a89aba66a7ebc0894a4847 - Not in remote
Resolved version ranges
huawei_secure_c/[>=1.0.0]@openubmc/stable: huawei_secure_c/1.0.2@openubmc/stable
liblogger/[>=1.80.5 <1.100.0]@openubmc/stable: liblogger/1.90.5@openubmc/stable
libmc4lua/[>=1.1.0]@openubmc/stable: libmc4lua/1.90.92@openubmc/stable
libmgmt_protocol/[>=1.70.6, include_prerelease=True]@openubmc/stable: libmgmt_protocol/1.80.43@openubmc/stable
libsoc_adapter/[<1.100.0]@openubmc/stable: libsoc_adapter/1.90.42@openubmc/stable
libsomp/[<1.100.0]@openubmc/stable: libsomp/1.90.27@openubmc/stable
mctpd/[>=0.0.1]@openubmc/stable: mctpd/1.90.6@openubmc/stable
persistence/[>=1.0.0]@openubmc/stable: persistence/1.90.14@openubmc/stable

======== Computing necessary packages ========
boost/1.87.0.b003@openubmc/stable: WARN: Can’t update, no package in remote
computing_component_raid/v100r001c00spc512b020_4@openubmc/stable: WARN: Can’t update, no package in remote
hisec_tls/25.0.1.b002@openubmc/stable: WARN: Can’t update, no package in remote
huawei_secure_c/1.0.2@openubmc/stable: WARN: Can’t update, no package in remote
luajit/2.1.0.b015@openubmc/stable: WARN: Can’t update, no package in remote
luajit/2.1.0.b015@openubmc/stable: WARN: Can’t update, no package in remote
skynet/1.8.0.b001_006@openubmc/stable: WARN: Can’t update, no package in remote
sqlite3/3.42.0-3.oe2403sp1-h2.b001@openubmc/stable: WARN: Can’t update, no package in remote
json/b003_00004@openubmc/stable: WARN: Can’t update, no package in remote
liblogger/1.90.5@openubmc/stable: WARN: Can’t update, no package in remote
signature_verify_cbb_library/25.0.0.b002_001@openubmc/stable: WARN: Can’t update, no package in remote
skynet/1.8.0.b001_006@openubmc/stable: WARN: Can’t update, no package in remote
vpp/v300r025c10spc002b100_001@openubmc/stable: WARN: Can’t update, no package in remote
kmc/24.1.5.b001_004@openubmc/stable: WARN: Can’t update, no package in remote
libsomp/1.90.27@openubmc/stable: WARN: Can’t update, no package in remote
libmc4lua/1.90.92@openubmc/stable: WARN: Can’t update, no package in remote
libmgmt_protocol/1.80.43@openubmc/stable: WARN: Can’t update, no package in remote
persistence/1.90.14@openubmc/stable: WARN: Can’t update, no package in remote
mctpd/1.90.6@openubmc/stable: WARN: Can’t update, no package in remote
storage/1.80.118@openubmc/rc: Forced build from source
Requirements
boost/1.87.0.b003@openubmc/stable#59369971980a2bd69fe38add2d9dea60:da1005d162cb06138700372b25dc9fabf1528f5f#7394268211e507fe29229afd14d24d66 - Cache
computing_component_raid/v100r001c00spc512b020_4@openubmc/stable#6f70443f7919ee45d594fc42ef9e1d22:da1005d162cb06138700372b25dc9fabf1528f5f#45e789b10ff8a853b7be60647053a4d2 - Cache
hisec_tls/25.0.1.b002@openubmc/stable#476fd0dfd107a62745b6cfd5697041e1:da39a3ee5e6b4b0d3255bfef95601890afd80709#0ba8627bd47edc3a501e8f0eb9a79e5e - Cache
huawei_secure_c/1.0.2@openubmc/stable#ad5c55d13a8eb0a86cf895705d393b7f:ceb71ad4ac16d6d8df91160c239536d56385f010#d3f55b7c17a908ca1767eeb7a91d2ce9 - Cache
json/b003_00004@openubmc/stable#d4cfc42df5879e88ef2df22b86a6d6cd:2334338fbfd9de585b1bf062fea416ce7b666d92#ccd4226a4e97a975e20971212bf6690f - Cache
kmc/24.1.5.b001_004@openubmc/stable#f7f703177e1b15bb69f3ac00125c7eb0:9e672509c69024f613e13f3f2c9c8fd3d6c980bc#8c99f28b4b6379a69c68a32c72b28712 - Cache
liblogger/1.90.5@openubmc/stable#fec56e7c3e5addd9626f617649444cd6:2d68368fd8f76e6878b76a4cb9beca2c652a9992#25a156f019d12a60bbbd58586cd91634 - Cache
libmc4lua/1.90.92@openubmc/stable#10f075649600cc917ed68cd7f5dfff65:f730cf60c1419022e02484f965a8dbd07b8d642a#291c4cae4585388bbda42324c6077d8d - Cache
libmgmt_protocol/1.80.43@openubmc/stable#417f8caa8bad0f551f60a0a56784efdd:922db4f06aed12da4218138b3dedea443a726584#c969d3f69e72abdb98d3bf9dcfe25918 - Cache
libsoc_adapter/1.90.42@openubmc/stable#d766a4be2ab5726dbec2316cd706f95e:42fecbb9f690695e7b7159646444c5dd11682287 - Build
libsomp/1.90.27@openubmc/stable#ac3a1b1cb458ecdd2b6ae25493f6b2a4:4129b52ff5c2bc25f03af0aafbdd1402218ffbd8#6497687fb12c3967be35105a8b40d107 - Cache
luajit/2.1.0.b015@openubmc/stable#14094f7ffb0da376531db179f4487ec7:4919d6627c8f4d8b3aa180d501911582163a479e#edc9ca4ad5cb1c2ff96e8fdd2e7b331c - Cache
mctpd/1.90.6@openubmc/stable#154a504c279af0649449bc1b735830b0:d78e915ae1d0c10d5d19bdca88dca75173a30e1e#3e49358b306185e6a7a49aac0c138de5 - Cache
persistence/1.90.14@openubmc/stable#ba1921c8e63c6f2167dc3427c1f2d3dd:1a485efc83ccb32ab41d82aac09c51a8cfd152f5#9fe1192cb8b5553cded4b43217b57a99 - Cache
signature_verify_cbb_library/25.0.0.b002_001@openubmc/stable#f5d157cc857812a379375c8afba16cd4:a9fe77d7b2bffad1ebf1e8dab165db86b640f9bd#f22f163670fdd4333522611fe8de2ef0 - Cache
skynet/1.8.0.b001_006@openubmc/stable#9588dab601a89aba66a7ebc0894a4847:1b51f42be16a4f1228eed69ac0b8eba61e328af4#8c381b80b3a95fd403802bbefcfe3bf5 - Cache
sqlite3/3.42.0-3.oe2403sp1-h2.b001@openubmc/stable#1978e7ae91c9dcd92b8a1f039e573cf7:da1005d162cb06138700372b25dc9fabf1528f5f#d08a2e0f29b93c3c000059cf6fbcfb90 - Cache
storage/1.80.118@openubmc/rc#eec0f08905d2bbbac38333b00f521782:37b41c20fa849350ad506f9a07f22f70f0714b3f - Build
vpp/v300r025c10spc002b100_001@openubmc/stable#8904d688413ec6389a676ef359fdd3ed:85f4f3a12fe8c84381736c4225fb6fdd60dfc6fb#a97406aa0edcb9e5f05adc83fa69e559 - Cache
Build requirements
luajit/2.1.0.b015@openubmc/stable#14094f7ffb0da376531db179f4487ec7:0b52fc48b87507e319723902ccc53d568bc2ed01#cbac2ca34331e9e0e5192af8f6121150 - Cache
skynet/1.8.0.b001_006@openubmc/stable#9588dab601a89aba66a7ebc0894a4847:31227cd5386c5d59403e23fcef314eb048bea70f#debd5c491fd4a5ec6e7703b79c1f71c6 - Cache

======== Installing packages ========
boost/1.87.0.b003@openubmc/stable: Already installed! (1 of 21)
computing_component_raid/v100r001c00spc512b020_4@openubmc/stable: Already installed! (2 of 21)
hisec_tls/25.0.1.b002@openubmc/stable: Already installed! (3 of 21)
huawei_secure_c/1.0.2@openubmc/stable: Already installed! (4 of 21)
luajit/2.1.0.b015@openubmc/stable: Already installed! (5 of 21)
luajit/2.1.0.b015@openubmc/stable: Already installed! (6 of 21)
sqlite3/3.42.0-3.oe2403sp1-h2.b001@openubmc/stable: Already installed! (7 of 21)
skynet/1.8.0.b001_006@openubmc/stable: Already installed! (8 of 21)
skynet/1.8.0.b001_006@openubmc/stable: Already installed! (9 of 21)
json/b003_00004@openubmc/stable: Already installed! (10 of 21)
liblogger/1.90.5@openubmc/stable: Already installed! (11 of 21)
signature_verify_cbb_library/25.0.0.b002_001@openubmc/stable: Already installed! (12 of 21)
vpp/v300r025c10spc002b100_001@openubmc/stable: Already installed! (13 of 21)
kmc/24.1.5.b001_004@openubmc/stable: Already installed! (14 of 21)
libsomp/1.90.27@openubmc/stable: Already installed! (15 of 21)
libsoc_adapter/1.90.42@openubmc/stable: WARN: Trying to remove corrupted source folder
libsoc_adapter/1.90.42@openubmc/stable: WARN: This can take a while for big packages
libsoc_adapter/1.90.42@openubmc/stable: Calling source() in /root/.conan2/p/libsobd0533bb3f725/s
=================={‘branch’: ‘refs/tags/1.90.42’, ‘url’: None}
ERROR:
KeyError: ‘pwd’
ERROR: 执行命令 conan create --name storage --version 1.80.118 . -pr:h profile.luajit.ini -pr:b profile.dt.ini -s:a build_type=Debug --user openubmc --channel rc -o /:enable_luajit=True --build=storage/* --build=missing -u -f json --out-file=/tmp/tmpdesw2nq0.graph.json -tf= 错误, 日志: /root/.bmcgo_log/bingo.log
ERROR: Command ‘[‘conan’, ‘create’, ‘–name’, ‘storage’, ‘–version’, ‘1.80.118’, ‘.’, ‘-pr:h’, ‘profile.luajit.ini’, ‘-pr:b’, ‘profile.dt.ini’, ‘-s:a’, ‘build_type=Debug’, ‘–user’, ‘openubmc’, ‘–channel’, ‘rc’, ‘-o’, ‘/:enable_luajit=True’, ‘–build=storage/*’, ‘–build=missing’, ‘-u’, ‘-f’, ‘json’, ‘–out-file=/tmp/tmpdesw2nq0.graph.json’, ‘-tf=’]’ returned non-zero exit status 1.
ERROR: 请查看日志信息

CONAN_LOG_LEVEL=debug conan create --name storage --version 1.80.118 . -pr:h profile.luajit.ini -pr:b profile.dt.ini -s:a build_type=Debug --user openubmc --channel rc -o /:enable_luajit=True --build=storage/* --build=missing -u -f json --out-file=/tmp/tmpdesw2nq0.graph.json -tf=

自查,错误原因是

libsomp/1.90.27@openubmc/stable: Already installed! (15 of 21)
libsoc_adapter/1.90.42@openubmc/stable: WARN: Trying to remove corrupted source folder
libsoc_adapter/1.90.42@openubmc/stable: WARN: This can take a while for big packageslibsoc_adapter/1.90.42@openubmc/stable: Calling source() in /root/.conan2/p/libsobd0533bb3f725/s
=================={‘branch’: ‘refs/tags/1.90.42’, ‘url’: None}
ERROR: Traceback (most recent call last):
File “/usr/local/lib/python3.12/dist-packages/conan/internal/errors.py”, line 35, in conanfile_exception_formatter
yield
File “/usr/local/lib/python3.12/dist-packages/conan/internal/methods.py”, line 22, in run_source_method
conanfile.source()
File “/root/.conan2/p/libsobd0533bb3f725/e/conanbase.py”, line 108, in source
copy(self, “*”, src=sources[“pwd”], dst=“.”)
~~~~~~~^^^^^^^
KeyError: ‘pwd’

    KeyError: 'pwd'

本地未使用2509sdk导致,应替换~/sdk、~/rtos_compiler文件夹内所有内容为2509版本

收到,谢谢

涛哥 这俩目录的25.09版本的文件可以在哪里获取哦

试一下,把~/sdk/hi1711sdk.tar.gz里面的Module.symvers复制到/opt/hi1711sdk/目录下,然后执行

python3 init.py -path ./bmc_sdk.zip -user xxx …….

然后再编

1 个赞