QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2680|回复: 2

菜鸟编译的问题,请大家多多指教啊..(已初步解决问题)

[复制链接]
发表于 2008-7-21 11:45:41 | 显示全部楼层 |阅读模式

我是一个菜鸟哈,刚刚接触到Linux就直奔看Skyeye去了~
但就在第一步的时候就出现了问题!

我用的系统也是Ubuntu7.10,就是在网上Ship来的啊~暂时没有装任何软件,除了小企鹅..
我想问你一下那里面的软件是不是足够来编译skyeye-1.0.0.tar.bz2包里的东西~
我没有装Arm-elf-linux交叉编译器..

按里面的README说明,直接make后出现许多的文字信息(从终端的最下端到最顶端都被写满了,所以有部分的信息没有显示出来),但没有编译成功..下面是能够显示的信息:

___________________________________________________________________________________-
arch/arm/dbct/arm2x86_dp.h: In function ‘gen_op_addl_T1_im’:
arch/arm/dbct/arm2x86_dp.h:35: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_dp.h:35: error: (Each undeclared identifier is reported only once
arch/arm/dbct/arm2x86_dp.h:35: error: for each function it appears in.)
arch/arm/dbct/arm2x86_dp.h:35: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_dp.h:35: error: ‘op_table_t’ has no member named ‘op’
arch/arm/dbct/arm2x86_dp.h:35: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_dp.h:35: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_dp.h:35: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_dp.h:37: warning: incompatible implicit declaration of built-in function ‘memcpy’
In file included from arch/arm/common/armdefs.h:672,
                 from arch/arm/common/armcopro.c:18:
arch/arm/dbct/arm2x86_movl.h: At top level:
arch/arm/dbct/arm2x86_movl.h:21: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_movl.h: In function ‘gen_op_movl_Tx_im’:
arch/arm/dbct/arm2x86_movl.h:23: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_movl.h:23: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_movl.h:23: error: ‘struct op_table_s’ has no member named ‘op’
arch/arm/dbct/arm2x86_movl.h:23: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:23: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:23: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:25: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_movl.h: At top level:
arch/arm/dbct/arm2x86_movl.h:32: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_movl.h: In function ‘gen_op_movl_tmpx_im’:
arch/arm/dbct/arm2x86_movl.h:34: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_movl.h:34: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_movl.h:34: error: ‘struct op_table_s’ has no member named ‘op’
arch/arm/dbct/arm2x86_movl.h:34: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:34: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:34: error: ‘struct op_table_s’ has no member named ‘len’
arch/arm/dbct/arm2x86_movl.h:36: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_movl.h: At top level:
arch/arm/dbct/arm2x86_movl.h:43: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_movl.h: In function ‘gen_op_movl_Tx_reg’:

....字数太多,这里省略一些以正常发出帖子!

arch/arm/dbct/arm2x86_other.h:114: error: ‘op_table_t’ has no member named ‘op’
arch/arm/dbct/arm2x86_other.h:114: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:114: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:114: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h: At top level:
arch/arm/dbct/arm2x86_other.h:119: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_other.h: In function ‘gen_op_b_offset’:
arch/arm/dbct/arm2x86_other.h:121: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_other.h:121: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_other.h:121: error: ‘op_table_t’ has no member named ‘op’
arch/arm/dbct/arm2x86_other.h:121: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:121: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:121: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:124: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_other.h:128: error: ‘ARMul_State’ has no member named ‘trap’
arch/arm/dbct/arm2x86_other.h: At top level:
arch/arm/dbct/arm2x86_other.h:132: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_other.h: In function ‘gen_op_bl_offset’:
arch/arm/dbct/arm2x86_other.h:134: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_other.h:134: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_other.h:134: error: ‘op_table_t’ has no member named ‘op’
arch/arm/dbct/arm2x86_other.h:134: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:134: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:134: error: ‘op_table_t’ has no member named ‘len’
arch/arm/dbct/arm2x86_other.h:137: warning: incompatible implicit declaration of built-in function ‘memcpy’
arch/arm/dbct/arm2x86_other.h:141: error: ‘ARMul_State’ has no member named ‘trap’
In file included from arch/arm/common/armdefs.h:679,
                 from arch/arm/common/armcopro.c:18:
