On Wed, Oct 9, 2013 at 5:32 AM, Selina Lai <yingj...@gmail.com> wrote: > Hi, > > I used gdb on linux but can't launch the executable file > [selina@ipbs6 node-v0.10.20]$ gdb ~/images/nodes/bin/node > GNU gdb (GDB) Fedora (7.3.50.20110722-16.fc16) > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-redhat-linux-gnu". > For bug reporting instructions, please see: > http://www.gnu.org/software/gdb/bugs/... > Reading symbols from /home/selina/images/nodes/bin/node...done. > (gdb) run > Starting program: /home/selina/images/nodes/bin/node > /bin/bash: /home/selina/images/nodes/bin/node: cannot execute binary file > During startup program exited with code 126. > > I used mipsel-linux-gdb on linux, no messages appeared > [selina@ipbs6 node-v0.10.20]$ mipsel-linux-gdb ~/images/nodes/bin/node > GNU gdb (GDB) 7.3.1 > Copyright (C) 2011 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "--host=x86_64-unknown-linux-gnu > --target=mipsel-linux-uclibc". > For bug reporting instructions, please see: > http://www.gnu.org/software/gdb/bugs/... > Reading symbols from /home/selina/images/nodes/bin/node...done. > (gdb) run > Starting program: /home/selina/images/nodes/bin/node > Don't know how to run. Try "help target". > (gdb) run exec > Starting program: /home/selina/images/nodes/bin/node exec > Don't know how to run. Try "help target". > (gdb) help target > Connect to a target machine or process. > The first argument is the type or protocol of the target machine. > Remaining arguments are interpreted by the target protocol. For more > information on the arguments for a particular protocol, type > `help target ' followed by the protocol name. > > List of target subcommands: > > target core -- Use a core file as a target > target exec -- Use an executable file as a target > target extended-remote -- Use a remote computer via a serial line > target record -- Log program while executing and replay execution from log > target record-core -- Log program while executing and replay execution from > log > target remote -- Use a remote computer via a serial line > target sim -- Use the compiled-in simulator > target tfile -- Use a trace file as a target > > Type "help target" followed by target subcommand name for full > documentation. > > (gdb) target exec /home/selina/images/nodes/bin/node > (gdb) > > > > BTW, the file format is as below > [selina@ipbs6 node-v0.10.20]$ file /home/selina/images/nodes/bin/node > /home/selina/images/nodes/bin/node: ELF 32-bit LSB executable, MIPS, MIPS32 > rel2 version 1, dynamically linked (uses shared libs), with unknown > capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x1040000, > not stripped > > How to setup the static link? Maybe my system can't find the library?
What does `file` report for other dynamically linked binaries on your system? -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.