编译后运行不正常

42 views
Skip to first unread message

CJG

unread,
Feb 17, 2008, 9:53:10 PM2/17/08
to armware
请教一下,我在一Fedora的环境下编译了armware的执行程序,并按wiki的描述,进行了相关的设置,运行armware 异常,执行了几
步后就halt了。串口上打印如下信息:
U3
@0000047C
F04000000

*MTST.

我是从svn上获取的代码 (svn checkout http://armware.googlecode.com/svn/trunk/
armware-read-only )

gcc-3.4.5

wei....@gmail.com

unread,
Feb 18, 2008, 8:36:04 PM2/18/08
to armware
Dear CJG,

由於 ARMware 用到了大量的 C++ feature, 尤其是 template,
所以我想先請你把 gcc-3.4 5 換成 gcc-4.x 來 build 看看.
gcc-3 的 C++ 支援沒有 gcc-4.x 那麼好.
如果你用 gcc-4.x 來 build 還是會有問題,
那我們再來看是什麼原因.

註: gcc-4.x 目前最新版是 gcc-4.2.3

Thx.
Wei.

On Feb 18, 10:53 am, CJG <Cheng.Jiang...@gmail.com> wrote:
> 请教一下,我在一Fedora的环境下编译了armware的执行程序,并按wiki的描述,进行了相关的设置,运行armware 异常,执行了几
> 步后就halt了。串口上打印如下信息:
> U3
> @0000047C
> F04000000
>
> *MTST.
>
> 我是从svn上获取的代码 (svn checkouthttp://armware.googlecode.com/svn/trunk/
> armware-read-only )
>
> gcc-3.4.5

CJG

unread,
Feb 29, 2008, 12:23:28 AM2/29/08
to armware
Hi,
我用gcc-4.2.3来编译运行,发现还是同样的现象。gdb的信息如下:
0x081ea89f in ARMware::Core::exec_dt_buffer ()
(gdb) bt
#0 0x081ea89f in ARMware::Core::exec_dt_buffer ()
#1 0x081d8fe9 in ARMware::Core::exec ()
#2 0x081ded0f in ARMware::Core::run ()
#3 0x081eb54b in ARMware::start_machine ()
#4 0x083e7f73 in ARMware::MainWindow::OnMenuOperationPowerOn ()
#5 0x00c8e72a in Glib::SignalProxyNormal::slot0_void_callback
(self=0x9425350, data=0x94254a0)
at /opt//include/sigc++-2.0/sigc++/functors/slot.h:440
#6 0x0028f0ae in g_cclosure_marshal_VOID__VOID () from /usr/lib/
libgobject-2.0.so.0
#7 0x00277347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.
0
#8 0x0028d838 in g_signal_has_handler_pending () from /usr/lib/
libgobject-2.0.so.0
#9 0x0028e9bc in g_signal_emit_valist () from /usr/lib/
libgobject-2.0.so.0
#10 0x0028eb1c in g_signal_emit_by_name () from /usr/lib/
libgobject-2.0.so.0
#11 0x00586ce2 in gtk_tool_button_get_type () from /usr/lib/libgtk-
x11-2.0.so.0
#12 0x0028f0ae in g_cclosure_marshal_VOID__VOID () from /usr/lib/
libgobject-2.0.so.0
#13 0x00277347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.
0
#14 0x0028c94e in g_signal_has_handler_pending () from /usr/lib/
libgobject-2.0.so.0
#15 0x0028e9bc in g_signal_emit_valist () from /usr/lib/
libgobject-2.0.so.0
#16 0x0028ec5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0x00425294 in gtk_button_clicked () from /usr/lib/libgtk-
x11-2.0.so.0
#18 0x00426d0e in gtk_button_get_alignment () from /usr/lib/libgtk-
x11-2.0.so.0
#19 0x0028f0ae in g_cclosure_marshal_VOID__VOID () from /usr/lib/
libgobject-2.0.so.0
#20 0x002776b2 in g_cclosure_new_swap () from /usr/lib/
libgobject-2.0.so.0
#21 0x00277347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.
0
#22 0x0028c616 in g_signal_has_handler_pending () from /usr/lib/
libgobject-2.0.so.0
#23 0x0028e9bc in g_signal_emit_valist () from /usr/lib/
libgobject-2.0.so.0
#24 0x0028ec5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#25 0x004251dc in gtk_button_released () from /usr/lib/libgtk-
x11-2.0.so.0
#26 0x00426283 in gtk_button_set_relief () from /usr/lib/libgtk-
x11-2.0.so.0
#27 0x004dcd87 in gtk_marshal_VOID__UINT_STRING () from /usr/lib/
libgtk-x11-2.0.so.0
#28 0x002776b2 in g_cclosure_new_swap () from /usr/lib/
libgobject-2.0.so.0
#29 0x00277347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.
0
#30 0x0028d576 in g_signal_has_handler_pending () from /usr/lib/
libgobject-2.0.so.0

请看看有没有帮助!

谢谢
> > gcc-3.4.5- 隐藏被引用文字 -
>
> - 显示引用的文字 -

wei....@gmail.com

unread,
Mar 20, 2008, 5:11:11 AM3/20/08
to armware
Dear CJG,

I will use gcc-4.2.3 to build ARMware to see if this halting condition
is reproducible by myself.

On the other hand, it seems ARMware is crashed in executing dynamic
compiled codes.
You can turn off this dynamic compiler in the main makefile, and build
again.
After that, I think you will run ARMware without halting, but
suffering some performance losing. >_<

Wei.

CJG

unread,
May 15, 2008, 3:35:16 AM5/15/08
to armware
运行仍然不正常 提示如下:

....

root_filesystem_name=ramdisk
Grabbed linuxargs, argc=0000001
Using match_type 00000016
setting boot parameters to
root=/dev/mtdblock1 init=/linuxrc noinitrd console=ttySA0
mdcnfg=0000F367
Making core tag at c0000100
Making cmdline tag at C0000114
Making mem32 tag at C00001B4
command line is: mtdparts=ipaq:0x00040000@0x00000000(bootldr)ro,
0x00FC0000@0x0004
Disable LCD controller

linuxEntryPoint=c0008000
Booting Linux image
Uncompress Linux.....................................................

crc error

--system halted.

系统就挂住了,

能否告知,bootldr.bin和root.bin生成的流程是什么样的?
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -
Reply all
Reply to author
Forward
0 new messages