[fpc-devel] ncurses example on arm linux uclibc

Nataraj S Narayan natarajsn at gmail.com
Fri Oct 23 17:10:56 CEST 2009


Hi

Getting better!

Yes, filesystem was built using 'buildroot' with toolchain with
--sysroot support.

# /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
firework.pp  -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/
-k"--sysroot=/usr/br-git-rf"
Free Pascal Compiler version 2.5.1 [2009/10/23] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
/usr/br-git-rf/usr/lib/libc.a(sigrestorer.os):(.ARM.exidx+0x0):
undefined reference to `__aeabi_unwind_cpp_pr1'
firework.pp(118,48) Error: Error while linking
firework.pp(118,48) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


regards

Nataraj

On Fri, Oct 23, 2009 at 8:32 PM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 23 Oct 2009, at 16:55, Nataraj S Narayan wrote:
>
>> Content of link.res:-
>
> Can you try adding
>
> -k"--sysroot=usr/br-git-rf"
>
> That option will only work if your linker has been configured/compiler with
> --with-sysroot though, which is probably why the compiler doesn't specify it
> by default. It seems -XR support is somewhat incomplete on Linux due to
> this...
>
>
> 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