arch/arm/dbct/arm2x86_coproc.h: At top level:
arch/arm/dbct/arm2x86_coproc.h:13: error: expected declaration specifiers or ‘...’ before ‘uint8_t’
arch/arm/dbct/arm2x86_coproc.h: In function ‘gen_op_add_imm_offset’:
arch/arm/dbct/arm2x86_coproc.h:20: error: ‘tbpp’ undeclared (first use in this function)
arch/arm/dbct/arm2x86_coproc.h:20: warning: passing argument 3 of ‘gen_op_addl_T1_im’ makes integer from pointer without a cast
arch/arm/dbct/arm2x86_coproc.h:20: error: too many arguments to function ‘gen_op_addl_T1_im’
In file included from arch/arm/common/armdefs.h:681,
                 from arch/arm/common/armcopro.c:18:
arch/arm/dbct/tb.h: At top level:
arch/arm/dbct/tb.h:19: error: expected specifier-qualifier-list before ‘uint8_t’
arch/arm/dbct/tb.h:29: error: expected specifier-qualifier-list before ‘uint8_t’
arch/arm/dbct/tb.h:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
arch/arm/common/armcopro.c: In function ‘XScale_debug_moe’:
arch/arm/common/armcopro.c:1572: warning: incompatible implicit declaration of built-in function ‘printf’
make: *** [binary/armcopro.o] Error 1
localhost@localdomain:~/src/skyeye/skyeye-1.0.0$

___________________________________________________________________________________
..
请问这是怎么一回事啊?(我想是不是少了一个什么包呢?几乎所有问题都出在arch/arm/dbct下的..)
能不能帮忙看一下呢?
再者有没有什么办法让编译的所有信息都输出到一个文件上来?()

[ 本帖最后由 needming 于 2008-7-22 09:11 编辑 ]
发表于 2008-7-21 12:19:19 | 显示全部楼层
make NO_DBCT=1 试试
回复

使用道具 举报

 楼主| 发表于 2008-7-21 13:12:10 | 显示全部楼层
试过了,呵呵,没有作用..
在网上搜了一下,先下了一个二进制的文件复制进去 了.
这里就顺利贴出来,目前还不清楚这个能不能用..因为现在对Linux还是非常地不熟!

下载一下Skyeyeinsight.tar.bz2,网上说是把它CP到根目录下然后解压就可以,其实不然.
我试过了,没有效果!
再回http://skyeye.sourceforge.net/wiki/um2这里查了一下,还是被我看到了有用的信息:
_____________________________________________________________--网页内容
2.1.1 Linux
Install SkyEye under linux distribution is quite easy. Download binary code of SkyEye , then copy it to /usr/local/bin or other directory. If you like to install from source code,please refer to 8. Compilation from the sources
_____________________________________________________________--网页内容
呵呵,其实我应该想到的,我之前在Cygwin中编译的时候就一次成功了,也是网上的文章说要将生成的Skyeye.exe复制到根目录下的/bin文件中!
在Skyeyyinsight中/bin中的skyeye可执行文件复制到/sur/local/bin下,然后我便试了一下:

root@dmg-ming:/home/dmg/src/skyeye/skyinsight/bin# skyeye -v
***************************************************************
****                                                       ****
****   SkyEye  Simulator Ver 0.8.5 with  GDB 5.3 Interface ****
****                                                       ****
***************************************************************
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf".

结果便这样了,呵呵,小弟还有一个问题就是这样可以用Skyeye来仿真了吗?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-22 20:22 , Processed in 0.149697 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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