在线时间7 小时
UID3102644
注册时间2018-9-2
NXP金币0
该用户从未签到
注册会员

- 积分
- 70
- 最后登录
- 2020-4-5
|
本帖最后由 lonnox 于 2018-9-2 16:17 编辑
uboot下载地址:[size=13.3333px]git://git.freescale.com/imx/uboot-imx.git 分支:imx_v2017.03_4.9.11_1.0.0_ga
从服务器上下载的最新分支,make menuconfig 出错。错误提示如下
lonnox@ubuntu:/mnt/hgfs/imx6/uboot-imx$ make menuconfig
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
'/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: `ldflags()
./scripts/kconfig/check.sh: line 14: syntax error: unexpected end of file
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
'/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: `ldflags()
./scripts/kconfig/check.sh: line 14: syntax error: unexpected end of file
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
'/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: `ldflags()
./scripts/kconfig/check.sh: line 14: syntax error: unexpected end of file
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 3: $'\r': command not found
./scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: syntax error near unexpected token `$'\r''
'/scripts/kconfig/lxdialog/check-lxdialog.sh: line 5: `ldflags()
./scripts/kconfig/check.sh: line 14: syntax error: unexpected end of file
HOSTCC scripts/kconfig/mconf.o
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/lxdialog/dialog.h:26:10: error: #include expects "FILENAME" or <FILENAME>
#include CURSES_LOC
^~~~~~~~~~
scripts/kconfig/lxdialog/dialog.h:91:2: error: unknown type name ‘chtype’
chtype atr; /* Color attribute */
^~~~~~
scripts/kconfig/lxdialog/dialog.h:188:16: error: unknown type name ‘WINDOW’
int on_key_esc(WINDOW *win);
^~~~~~
scripts/kconfig/lxdialog/dialog.h:209:17: error: unknown type name ‘WINDOW’
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^~~~~~
scripts/kconfig/lxdialog/dialog.h:209:54: error: unknown type name ‘chtype’; did you mean ‘idtype_t’?
void attr_clear(WINDOW * win, int height, int width, chtype attr);
^~~~~~
idtype_t
scripts/kconfig/lxdialog/dialog.h:211:21: error: unknown type name ‘WINDOW’
void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x);
^~~~~~
scripts/kconfig/lxdialog/dialog.h:212:19: error: unknown type name ‘WINDOW’
void print_button(WINDOW * win, const char *label, int y, int x, int selected);
^~~~~~
scripts/kconfig/lxdialog/dialog.h:213:18: error: unknown type name ‘WINDOW’
void print_title(WINDOW *dialog, const char *title, int width);
^~~~~~
scripts/kconfig/lxdialog/dialog.h:214:15: error: unknown type name ‘WINDOW’
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^~~~~~
scripts/kconfig/lxdialog/dialog.h:214:66: error: unknown type name ‘chtype’; did you mean ‘idtype_t’?
void draw_box(WINDOW * win, int y, int x, int height, int width, chtype box,
^~~~~~
idtype_t
scripts/kconfig/lxdialog/dialog.h:215:8: error: unknown type name ‘chtype’; did you mean ‘idtype_t’?
chtype border);
^~~~~~
idtype_t
scripts/kconfig/lxdialog/dialog.h:216:18: error: unknown type name ‘WINDOW’
void draw_shadow(WINDOW * win, int y, int x, int height, int width);
^~~~~~
scripts/kconfig/mconf.c: In function ‘conf’:
scripts/kconfig/lxdialog/dialog.h:85:29: error: ‘KEY_MAX’ undeclared (first use in this function); did you mean ‘TMP_MAX’?
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
scripts/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^~~~~~~~~~~~~~~~~~
scripts/kconfig/lxdialog/dialog.h:85:29: note: each undeclared identifier is reported only once for each function it appears in
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
scripts/kconfig/mconf.c:671:45: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL)
^~~~~~~~~~~~~~~~~~
scripts/kconfig/mconf.c: In function ‘show_help’:
scripts/kconfig/mconf.c:793:19: warning: implicit declaration of function ‘getmaxx’; did you mean ‘gettext’? [-Wimplicit-function-declaration]
help.max_width = getmaxx(stdscr) - 10;
^~~~~~~
gettext
scripts/kconfig/mconf.c:793:27: error: ‘stdscr’ undeclared (first use in this function); did you mean ‘stderr’?
help.max_width = getmaxx(stdscr) - 10;
^~~~~~
stderr
In file included from scripts/kconfig/mconf.c:23:0:
scripts/kconfig/mconf.c: In function ‘conf_choice’:
scripts/kconfig/lxdialog/dialog.h:85:29: error: ‘KEY_MAX’ undeclared (first use in this function); did you mean ‘TMP_MAX’?
#define ERRDISPLAYTOOSMALL (KEY_MAX + 1)
^
scripts/kconfig/mconf.c:855:9: note: in expansion of macro ‘ERRDISPLAYTOOSMALL’
case -ERRDISPLAYTOOSMALL:
^~~~~~~~~~~~~~~~~~
scripts/Makefile.host:116: recipe for target 'scripts/kconfig/mconf.o' failed
make[1]: *** [scripts/kconfig/mconf.o] Error 1
Makefile:478: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
最佳答案
请问你这里使用的是哪个板子?BSP是哪个版本的呢?从您如上的信息中无法给出建议和意见。
|
|