[fpc-devel] how to build FPC for armel
darekm at emadar.com
darekm at emadar.com
Sat Dec 12 17:14:34 CET 2009
>
> On 12 Dec 2009, at 15:38, darekm at emadar.com wrote:
>
>> /home/darek2008/fpcarm/arm-linux-uclibc/bin/ld:./link.res: file format
>> not
>> recognized; treating as linker script
>> /home/darek2008/fpcarm/arm-linux-uclibc/bin/ld:./link.res:289: syntax
>> error
I found the error
link.res should be so (its generic from compiler/systems/tlinux.pas):
/* Adjust the address for the data segment. We want to adjust up to
the same address within the page on the next page up. */
. = ALIGN(0x8000) - ((0x8000 - .) & (0x8000 - 1)); . =
DATA_SEGMENT_ALIGN (0x8000, 0x1000);
/* Exception handling */
I've it compare with my and codesourcery binutils
Darek
>> pp.pas(223,27) Error: Error while linking
>> pp.pas(223,27) Fatal: There were 1 errors compiling module, stopping
>> Fatal: Compilation aborted
>> make[3]: *** [ppcarm] Błąd 1
>> make[3]: Opuszczenie katalogu `/home/darek2008/svn-fpc/compiler'
>> make[2]: *** [cycle] Błąd 2
>> make[2]: Opuszczenie katalogu `/home/darek2008/svn-fpc/compiler'
>> make[1]: *** [compiler_cycle] Błąd 2
>> make[1]: Opuszczenie katalogu `/home/darek2008/svn-fpc'
>> make: *** [build-stamp.arm-linux] Błąd 2
>
> I can't help with uclibc, I have a regular GNU toolchain. What kind of
> linker are you using? (what does "ld --version" write?)
from toolchain
GNU ld version 2.17
Copyright 2005 Free Software Foundation, Inc.
>
>> the same as crossinstall build has success,
>
> That's probably because it doesn't recompile everything, so it is just
> copying some old files.
Its not that case
Darek
More information about the fpc-devel
mailing list