alsa-utils do compile cli.c:150:20: error: 'PACKAGE' undeclared (first use in this function)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

alsa-utils do compile cli.c:150:20: error: 'PACKAGE' undeclared (first use in this function)

跳至解决方案
771 次查看
gufengzi
Contributor III

tjt@kylin:~/src/yocto_imx/build-qpxwayland$ bitbake -c compile alsa-utils
Loading cache: 100% |#####################################################################################################################################| Time: 0:00:01
Loaded 5303 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.4.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6qpsabresd"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "6.1-mickledore"
TUNE_FEATURES = "arm vfp cortexa9 neon thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:0a98281d37b0bd8dc1548c390216cb3978e36e0e"
meta-oe
meta-multimedia
meta-python = "HEAD:75cf318cef3b4ee81fad2782cf063ecd69ba8842"
meta-freescale = "HEAD:9b00d40b787c2b7105ce209f5635cc1a0cab81ca"
meta-freescale-3rdparty = "HEAD:93ba05e3a16a028b770fa1e813b13eb87a59ac63"
meta-freescale-distro = "HEAD:b09c18a3f649f0cf1b40432bb39e76ba16fe94e2"
meta-bsp
meta-sdk
meta-ml
meta-v2x = "HEAD:6efe87f014c5bdcbda30f06156ee11d8bc3dc7fe"
meta-nxp-demo-experience = "HEAD:7f34a32c7877e55e87b6a99e90da4128ed632bf2"
meta-arm
meta-arm-toolchain = "HEAD:0e043288fd0b17fbf31cf00ae33045107a991144"
meta-chromium = "HEAD:e232c2e21b96dc092d9af8bea4b3a528e7a46dd6"
meta-clang = "HEAD:af4dcba009ba98250315520f3003fde4ee164cce"
meta-gnome
meta-networking
meta-filesystems = "HEAD:75cf318cef3b4ee81fad2782cf063ecd69ba8842"
meta-qt6 = "HEAD:1406d0a85525a71fe5d7892d7f915404290a78ad"
meta-parsec
meta-tpm = "HEAD:d7db0a3bd1a8639df7570483f003ce00cbe274a2"
meta-virtualization = "HEAD:56593e277a377157944a6676e57497066b770a35"

Initialising tasks: 100% |################################################################################################################################| Time: 0:00:00
Sstate summary: Wanted 0 Local 0 Mirrors 0 Missed 0 Current 268 (0% match, 100% complete)
NOTE: Executing Tasks
ERROR: alsa-utils-1.2.8-r0 do_compile: oe_runmake failed
ERROR: alsa-utils-1.2.8-r0 do_compile: ExecutionError('/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/temp/run.do_compile.839973', 1, None, None)
ERROR: Logfile of failure stored in: /home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/temp/log.do_compile.839973
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1
| Making all in include
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/include'
| make all-am
| make[2]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/include'
| make[2]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/include'
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/include'
| Making all in alsactl
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl'
| Making all in init
| make[2]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl/init'
| make[2]: Nothing to be done for 'all'.
| make[2]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl/init'
| make[2]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl'
| make[2]: Nothing to be done for 'all-am'.
| make[2]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl'
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsactl'
| Making all in utils
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/utils'
| make[1]: Nothing to be done for 'all'.
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/utils'
| Making all in m4
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/m4'
| make[1]: Nothing to be done for 'all'.
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/m4'
| Making all in po
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/po'
| make[1]: Nothing to be done for 'all'.
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/po'
| Making all in alsa-info
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsa-info'
| make[1]: Nothing to be done for 'all'.
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsa-info'
| Making all in alsamixer
| make[1]: Entering directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsamixer'
| arm-poky-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/recipe-sysroot -DHAVE_CONFIG_H -I. -I../../alsa-utils-1.2.8/alsamixer -I../include -I../../alsa-utils-1.2.8/include -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DCURSESINC="<ncurses.h>" -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/alsa-utils-1.2.8=/usr/src/debug/alsa-utils/1.2.8-r0 -fdebug-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/alsa-utils-1.2.8=/usr/src/debug/alsa-utils/1.2.8-r0 -fmacro-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build=/usr/src/debug/alsa-utils/1.2.8-r0 -fdebug-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build=/usr/src/debug/alsa-utils/1.2.8-r0 -fdebug-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/recipe-sysroot= -fmacro-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/recipe-sysroot= -fdebug-prefix-map=/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/recipe-sysroot-native= -c -o alsamixer-cli.o `test -f 'cli.c' || echo '../../alsa-utils-1.2.8/alsamixer/'`cli.c
| ../../alsa-utils-1.2.8/alsamixer/cli.c: In function 'main':
| ../../alsa-utils-1.2.8/alsamixer/cli.c:150:20: error: 'PACKAGE' undeclared (first use in this function)
| 150 | textdomain(PACKAGE);
| | ^~~~~~~
| ../../alsa-utils-1.2.8/alsamixer/cli.c:150:20: note: each undeclared identifier is reported only once for each function it appears in
| make[1]: Leaving directory '/home/tjt/src/yocto_imx/build-qpxwayland/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/alsa-utils/1.2.8-r0/build/alsamixer'
| make[1]: *** [Makefile:611: alsamixer-cli.o] Error 1
| make: *** [Makefile:458: all-recursive] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/tjt/src/yocto_imx/sources/poky/meta/recipes-multimedia/alsa/alsa-utils_1.2.8.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1248 tasks of which 1247 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/tjt/src/yocto_imx/sources/poky/meta/recipes-multimedia/alsa/alsa-utils_1.2.8.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.
tjt@kylin:~/src/yocto_imx/build-qpxwayland$

0 项奖励
回复
1 解答
718 次查看
gufengzi
Contributor III

clean up the package

download and compile again

success

在原帖中查看解决方案

0 项奖励
回复
4 回复数
719 次查看
gufengzi
Contributor III

clean up the package

download and compile again

success

0 项奖励
回复
752 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Are you building the whole image? e.g. imx-image-multimedia

 

0 项奖励
回复
749 次查看
gufengzi
Contributor III

bitbake imx-image-full

I run

0 项奖励
回复
750 次查看
gufengzi
Contributor III

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-mickledore -m imx-6.1.36-2.1.0.xml

DISTRO=fsl-imx-xwayland MACHINE=imx6qpsabresd source imx-setup-release.sh -b build-qpxwayland

0 项奖励
回复