• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Cannot execute fpc  (Read 888 times)
Scotty
Newbie
*

Karma: 0
Posts: 6


View Profile WWW
« on: November 28, 2009, 05:29:48 AM »

I want to use the Sheevaplug for an own-written game server. To compile the code I downloaded the ARM specific compiler of fpc (http://www.freepascal.org/down/arm/linux-ftp.freepascal.org.var). But fpc reports not to be a dynamic executable. Are there different ARM architectures, and how do I solve this issue?

Code: (ldd /usr/local/bin/fpc)
not a dynamic executable
Code: (file /usr/local/bin/fpc)
/usr/local/bin/fpc: ELF 32-bit LSB executable, ARM, version 1, statically linked, stripped
Code: (readelf -a /usr/local/bin/fpc)
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            ARM
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x8074
  Start of program headers:          52 (bytes into file)
  Start of section headers:          93516 (bytes into file)
  Flags:                             0x2, has entry point, GNU EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         2
  Size of section headers:           40 (bytes)
  Number of section headers:         7
  Section header string table index: 6
Code: (cat /proc/cpuinfo)
Processor : ARM926EJ-S rev 1 (v5l)
BogoMIPS : 1192.75
Features : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant : 0x2
CPU part : 0x131
CPU revision : 1
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128

Hardware : Feroceon-KW
Revision : 0000
Serial : 0000000000000000
Code: (cat /proc/version)
Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #1 on: November 28, 2009, 06:42:18 AM »

static link just mean everything program need is already linked in. have your try run the program?
Code:
readelf -a fpc |tail -30
will give better description of what the program compile target.
Logged

Good Luck Smiley

Scotty
Newbie
*

Karma: 0
Posts: 6


View Profile WWW
« Reply #2 on: November 28, 2009, 07:58:13 AM »

The difference between static vs. dynamic is known. Of couse, I tried to run the program first. Cannot execute or illegal instruction, something like that.
Logged

pingtoo
Sr. Member
****

Karma: 15
Posts: 318


View Profile
« Reply #3 on: November 28, 2009, 08:23:40 AM »

There many kind of ARM architectures. so you will need to get the one support arm5tel.

Good luck Smiley
Logged

Good Luck Smiley

Pages: [1]
Print
Jump to: