[fpc-devel] ncurses example on arm linux uclibc

Nataraj S Narayan natarajsn at gmail.com
Mon Oct 26 16:30:39 CET 2009


Yah! Jonas

Got it working this time!

# strings firework|grep ld
/usr/br-git-rf/lib/ld-uClibc.so.0
No child processes
Interrupted system call should be restarted
#

had to

# mkdir -p /usr/br-git-rf/lib/   and

cp /lib/ld-uClibc.so.0 /usr/br-git-rf/lib/

regards & thanks

Nataraj


On Mon, Oct 26, 2009 at 8:52 PM, Nataraj S Narayan <natarajsn at gmail.com> wrote:
> Jonas
>
> Got it linked with : after adding  {$linklib gcc_s} to program.
>
>
> #   /software/fpc-uclibc/lib/fpc/2.5.1/ppcrossarm -MObjFPC -TLinux
> -Parmv5 -gl -Xd -Xs -l -darm -XParm-linux-uclibcgnueabi- -CfSOFT
> -CaEABI -darm -gl -O- -CpARMV5 examples/firework.pp -uUSE_LOCALIZE
> -Fu/software/fpc-uclibc/lib/fpc/2.5.1/units/arm-linux/*
> -FL/usr/br-git-rf/lib/ld-uClibc.so.0 -XR/usr/br-git-rf/
> -Fl/usr/br-git-rf/lib  -Fl/usr/br-git-rf/usr/lib
> -k"--sysroot=/usr/br-git-rf"
>
> But dont execute on target:
> # ./firework
> -sh: ./firework: not found
>
> # ldd firework
> checking sub-depends for '/lib/libgcc_s.so.1'
> checking sub-depends for '/usr/lib/libncurses.so.5'
> checking sub-depends for '/lib/libc.so.0'
>        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00000000)
>        libncurses.so.5 => /usr/lib/libncurses.so.5 (0x00000000)
>        libc.so.0 => /lib/libc.so.0 (0x00000000)
>        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)
> # ls -l  /lib/libgcc_s.so.1
> -rw-r--r--    1 root     root       170833 Oct 21  2009 /lib/libgcc_s.so.1
> # ls -l /lib/libc.so.0
> lrwxrwxrwx    1 root     root           21 Oct 22  2009 /lib/libc.so.0
> -> libuClibc-0.9.30.1.so
>
> any clues
>
> regards
>
> Nataraj
>
>
> On Mon, Oct 26, 2009 at 8:44 PM, Nataraj S Narayan <natarajsn at gmail.com> wrote:
>> Jonas
>>
>> These are the ones.
>>
>> /usr/br-git-rf/lib/libgcc_s.so
>> /usr/br-git-rf/lib/libgcc_s.so.1
>> /usr/br-git-rf/usr/lib/gcc/arm-linux-uclibcgnueabi/4.3.4/libgcc.a
>> /usr/br-git-rf/usr/lib/gcc/arm-linux-uclibcgnueabi/4.3.4/libgcc_eh.a
>> /usr/br-git-rf/usr/lib/libgcc_s.so
>> /usr/br-git-rf/usr/lib/libgcc_s.so.1
>>
>> regs
>>
>> Nataraj
>>
>> On Mon, Oct 26, 2009 at 8:38 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>>>
>>> On 26 Oct 2009, at 16:01, Nataraj S Narayan wrote:
>>>
>>>> <gustavoz> you've got that symbol in libgcc so fpc is failing to link it
>>>> in
>>>> <gustavoz> you may need a command line switch for fpc to open it, it's
>>>> been ages since i've used fpc so i don't recall
>>>> <gustavoz> you may be able to set things right in fpc.cfg too
>>>>
>>>> Any help?
>>>
>>> As I said in my very first reply to you in this thread: "No idea whether
>>> these are part of libc or libgcc. You may also have to add {$linklib gcc} to
>>> your program and -Fl/path/to/libgcc to your command line."
>>>
>>> When using --sysroot, you may have to cut the sysroot form the/path/libgcc
>>> though.
>>>
>>>
>>> Jonas
>>> _______________________________________________
>>> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>>> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>>>
>>
>



More information about the fpc-devel mailing list