• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 在64位ubuntun10.04下安装arm-linux-gcc遇到的问题。 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
楼主  发表于: 2010-08-03 16:31

 在64位ubuntun10.04下安装arm-linux-gcc遇到的问题。

我按照友善的手册上的步骤,
sudo tar -zxvf  *******  -C /  解压了文件  在/usr/local*** 下也找到了文件
sudo gedit /etc/environment,在最后一个:号之后和“号之前添加/usr/local/arm/4.3.2/bin:
注销
查看arm-linux-gcc 的安装情况如下;(总是第一次没有找到这个指令第二次才找到,而且 执行arm-linux-gcc -v所看到的结果与网友 的差别很大)



这是我的执行结果:
root@ubuntu:~# arm-linux-gcc -v
/usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: 没有那个文件或目录
/usr/local/arm/4.3.2/bin/arm-linux-gcc: line 3: /usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: 成功


网友的指令结果:由于是图片给个链接吧 :http://hi.baidu.com/chris_zheng/blog/item/d6c36a1eb7961af8e0fe0b9f.html
这个问题导致了我交叉编译不了内核,我都搞了两天了,实在是要崩溃了
清那位帮个忙
[ 此帖被kasim在2010-10-09 23:49重新编辑 ]
勤劳才是硬道理!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-08-03 18:16
你的ubuntu是64位的吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
2楼  发表于: 2010-08-03 18:45
是64位的
勤劳才是硬道理!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-08-03 21:55
那你需要安装ia32-libs (sudo apt-get install ia32-libs),友善之臂提供的工具链是for 32位Linux操作系统的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
4楼  发表于: 2010-08-03 22:25
问题终于解决,感谢版主的无私帮助,支持友善!!!
Any   words fail to express my thanks for you ......
勤劳才是硬道理!!
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
5楼  发表于: 2010-08-04 20:30
今天编译内核的时候又遇到了一个新的问题如下:

init/built-in.o: In function `do_one_initcall':
/home/huang/linux/linux-2.6.31.14/init/main.c:736: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `init_post':
/home/huang/linux/linux-2.6.31.14/init/main.c:832: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `name_to_dev_t':
/home/huang/linux/linux-2.6.31.14/init/do_mounts.c:78: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `rest_init':
/home/huang/linux/linux-2.6.31.14/init/main.c:446: undefined reference to `__gnu_mcount_nc'
init/built-in.o: In function `calibrate_delay':
/home/huang/linux/linux-2.6.31.14/init/calibrate.c:123: undefined reference to `__gnu_mcount_nc'
arch/arm/kernel/built-in.o:/home/huang/linux/linux-2.6.31.14/arch/arm/kernel/elf.c:8: more undefined references to `__gnu_mcount_nc' follow

有网友也遇到了同样的问题说是要下载arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2好像也是另外一个版本的交叉编译器,由于网速有点慢,我想问下这个工具编译的文件能直接在mini2440上运行吗,还是要作其他的配置才能,谢谢!!!
勤劳才是硬道理!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2010-08-05 06:11
看起来是你用的编译器太新了,内核需要打个补丁才行。
参考http://comments.gmane.org/gmane.linux.ports.arm.kernel/84568

使用方法:
$cd /home/huang/linux/linux-2.6.31.14
$gunzip -dc /path/to/__gnu_mcount_nc_patch.patch.gz |patch -p1
附件: __gnu_mcount_nc_patch.patch.gz (2 K) 下载次数:1138
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
7楼  发表于: 2010-08-05 14:51
终于生成了zImage文件,由于编译器的问题,耽误了我一些时间,不过也学到了一些东西,希望友善能够为其他的初学者提供64位的编译器,防止初学者走太多弯路,
再次感谢版主!!!!!
勤劳才是硬道理!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2010-08-05 15:48
不错, 圆满解决问题:)
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 侠客
UID: 10316
精华: 0
发帖: 56
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 112 分
注册时间: 2009-10-31
最后登录: 2012-06-15
9楼  发表于: 2010-08-05 22:34
还得归功于你的支持呀!!呵呵
对了,我现在是得到了zImge文件,我在ubuntun中该怎样把它下到板子上测试呀,因为还是用的supervivi,好像不支持网络下载把,能不能指点指点,谢谢!!
勤劳才是硬道理!!
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go