[原创]在ubuntu下动手编译arm-elf工具

内核编译和嵌入式产品的设计与开发
头像
volans
帖子: 67
注册时间: 2006-11-15 14:28
来自: Beijing

#16

帖子 volans » 2007-03-14 16:40

似乎是你的编译器版本和程序要求的不相符,自己检查看看。
gcc -v
ping_tu
帖子: 3
注册时间: 2007-03-13 11:54

#17

帖子 ping_tu » 2007-03-19 17:38

我查了一下,是4.1.3,应该是比较新的
ping_tu
帖子: 3
注册时间: 2007-03-13 11:54

#18

帖子 ping_tu » 2007-03-19 17:38

我查了一下,是4.1.3,应该是比较新的
头像
volans
帖子: 67
注册时间: 2006-11-15 14:28
来自: Beijing

#19

帖子 volans » 2007-06-21 13:07

davesliu 写了:谢谢楼主的解答
4.1.2不是笔误,这是因为我用的GCC版本是4.1.2的。ubuntu系统自带的GCC版本是用新利得软件包自动升级的4.0.3版,但是自己去下载gcc-4.0.3.tar.bz2 用来编译gcc时老是报错,然后我用的gcc-4.1.2.tar.bz2 来代替的
main.c就是一个HELLO WORLD代码,用GEDIT写的,没有包含其他文件。
使用高版本编译低版本是会出现问题的,这一点都不奇怪。推荐使用相同版本或稍低的版本编译。
头像
forrid
帖子: 659
注册时间: 2007-04-23 17:40

#20

帖子 forrid » 2007-07-01 16:16

都是N人
我是一个没学过电子不懂嵌入式的人,领导却让我自学,有机会一定哟好好请教各位了。

吾生也有涯,而知也无涯,以有涯随无涯,SB啊~~~~~~~~~~
baozhumm
帖子: 82
注册时间: 2006-08-18 10:42

#21

帖子 baozhumm » 2007-07-25 11:42

可以帮帮我吗?我的gdb编译安装没成功。
./configure --target=arm-linux --prefix=/usr/local/arm-gdb (这步通过了)
make出的问题,提示如下:
checking for library containing strerror... none required
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
checking whether NLS is requested... yes
checking for catalogs to be installed...
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libunwind.h usability... no
checking libunwind.h presence... no
checking for libunwind.h... no
checking libunwind-ia64.h usability... no
checking libunwind-ia64.h presence... no
checking for libunwind-ia64.h... no
checking for monstartup... yes
checking for _mcleanup... yes
checking for _etext... yes
checking for gawk... no
checking for mawk... mawk
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for i686-pc-linux-gnu-ranlib... ranlib
checking for bison... /home/bzhu/soft/gdb-6.6/missing bison -y
checking for i686-pc-linux-gnu-ar... ar
checking for i686-pc-linux-gnu-dlltool... dlltool
checking for i686-pc-linux-gnu-windres... windres
checking for i686-pc-linux-gnu-mig... no
checking for mig... no
checking for main in -lm... yes
checking for wctype... yes
checking for library containing gethostbyname... none required
checking for library containing socketpair... none required
checking for library containing waddstr... no
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Error 1
make[1]: Leaving directory `/home/bzhu/soft/gdb-6.6'
make: *** [all] Error 2
贴了后面的一部分,不敢全贴,影响大家看帖!

checking for library containing gethostbyname... none required
checking for gcc option to accept ANSI C... none needed

后面的none required 和none needed 区别在那儿,包含这些函数的库都是必须要有的吗?

谢谢了!
baozhumm
帖子: 82
注册时间: 2006-08-18 10:42

#22

帖子 baozhumm » 2007-07-26 0:16

惭愧啊!原来gdb输出时候用了ncurses库,需要安装相应的开发包!唉,一个小问题搞了快一天!
秋天的童话
帖子: 9
注册时间: 2008-04-02 21:52

#23

帖子 秋天的童话 » 2008-05-16 18:02

好东西,今天晚上我也把这个平台搭一下的!这断时间一直在学LINUX,就是为了弄个arm linux平台出来,谢谢了!!!
另外,搂主有没有联系方式,如QQ什么的,
头像
ralph4
帖子: 43
注册时间: 2008-09-01 0:12

Re: [原创]在ubuntu下动手编译arm-elf工具

#24

帖子 ralph4 » 2009-08-16 13:10

mark
21grams
帖子: 29
注册时间: 2009-08-19 18:01

Re: [原创]在ubuntu下动手编译arm-elf工具

#25

帖子 21grams » 2009-08-19 18:34

怎么看不到论坛的地址?
回复