安装多个包时有时会遇到 error: method 'split' is not callable #4158
-
安装自建包仓库中的多个包时,有时会遇到某个包不能正常安装的问题,报如下错误: => install HiFi3_NatureDSP_Signal 0.2.4 .. ok
=> install hifi_common 0.2.5 .. failed
error: method 'split' is not callable (a nil value) 另一例子 => install hifi_common 0.2.5 .. ok
=> install cmsis 0.2.5 .. failed
error: method 'split' is not callable (a nil value) 这个问题经常遇到。报错后,如果重新执行安装往往能够安装成功。或者单独安装某个包也能成功安装。 附上简化的 xmake.lua(只是用来测试包安装) if is_plat("windows") then
set_toolchains("msvc")
elseif is_plat("cross") then
if is_arch("xtensa") then
add_rules("xtensa") -- 外部自定义的嵌入式工具链
set_toolchains("xcc")
end
end
local simStr = get_config("sim") or ""
add_requires(
"hifi_common" -- 依赖诸如 HiFi3_NatureDSP_Signal 之类的包
,{configs = {sim = simStr}, debug = is_mode("debug")}
)
option("sim")
option_end() |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 11 replies
-
给下带 -vD 的完整 error logs |
Beta Was this translation helpful? Give feedback.
-
为了编译能快点,换个包先…… ...
add_requires(
"ezd"
,"hifi_common"
,{configs = {sim = simStr}, debug = is_mode("debug")}
)
...
option("sim")
option_end() 然后,说明下,这里是嵌入式dsp平台,工具链是自定义的。 checking for sim ... HIFI4
checking for unzip ... ok
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
git rev-parse HEAD
finding ezd from xmake ..
checking for xmake::ezd ... no
finding cmsis from xmake ..
checking for xmake::cmsis ... cmsis 0.2.5
finding cmsis_sndp from xmake ..
checking for xmake::cmsis_sndp ... cmsis_sndp 0.2.5
finding HiFi4_NatureDSP_Signal from xmake ..
checking for xmake::HiFi4_NatureDSP_Signal ... HiFi4_NatureDSP_Signal 0.2.4
finding hifi_common from xmake ..
checking for xmake::hifi_common ... no
checking for ping ... ok
pinging for the host(soundplus.lab) ... 47 ms
git -c core.fsmonitor=false clean -d -f -x
Removing .xmake/
Removing build_6981575d/
Removing lib/
git -c core.fsmonitor=false reset --hard
HEAD is now at 234cd39 del | longjmp
xmake f --diagnosis --verbose --yes -y -c --sim=HIFI4 --plat=cross --arch=xtensa --mode=release --kind=static --buildir=build_2da8a3a5
checking for sim ... HIFI4
configure
{
clean = true
network = public
plat = cross
arch = xtensa
sim = HIFI4
ndk_stdcxx = true
kind = static
mode = release
proxy_pac = pac.lua
ccache = true
theme = default
host = windows
vs = 2019
buildir = build_2da8a3a5
}
xmake build --diagnosis --verbose --yes
checking for xt-xcc ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc ... ok
checking for flags (-fPIC) ... ok
> xt-xcc "-fPIC" "--xtensa-params="
checking for flags (-O3) ... ok
> xt-xcc "-O3" "--xtensa-params="
checking for flags (-DNDEBUG) ... ok
> xt-xcc "-DNDEBUG" "--xtensa-params="
checking for xt-xc++ ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++
checking for the c++ compiler (cxx) ... xt-xc++
[ 11%]: cache compiling.release src\core\eza.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -fvisibility=hidden -Wall -O3 -std=c99 -Isrc\core -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -DNDEBUG -o build_2da8a3a5\.objs\ezd\cross\xtensa\release\src\core\ezAccess.c.o src\core\ezAccess.c
checking for flags (-MMD -MF) ... ok
> xt-xcc "-MMD" "-MF" "C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_888DBEC51BD3473088061CC00955C880" "--xtensa-params="
checking for the c++ compiler (cxx) ... xt-xc++
[ 11%]: cache compiling.release src\core\ezd.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -fvisibility=hidden -Wall -O3 -std=c99 -Isrc\core -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -DNDEBUG -o build_2da8a3a5\.objs\ezd\cross\xtensa\release\src\core\ezd.c.o src\core\ezd.c
checking for flags (-fdiagnostics-color=always) ... no
> xt-xcc "-fdiagnostics-color=always" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fdiagnostics-color=always: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
checking for flags (-fcolor-diagnostics) ... no
> xt-xcc "-fcolor-diagnostics" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fcolor-diagnostics: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
src\core\ezd.c: In function 'initDetect':
src\core\ezd.c:204: warning: missing braces around initializer
src\core\ezd.c:204: warning: (near initialization for 'fMode[0]')
src\core\ezd.c: In function 'EnterNode':
src\core\ezd.c:439: warning: missing braces around initializer
src\core\ezd.c:439: warning: (near initialization for 'actTbl[0]')
src\core\ezd.c:437: warning: unused variable 'actTbl'
checking for xt-ar ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-ar
checking for the static library archiver (ar) ... xt-ar
[ 77%]: archiving.release libezd.a
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-ar -cr build_2da8a3a5\cross\xtensa\release\libezd.a build_2da8a3a5\.objs\ezd\cross\xtensa\release\src\core\eza.c.o
build cache stats:
cache directory: build_2da8a3a5\.build_cache
cache hit rate: 0%
cache hit: 0
cache miss: 6
new cached files: 6
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0
[100%]: build ok, spent 30.75s
xmake install -y --nopkgs -o C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580 --diagnosis --verbose --yes
installing ezd ..
installing ezd to C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580 ..
> copy build_2da8a3a5\cross\xtensa\release\libezd.a to C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\lib
> copy src\core\ezd.h to C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\include\ezd.h
install ok!
finding ezd from xmake ..
checking for xmake::ezd ... ezd 0.1.0
{
links = {
"ezd"
},
libfiles = {
"C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\lib\libezd.a"
},
static = true,
sysincludedirs = {
"C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\include"
},
linkdirs = {
"C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\lib"
},
version = "0.1.0"
}
patching C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\lib\pkgconfig\ezd.pc ..
checking for xt-xcc ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc ... ok
checking for flags (-fPIC) ... ok
> xt-xcc "-fPIC" "--xtensa-params="
> C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -isystem C:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\include -o C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_E838186EA5ED4B5080D4F298776D0060.o C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_D4FB4B8BF8954E18970FEE26DDA1C1EB.c
checking for flags (-fdiagnostics-color=always) ... no
> xt-xcc "-fdiagnostics-color=always" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fdiagnostics-color=always: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
checking for flags (-fcolor-diagnostics) ... no
> xt-xcc "-fcolor-diagnostics" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fcolor-diagnostics: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
checking for xt-xc++ ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++
checking for the c++ compiler (cxx) ... xt-xc++
checking for xt-xc++ ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++
checking for the linker (ld) ... xt-xc++
checking for C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++ ... ok
checking for flags (-fPIC) ... ok
> xt-xc++ "-fPIC"
> C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++ -o C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_E838186EA5ED4B5080D4F298776D0060.b C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_E838186EA5ED4B5080D4F298776D0060.o -LC:\Users\Dell\AppData\Local\.xmake\packages\e\ezd\0.1.0\2da8a3a5818c48bbbf6b6c38e6b03580\lib -lezd
> checking for c includes(ezd.h)
> checking for c links(ezd)
> checking for c snippet(has_cincludes)
=> install ezd 0.1.0 .. ok
git -c core.fsmonitor=false clean -d -f -x
Removing .xmake/
Removing build_2933a3a3/
git -c core.fsmonitor=false reset --hard
HEAD is now at 2dff8d3 fix | table conflicts with ext code in sqrt code
xmake f --diagnosis --verbose --yes -y -c --sim=HIFI4 --plat=cross --arch=xtensa --mode=release --kind=static --buildir=build_2933a3a3
checking for sim ... HIFI4
checking for unzip ... ok
checking for git ... ok
checking for gzip ... ok
checking for tar ... ok
checking for ping ... ok
pinging for the host(github.com) ... 1 ms
pinging for the host(gitee.com) ... 9 ms
pinging for the host(gitlab.com) ... 276 ms
git rev-parse HEAD
finding HiFi4_NatureDSP_Signal from xmake ..
checking for xmake::HiFi4_NatureDSP_Signal ... HiFi4_NatureDSP_Signal 0.2.4
configure
{
ndk_stdcxx = true
theme = default
sim = HIFI4
plat = cross
network = public
fake_hifi5 = false
ccache = true
proxy_pac = pac.lua
clean = true
kind = static
buildir = build_2933a3a3
mode = release
host = windows
arch = xtensa
}
xmake build --diagnosis --verbose --yes
checking for xt-xcc ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for the c compiler (cc) ... xt-xcc
checking for C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc ... ok
checking for flags (-fPIC) ... ok
> xt-xcc "-fPIC" "--xtensa-params="
checking for xt-xc++ ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xc++
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\dependence\HiFi2_24bit_func.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\HiFi2_24bit_func.c.o src\dependence\HiFi2_24bit_func.c
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\dependence\rfft_float.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\rfft_float.c.o src\dependence\rfft_float.c
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\dependence\HiFi2_24bit_NatureDSP.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\HiFi2_24bit_NatureDSP.c.o src\dependence\HiFi2_24bit_NatureDSP.c
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\scl_sqrt24x24.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\scl_sqrt24x24.c.o src\scl_sqrt24x24.c
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\legacy\vec_bexp24_hifi3.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\legacy\vec_bexp24_hifi3.c.o src\legacy\vec_bexp24_hifi3.c
checking for the c++ compiler (cxx) ... xt-xc++
[ 10%]: cache compiling.release src\rfft.c
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-xcc -c --xtensa-params= -g -Wall -O3 -std=c99 -Iinclude -Iinclude\dependence -Iinclude\legacy -DPROC_HIFI4 -DCONFIG_HIFI4 -isystem C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi4_naturedsp_signal\0.2.4\7ff512e04ccb4c13b33891c420e3bcd7\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\arch\include -isystem C:\usr\xtensa\XtDevTools\install\builds\RI-2020.5-win32\HIFI4\xtensa-elf\include -mcoproc -mlongcalls -pipe -fno-builtin -Wno-return-type -LNO:simd -fsigned-char -LNO:simd_v -fmessage-length=0 -fdata-sections -ffunction-sections -DNDEBUG -o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\rfft.c.o src\rfft.c
checking for flags (-MMD -MF) ... ok
> xt-xcc "-MMD" "-MF" "C:\Users\Dell\AppData\Local\Temp\.xmake\230901\_DA0AE2DD2A704D508ECE0326B24238D0" "--xtensa-params="
checking for flags (-fdiagnostics-color=always) ... no
> xt-xcc "-fdiagnostics-color=always" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fdiagnostics-color=always: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
checking for flags (-fcolor-diagnostics) ... no
> xt-xcc "-fcolor-diagnostics" "--xtensa-params="
checkinfo: @programdir\core\sandbox\modules\os.lua:273: xt-xcc ERROR parsing -fcolor-diagnostics: unknown flag
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[@programdir\core\sandbox\modules\os.lua:273]: in function 'runv'
[@programdir\modules\detect\tools\gcc\has_flags.lua:42]:
src\Sndp_NormData.c: In function 'Sndp_NormData_24F':
src\Sndp_NormData.c:35: warning: unused variable 'shftl'
src\Sndp_NormData.c:33: warning: unused variable 'acc'
src\Sndp_NormData.c: In function 'Sndp_NormData_24X2F':
src\Sndp_NormData.c:58: warning: unused variable 'shftl'
src\Sndp_NormData.c:56: warning: unused variable 'acc'
src\Sndp_NormData.c:55: warning: unused variable 'max'
src\Sndp_NormData.c: In function 'Sndp_NormData_24X2S':
src\Sndp_NormData.c:96: warning: unused variable 'shftl'
src\Sndp_NormData.c:94: warning: unused variable 'acc'
src\Sndp_NormData.c:93: warning: unused variable 'max'
src\Sndp_NormData.c: In function 'Sndp_NormData_32':
src\Sndp_NormData.c:132: warning: unused variable 'i'
src\Sndp_NormData.c:131: warning: unused variable 'acc2'
src\Sndp_NormData.c:131: warning: unused variable 'acc1'
src\Sndp_NormData.c:131: warning: unused variable 'acc'
src\Sndp_NormData.c:131: warning: unused variable 'max'
src\Sndp_NormData.c:130: warning: unused variable 'pIn'
checking for xt-ar ... C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-ar
checking for the static library archiver (ar) ... xt-ar
[ 80%]: archiving.release libhifi_common.a
C:\usr\xtensa\XtDevTools\install\tools\RI-2020.5-win32\XtensaTools\bin\xt-ar -cr build_2933a3a3\cross\xtensa\release\libhifi_common.a build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\HiFi2_24bit_func.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\HiFi2_24bit_NatureDSP.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\dependence\rfft_float.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\rfft.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\scl_sqrt24x24.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\Sndp_NormData.c.o build_2933a3a3\.objs\hifi_common\cross\xtensa\release\src\legacy\vec_bexp24_hifi3.c.o
build cache stats:
cache directory: build_2933a3a3\.build_cache
cache hit rate: 0%
cache hit: 0
cache miss: 7
new cached files: 7
remote cache hit: 0
remote new cached files: 0
preprocess failed: 0
compile fallback count: 0
[100%]: build ok, spent 15.657s
warning: target(hifi_common): unknown strip value '', it may be 'all'
xmake install -y --nopkgs -o C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749 --diagnosis --verbose --yes
installing hifi_common ..
installing hifi_common to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749 ..
> copy build_2933a3a3\cross\xtensa\release\libhifi_common.a to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\lib
> copy include\AttrTextInIram.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\AttrTextInIram.h
> copy include\dependence\HiFi2_24bit_def.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\dependence\HiFi2_24bit_def.h
> copy include\dependence\HiFi2_24bit_func.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\dependence\HiFi2_24bit_func.h
> copy include\dependence\HiFi2_24bit_NatureDSP.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\dependence\HiFi2_24bit_NatureDSP.h
> copy include\dependence\rfft_float.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\dependence\rfft_float.h
> copy include\hifi_common.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\hifi_common.h
> copy include\hifi_def.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\hifi_def.h
> copy include\rfft.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\rfft.h
> copy include\scl_sqrt24x24.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\scl_sqrt24x24.h
> copy include\Sndp_NormData.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\Sndp_NormData.h
> copy include\legacy\vec_bexp24_hifi3.h to C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\vec_bexp24_hifi3.h
install ok!
finding hifi_common from xmake ..
checking for xmake::hifi_common ... hifi_common 0.2.5
{
links = {
"hifi_common"
},
libfiles = {
"C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\lib\libhifi_common.a"
},
static = true,
sysincludedirs = {
"C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include",
"C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\include\dependence"
},
linkdirs = {
"C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\lib"
},
version = "0.2.5"
}
patching C:\Users\Dell\AppData\Local\.xmake\packages\h\hifi_common\0.2.5\2933a3a3f3ea4960ae3e490b9f9ee749\lib\pkgconfig\hifi_common.pc ..
> checking for c++ links(hifi_common, HiFi4_NatureDSP_Signal)
> checking for c++ snippet(test)
checkinfo: Error: there is no Xtensa core registered as the default.
You need to either specify the name of a registered Xtensa core (with
the --xtensa-core option or the XTENSA_CORE environment variable) or
specify a different registry of Xtensa cores (with the --xtensa-system
option or the XTENSA_SYSTEM environment variable).
error: Error: there is no Xtensa core registered as the default.
You need to either specify the name of a registered Xtensa core (with
the --xtensa-core option or the XTENSA_CORE environment variable) or
specify a different registry of Xtensa cores (with the --xtensa-system
option or the XTENSA_SYSTEM environment variable).
=> install hifi_common 0.2.5 .. failed
error: @programdir\modules\private\async\runjobs.lua:256: ...\modules\private\action\require\impl\actions\install.lua:469: install failed!
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:913]:
[...\modules\private\action\require\impl\actions\install.lua:469]: in function 'catch'
[@programdir\core\sandbox\modules\try.lua:123]: in function 'try'
[...\modules\private\action\require\impl\actions\install.lua:328]:
[...modules\private\action\require\impl\install_packages.lua:479]: in function 'jobfunc'
[@programdir\modules\private\async\runjobs.lua:232]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:913: in function 'base/os.raiselevel'
(...tail calls...)
@programdir\modules\private\async\runjobs.lua:256: in field 'catch'
@programdir\core\sandbox\modules\try.lua:123: in global 'try'
@programdir\modules\private\async\runjobs.lua:218: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:404: in function <@programdir\core\base\scheduler.lua:397> 这样看的话,表面上看是这个错 checkinfo: Error: there is no Xtensa core registered as the default.
You need to either specify the name of a registered Xtensa core (with
the --xtensa-core option or the XTENSA_CORE environment variable) or
specify a different registry of Xtensa cores (with the --xtensa-system
option or the XTENSA_SYSTEM environment variable). 这是工具链要求要加环境变量,才能正常使用,否则会报这个错。 toolchain("xcc")
on_check(function (toolchain)
...
os.setenv("XTENSA_CORE", xtCore)
os.setenv("XTENSA_SYSTEM", xtSystem)
...
end)
on_load(function (toolchain)
...
os.setenv("XTENSA_CORE", xtCore)
os.setenv("XTENSA_SYSTEM", xtSystem)
...
toolchain:set("toolset", "cc", "gcc@xt-xcc")
...
end)
toolchain_end() rule("xtensa")
on_load(function (target)
...
os.setenv("XTENSA_CORE", xtCore)
os.setenv("XTENSA_SYSTEM", xtSystem)
...
end)
rule_end() 经过几个月的使用,在没有依赖包时是一定能正常构建的。 |
Beta Was this translation helpful? Give feedback.
-
toolchain 环境不是走 os.setenv 加的。。参考 xmake/xmake/toolchains/emcc/xmake.lua Line 66 in 025c5e8 |
Beta Was this translation helpful? Give feedback.
-
早先有问过作者这个问题,但我这里的测试情况是只在 toolchain 定义里加的话,还是不能正常构建。于是就干脆能加的地方都加了…… toolchain("xcc")
on_check(function (toolchain)
...
os.setenv("XTENSA_CORE", xtCore)
os.setenv("XTENSA_SYSTEM", xtSystem)
toolchain:add("runenvs", "XTENSA_CORE", xtCore)
toolchain:add("runenvs", "XTENSA_SYSTEM", xtSystem)
...
end)
on_load(function (toolchain)
...
os.setenv("XTENSA_CORE", xtCore)
os.setenv("XTENSA_SYSTEM", xtSystem)
toolchain:add("runenvs", "XTENSA_CORE", xtCore)
toolchain:add("runenvs", "XTENSA_SYSTEM", xtSystem)
...
toolchain:set("toolset", "cc", "gcc@xt-xcc")
...
end)
toolchain_end() |
Beta Was this translation helpful? Give feedback.
-
去掉,有错误 就贴错误
xmake/xmake/modules/core/tools/gcc.lua Line 667 in 025c5e8 会传入 runenvs 执行 gcc,可以自己调下 |
Beta Was this translation helpful? Give feedback.
-
改了下,再试试, |
Beta Was this translation helpful? Give feedback.
改了下,再试试,
xmake update -s dev