[fpc-devel] MIPS big-endian program starts but does nothing

Reinier Olislagers reinierolislagers at gmail.com
Mon Sep 8 20:25:26 CEST 2014

On 08/09/2014 20:05, Sven Barth wrote:
> Could you please recompile FPC with OPT="-gl" (maybe also -O-) and
> compile your test program with that options as well and then retest the
> GDB run?

Compiled cross-compiler:
opt="-O- -gl"
crossopt="-CpMIPS32R2 -CfSOFT"

Compiled program:
fpc -Tlinux -Pmips -CpMIPS32R2 -gl -O- hellomips.lpr

GDB run:
gdb ./hellomips

dlopen failed on 'libthread_db.so.1' - File not found
GDB will not be able to debug pthreads.

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mips-openwrt-linux"...
(gdb) run
Starting program: /usbstorage/backup/hellomips
Program received signal SIGINT, Interrupt.
GET_FSR () at C:/development/fpctrunk/rtl/mips/mips.inc:21
21      C:/development/fpctrunk/rtl/mips/mips.inc: No such file or
        in C:/development/fpctrunk/rtl/mips/mips.inc
Current language:  auto; currently pascal
(gdb) bt
#0  GET_FSR () at C:/development/fpctrunk/rtl/mips/mips.inc:21
#1  0x00401b5c in SYSINITFPU () at
#2  0x00401bd0 in FPC_CPUINIT ()
    at C:/development/fpctrunk/rtl/mips/mips.inc:75
#3  0x00429bb8 in fpc_initializeunits ()
    at C:/development/fpctrunk/rtl/inc/system.inc:872
#4  0x0040019c in main () at hellomips.lpr:16

More information about the fpc-devel mailing list