Hi Support,
We try to run menuconfig as below, but it fail because of "No valid terminal found, unable to open devshell".
We have seen temp/log.do_menuconfig log file, and it looks like many kinds of terminals have been checked but still fail as below. Do you have any idea how to fix this problem ?
Thanks a lot !
Regards,
Steven Yu
~/fsl-release-bsp-minimal/build-x11$ bitbake -c menuconfig linux-imx
WARNING: Host distribution "Ubuntu-16.04" 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.
Loading cache: 100% |###########################################################################################################################################| ETA: 00:00:00
Loaded 2792 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-x11"
DISTRO_VERSION = "4.1.15-2.0.1"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe
meta-multimedia = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp
meta-sdk = "HEAD:90399d99af8a2660ebe50b49752e95b210239fd9"
meta-browser = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5 = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-imx-4.1.15-r0 do_menuconfig: No valid terminal found, unable to open devshell
ERROR: linux-imx-4.1.15-r0 do_menuconfig: Function failed: do_menuconfig
ERROR: Logfile of failure stored in: /home/stephen/fsl-release-bsp-minimal/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_menuconfig.23036
ERROR: Task 5 (/home/stephen/fsl-release-bsp-minimal/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_menuconfig) failed with exit code '1'
NOTE: Tasks Summary: Attempted 253 tasks of which 252 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stephen/fsl-release-bsp-minimal/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_menuconfig
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
~/fsl-release-bsp-minimal/build-x11$ cat /home/stephen/fsl-release-bsp-minimal/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_menuconfig.23036
DEBUG: Executing python function do_menuconfig
DEBUG: Attempting to spawn terminal "custom"
DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
DEBUG: Attempting to spawn terminal "tmux-running"
DEBUG: Attempting to spawn terminal "tmux-new-window"
DEBUG: Attempting to spawn terminal "gnome"
DEBUG: Gnome-Terminal 3.10 or later does not support --disable-factory
DEBUG: Attempting to spawn terminal "konsole"
DEBUG: Attempting to spawn terminal "mate"
DEBUG: Attempting to spawn terminal "xfce"
DEBUG: Attempting to spawn terminal "terminology"
DEBUG: Attempting to spawn terminal "rxvt"
DEBUG: Attempting to spawn terminal "xterm"
DEBUG: Attempting to spawn terminal "tmux"
DEBUG: Attempting to spawn terminal "screen"
ERROR: No valid terminal found, unable to open devshell
DEBUG: Python function do_menuconfig finished
ERROR: Function failed: do_menuconfig
~/fsl-release-bsp-minimal/build-x11$
Hello,
the following - hope - helps.
https://community.nxp.com/thread/443991
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Yuri,
We have checked the information you provided, but it is a bad news.
1. we have checked if our system has ncurses library, and we found it has libncurses5-dev installed.
2. the xterm option has also been verified, but error logs show as below. The error looks like { Unsupported terminal "xterm", defaulting to "auto" }
~/fsl-release-bsp-minimal/build-x11$ bitbake linux-imx -c menuconfig
WARNING: Host distribution "Ubuntu-16.04" 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.
Loading cache: 100% |################################################################################################################################| ETA: 00:00:00
Loaded 2792 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-x11"
DISTRO_VERSION = "4.1.15-2.0.1"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe
meta-multimedia = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp
meta-sdk = "HEAD:90399d99af8a2660ebe50b49752e95b210239fd9"
meta-browser = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5 = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: linux-imx-4.1.15-r0 do_menuconfig: Unsupported terminal "xterm", defaulting to "auto"
ERROR: linux-imx-4.1.15-r0 do_menuconfig: No valid terminal found, unable to open devshell
ERROR: linux-imx-4.1.15-r0 do_menuconfig: Function failed: do_menuconfig
ERROR: Logfile of failure stored in: /home/stephen/fsl-release-bsp-minimal/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_menuconfig.26804
ERROR: Task 5 (/home/stephen/fsl-release-bsp-minimal/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_menuconfig) failed with exit code '1'
NOTE: Tasks Summary: Attempted 253 tasks of which 252 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stephen/fsl-release-bsp-minimal/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_menuconfig
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
~/fsl-release-bsp-minimal/build-x11$ cat /home/stephen/fsl-release-bsp-minimal/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_menuconfig.26804
DEBUG: Executing python function do_menuconfig
DEBUG: Attempting to spawn terminal "xterm"
WARNING: Unsupported terminal "xterm", defaulting to "auto"
DEBUG: Attempting to spawn terminal "custom"
DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
DEBUG: Attempting to spawn terminal "tmux-running"
DEBUG: Attempting to spawn terminal "tmux-new-window"
DEBUG: Attempting to spawn terminal "gnome"
DEBUG: Gnome-Terminal 3.10 or later does not support --disable-factory
DEBUG: Attempting to spawn terminal "konsole"
DEBUG: Attempting to spawn terminal "mate"
DEBUG: Attempting to spawn terminal "xfce"
DEBUG: Attempting to spawn terminal "terminology"
DEBUG: Attempting to spawn terminal "rxvt"
DEBUG: Attempting to spawn terminal "xterm"
DEBUG: Attempting to spawn terminal "tmux"
DEBUG: Attempting to spawn terminal "screen"
ERROR: No valid terminal found, unable to open devshell
DEBUG: Python function do_menuconfig finished
ERROR: Function failed: do_menuconfig
3. we also try to add dbus-launch before gnome-terminal, and the error messages are silimar.
~/fsl-release-bsp-minimal/build-x11$ cat /home/stephen/fsl-release-bsp-minimal/build-x11/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_menuconfig.11434 DEBUG: Executing python function do_menuconfig DEBUG: Attempting to spawn terminal "gnome" DEBUG: Gnome-Terminal 3.10 or later does not support --disable-factory WARNING: Unsupported terminal "gnome", defaulting to "auto" DEBUG: Attempting to spawn terminal "custom" DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set DEBUG: Attempting to spawn terminal "tmux-running" DEBUG: Attempting to spawn terminal "tmux-new-window" DEBUG: Attempting to spawn terminal "gnome" DEBUG: Gnome-Terminal 3.10 or later does not support --disable-factory DEBUG: Attempting to spawn terminal "konsole" DEBUG: Attempting to spawn terminal "mate" DEBUG: Attempting to spawn terminal "xfce" DEBUG: Attempting to spawn terminal "terminology" DEBUG: Attempting to spawn terminal "rxvt" DEBUG: Attempting to spawn terminal "xterm" DEBUG: Attempting to spawn terminal "tmux" DEBUG: Attempting to spawn terminal "screen" ERROR: No valid terminal found, unable to open devshell DEBUG: Python function do_menuconfig finished ERROR: Function failed: do_menuconfig