NXP Yocto 5.4.3: vim build error

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

NXP Yocto 5.4.3: vim build error

跳至解决方案
5,246 次查看
sergei_p
Contributor III

Hi,

I'm trying to build "vim" with NXP Release Linux 5.4.3_1.0.0  for IMX8MMini EVK and getting error:

[psl@sergmir build-8mmcube-20200513]$ bitbake vim
WARNING: Host distribution "fedora-27" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |#################################################| Time: 0:01:14
Parsing of 2876 .bb files complete (0 cached, 2876 parsed). 4067 targets, 247 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.44.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "fedora-27"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8mmevk"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.4-zeus"
TUNE_FEATURES = "aarch64 cortexa53 crc crypto"
TARGET_FPU = ""
meta
meta-poky = "HEAD:0275e68b0576cdefc19718e4b1977044f9f43f48"
meta-oe
meta-multimedia
meta-python = "HEAD:aad5b3d070cd8c58828b0975cf861d8ebc90f460"
meta-freescale = "HEAD:0be39721cea6e04c589a419f4bb07fabd0da6704"
meta-freescale-3rdparty = "HEAD:aea3771baa77e74762358ceb673d407e36637e5f"
meta-freescale-distro = "HEAD:ca27d12e4964d1336e662bcc60184bbff526c857"
meta-bsp
meta-sdk
meta-ml = "HEAD:435f5e984856a943986491fddd061734a0b9eba5"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust = "HEAD:5cda04c7c2158fc982502ca1e7893f71e4ca1729"
meta-gnome
meta-networking
meta-filesystems = "HEAD:aad5b3d070cd8c58828b0975cf861d8ebc90f460"
meta-qt5 = "HEAD:432ad2aa6c3a13253fefc909faba368851d21fb1"

Initialising tasks: 100% |##############################################| Time: 0:00:02
Sstate summary: Wanted 17 Found 6 Missed 11 Current 638 (35% match, 98% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: vim-8.1.1518-r0 do_compile: oe_runmake failed
ERROR: vim-8.1.1518-r0 do_compile: Execution of '/mnt/build2/IMX8M/8MCube-TOFkit/imx-5.4.3/build-8mmcube-20200513/tmp/work/aarch64-poky-linux/vim/8.1.1518-r0/temp/run.do_compile.2334' failed with exit code 1:

...

make[2]: Leaving directory '/mnt/build2/IMX8M/8MCube-TOFkit/imx-5.4.3/build-8mmcube-20200513/tmp/work/aarch64-poky-linux/vim/8.1.1518-r0/git/src/po'
gui_gtk_f.c:38:11: fatal error: gdk/gdkx.h: No such file or directory
38 | # include <gdk/gdkx.h>
| ^~~~~~~~~~~~
compilation terminated.
gui_gtk.c:82:12: fatal error: gdk/gdkx.h: No such file or directory
82 | # include <gdk/gdkx.h>
| ^~~~~~~~~~~~
compilation terminated.
gui_gtk_x11.c:92:12: fatal error: gdk/gdkx.h: No such file or directory
92 | # include <gdk/gdkx.h>
| ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:3065: objects/gui_gtk_x11.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:3059: objects/gui_gtk_f.o] Error 1
make[1]: *** [Makefile:3056: objects/gui_gtk.o] Error 1
make[1]: Leaving directory '/mnt/build2/IMX8M/8MCube-TOFkit/imx-5.4.3/build-8mmcube-20200513/tmp/work/aarch64-poky-linux/vim/8.1.1518-r0/git/src'
make: *** [Makefile:29: first] Error 2
WARNING: /mnt/build2/IMX8M/8MCube-TOFkit/imx-5.4.3/build-8mmcube-20200513/tmp/work/aarch64-poky-linux/vim/8.1.1518-r0/temp/run.do_compile.2334:1 exit 1 from 'exit 1'

ERROR: Logfile of failure stored in: /mnt/build2/IMX8M/8MCube-TOFkit/imx-5.4.3/build-8mmcube-20200513/tmp/work/aarch64-poky-linux/vim/8.1.1518-r0/temp/log.do_compile.2334

vim-tiny doesn't build as well.

Any hints? Thanks in advance.

1 解答
4,940 次查看
radhikasomaiya
Senior Contributor II

Hi Sergei Poselenov,

We are able to build vim with xwayland DISTRO for that, we have added below line to vim_8.1.1518.bb file (sources/poky/meta/recipes-support/vim/vim_8.1.1518.bb). With x11 we are facing an issue while trying to build with xwayland, because GTK+3 doesn't install X11-related files like gdkx.h. for vim. so we have removed x11 feature for the vim. You can refer this link.

         

      PACKAGECONFIG_remove = "x11"

I hope this will help you.

Regards,

Radhika Somaiya.

在原帖中查看解决方案

5 回复数
2,117 次查看
ziv_chen
Contributor I

I encounter the same issue, vim build failed due to 'undefined reference xxx'

But it finally pass if I continuously build it, such as: 

while true; do bitbake imx-image-desktop; sleep 1; done

 

Maybe you can try to build with single task and see if the required libs are built prior than vim itself. 

0 项奖励
回复
4,941 次查看
radhikasomaiya
Senior Contributor II

Hi Sergei Poselenov,

We are able to build vim with xwayland DISTRO for that, we have added below line to vim_8.1.1518.bb file (sources/poky/meta/recipes-support/vim/vim_8.1.1518.bb). With x11 we are facing an issue while trying to build with xwayland, because GTK+3 doesn't install X11-related files like gdkx.h. for vim. so we have removed x11 feature for the vim. You can refer this link.

         

      PACKAGECONFIG_remove = "x11"

I hope this will help you.

Regards,

Radhika Somaiya.

4,940 次查看
sergei_p
Contributor III

Thanks Radhika!

4,940 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Sergei,

I tested it, see steps below, please!

-------------------

1. cd ~/imx-yocto-bsp-5.4.3_1.0.0/

2. DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source imx-setup-release.sh -b build-wayland

3. add vim to local.conf

MACHINE ??= 'imx8mmevk'
DISTRO ?= 'fsl-imx-wayland'
PACKAGE_CLASSES ?= 'package_rpm'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

IMAGE_INSTALL_append = " vim"

4. bitbake vim -c compile

pastedImage_2.png

pastedImage_5.png

So it is no problem.

Hope the test is helpful to you.

B.R,

Weidong

0 项奖励
回复
4,940 次查看
sergei_p
Contributor III

Hi Weidong,

I see now. The "vim" recipe builds for the "fsl-imx-wayland" DISTRO, but fails for me for "fsl-imx-xwayland". Could you please verify this? Thanks!

Regards,

Sergei

0 项奖励
回复