Recent

Author Topic: Binutils for crosscompiling to ARM  (Read 6632 times)

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Binutils for crosscompiling to ARM
« on: November 26, 2009, 11:57:56 pm »
I'm trying to compile fpc (v2.5.1 from svn) for ARM by "make all CPU_TARGET=arm" which runs fine until ld and as are called. Where can I find arm-linux-ld|as?
Lazarus 1.7 (SVN) FPC 3.0.0

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Binutils for crosscompiling to ARM
« Reply #1 on: November 27, 2009, 03:35:44 pm »
No way to avoid self compiling  %)
First, I downloaded binutils-source with Synaptic (/usr/src/), decompressed and followed the (german) instructions at http://wiki.ubuntuusers.de/GNU_ARM-Toolchain. Some patches were neccessary for tc-arm.c, google helps.
Now I have arm-elf-ld|-as that I softlinked to arm-linux-ld|-as. Make fpc with cpu_target runs well but "make install" produces an error:

Code: [Select]
...
/usr/bin/install -m 755 -d /usr/local/bin
/usr/bin/install -c -m 755 plex pyacc /usr/local/bin
fpcmake -p -Tarm-linux Makefile.fpc
/usr/local/bin/fpcmake: 1: Syntax error: word unexpected (expecting ")")
make[4]: *** [fpc_install] Fehler 2
make[4]: Verlasse Verzeichnis '/usr/local/share/fpc/utils/tply'
make[3]: *** [tply_install] Fehler 2
make[3]: Verlasse Verzeichnis '/usr/local/share/fpc/utils'
make[2]: *** [utils_distinstall] Fehler 2
make[2]: Verlasse Verzeichnis '/usr/local/share/fpc'
make[1]: *** [installother] Fehler 2
make[1]: Verlasse Verzeichnis '/usr/local/share/fpc'
make: *** [install] Fehler 2

The compiler ppcarm was moved correctly to /usr/local/lib/fpc/2.5.1 but cannot be executed: ldd says "not a dynamic executable". The file /usr/local/bin/fpc has been overridden and can't be executed as well. All following makes fail on

Code: [Select]
/usr/local/bin/fpc: 1: Syntax error: word unexpected (expecting ")")Fortunately, by deleting and creating a softlink to ppcx64 I can continue programming  8)
What did I wrong? Should I better try to install fpc on the arm-machine? It's a Sheevaplug with following specs:

Code: Text  [Select][+][-]
  1. Processor       : ARM926EJ-S rev 1 (v5l)
  2. BogoMIPS        : 1192.75
  3. Features        : swp half thumb fastmult edsp
  4. CPU implementer : 0x56
  5. CPU architecture: 5TE
  6. CPU variant     : 0x2
  7. CPU part        : 0x131
  8. CPU revision    : 1
  9. Cache type      : write-back
  10. Cache clean     : cp15 c7 ops
  11. Cache lockdown  : format C
  12. Cache format    : Harvard
  13. I size          : 16384
  14. I assoc         : 4
  15. I line length   : 32
  16. I sets          : 128
  17. D size          : 16384
  18. D assoc         : 4
  19. D line length   : 32
  20. D sets          : 128
  21.  
  22. Hardware        : Feroceon-KW
  23. Revision        : 0000
  24. Serial          : 0000000000000000
  25.  
« Last Edit: November 27, 2009, 03:37:27 pm by Ocye »
Lazarus 1.7 (SVN) FPC 3.0.0

 

TinyPortal © 2005-2018