Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-05

RV: Program exited with code 01

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

josepascual (almudi

Any suggestion?

Earlier message 56 lines
-----Mensaje original----- De: En nombre de josepascual (almudi) Enviado el: viernes, 04 de mayo de 2007 10:28 Para: 'FPC-Pascal users discussions' Asunto: [fpc-pascal] Program exited with code 01 Hi Everyone, I have compiled hello_eabi_arm (hello world!) with ppcrossarm and -GfSOFT option. I can run a hello world program with no problem (ldd say me there is not libraries needed) but if I use dl.pp I received next error (write below), ldd say libdl and libc.so.6 are needed. any suggestion? how can I discover what file or directory is missing for program, ================================================================= >$ ./hello_eabi_arm -bash: ./ hello_eabi_arm: No such file or directory >$ gdb hello_eabi_arm GNU gdb 6.5-debian Copyright (C) 2006 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 GDB was configured as "arm-linux-gnueabi"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /tmp/hello_eabi_arm /bin/bash: /tmp/hello_eabi_arm: No such file or directory /bin/bash: /tmp/hello_eabi_arm: Success Program exited with code 01. warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. You can't do that without a process to debug. (gdb) ================================================================= thanks, regards Jose Pascual

Reply by email

Henry Vermaak
to josepascual (almudi
josepascual wrote
>$ ./hello_eabi_arm -bash: ./ hello_eabi_arm: No such file or directory

...
...
...

(gdb) run Starting program: /tmp/hello_eabi_arm /bin/bash: /tmp/hello_eabi_arm: No such file or directory

so the file doesn't exist. did it not compile? if you want to link to these libraries, you need to make sure that they are somewhere in a lib directory under your toolchain. usually your cross-ld will be configured to look for the library in the right place, but otherwise you might have to give the option to fpc to look in the right dir for those libs.

henry

Reply by email

josepascual (almudi
to Henry Vermaak

Hi,

Show quoted text 16 lines
On 07/05/07, josepascual (almudi) wrote: > >$ ./hello_eabi_arm > -bash: ./ hello_eabi_arm: No such file or directory ... ... ... > (gdb) run > Starting program: /tmp/hello_eabi_arm > /bin/bash: /tmp/hello_eabi_arm: No such file or directory so the file doesn't exist. did it not compile? if you want to link to these libraries, you need to make sure that they are somewhere in a lib directory under your toolchain. usually your cross-ld will be configured to look for the library in the right place, but otherwise you might have to give the option to fpc to look in the right dir for those libs.

ppccrossarm generate executable file, error is when I run executable file from basch.

it's only happens if my program need from libdl and libc

Jose Pascual

Reply by email