查看: 4926|回复: 2

[已解决] 最新的uboot没法编译

[复制链接]

该用户从未签到

5

主题

12

帖子

0

注册会员

Rank: 2

积分
70
最后登录
2020-4-5
发表于 2018-9-2 16:13:12 | 显示全部楼层 |阅读模式
本帖最后由 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是哪个版本的呢?从您如上的信息中无法给出建议和意见。
回复

使用道具 举报

该用户从未签到

20

主题

809

帖子

1

超级版主

Rank: 8Rank: 8

积分
1566
最后登录
2023-1-17
发表于 2018-9-5 11:18:35 | 显示全部楼层
请问你这里使用的是哪个板子?BSP是哪个版本的呢?从您如上的信息中无法给出建议和意见。
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

1

帖子

0

新手上路

Rank: 1

积分
3
最后登录
2020-7-3
发表于 2020-7-3 16:50:56 | 显示全部楼层
楼主,我目前也遇到了和你这个一样的报错,请问你是怎么解决的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-21 07:34 , Processed in 0.087957 second(s), 24 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表