Recent

Author Topic: Lazarus 1.6 broke my app  (Read 13908 times)

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #15 on: September 12, 2016, 02:22:40 pm »
BeniBela, the trunk version of FPC has a lot of bug fixes and improvements for Android.
See the Known issues here: http://wiki.freepascal.org/Android#Known_issues

Quote
Shared libraries compiled with FPC 3.0 does not work on Android 6.0+ and executables does not run on Android 5.0+. Starting from Android 6.0 (Marshmallow), it is required to build PIC compatible shared libraries. Starting from Android 5.0 (Lollipop), it is required to build PIC compatible executables (PIE).
PIC support for the Android target is present only in FPC 3.1.1 (development version).

That is weird

So far everything has been working fine on Android 6.0+ with "Free Pascal Compiler version 3.0.0 [2016/03/27] for arm"

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #16 on: September 20, 2016, 01:09:51 am »
Did I forget how to compile fpc? :(

Quote
Code: [Select]
$ make
Makefile:209: *** The Makefile doesn't support target can't-executed,, please run fpcmake first.  Stop.
$ fpcmake
Processing Makefile.fpc
 x86_64-linux requires:
 Writing Makefile
$make
Makefile:209: *** The Makefile doesn't support target can't-executed,, please run fpcmake first.  Stop.


Thaddy

  • Hero Member
  • *****
  • Posts: 18791
  • Glad to be alive.
Re: Lazarus 1.6 broke my app
« Reply #17 on: September 20, 2016, 09:15:44 am »
No, you have a rogue makefile, maybe even a broken configuration. Examine the makefile and makefile.fpc for clues.
I get these too sometimes but never on my build-farm, because that always does a complete rm -rf, checkout and export.
Local builds (with local patches) sometimes fail like that after building several targets. No clue why, but checking out the makefile again mostly works for me.
I had to revert to re-creating the makefiles myself only in a very few cases.
Recovered from removal of tumor in tongue following tongue reconstruction with a part from my leg.

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #18 on: September 20, 2016, 11:54:47 pm »
I did that. svn revert/cleanup/export.

Perhaps I had fpc in that directory and the reverting removed it?

Because now

Code: [Select]
$ fpc
Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127

seems now I need to call the make with "PP=/usr/local/lib/fpc/3.0.0/ppcx64" and fpc with -Xp/usr/local/lib/fpc/3.0.0/.
« Last Edit: September 21, 2016, 12:25:23 am by BeniBela »

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #19 on: September 21, 2016, 12:56:59 am »
This made it worse:

Code: [Select]
RunTool /usr/local/lib/fpc/3.1.1/ppcrossarm "-iWTOTP"
RunTool /usr/local/lib/fpc/3.1.1/ppcrossarm "-va" "compilertest.pas"
Warning: (lazarus) Duplicate unit "lazaruspackageintf" in "FCL 1.0.1", ppu="/opt/lazarus/packager/units/arm-android/lazaruspackageintf.ppu", source="/opt/lazarus/packager/registration/lazaruspackageintf.pas"
Warning: (lazarus) Duplicate unit "lazaruspackageintf" in "LazUtils 1.0", orphaned ppu "/opt/lazarus/components/lazutils/lib/arm-android/lazaruspackageintf.ppu"
Hint: (lazarus) Execute Title="Compile Project, OS: android, CPU: arm, Target: libvidelibriandroid.so", Working Directory="/home/benito/hg/programs/internet/VideLibri/android/", Executable="/usr/local/lib/fpc/3.1.1/ppcrossarm" Params:"-Tandroid -Parm -MObjFPC -Scghi -O1 -Xs -XX -l -vewnhibq -Fi/home/benito/hg/programs/internet/VideLibri/android/lib/arm-android -Fu/home/benito/hg/components/pascal/data -Fu/home/benito/hg/programs/contests/euler -Fu/home/benito/hg/components/pascal/internet -Fu/home/benito/hg/components/lazarus/dialogs -Fu/home/benito/hg/components/pascal/system -Fu/home/benito/hg/components/pascal/import/regexpr/source -Fu/home/benito/hg/programs/internet/VideLibri -Fu/opt/lazarus/lcl/interfaces/customdrawn/android -Fu/opt/lazarus/lcl/units/arm-android/nogui -Fu/opt/lazarus/lcl/units/arm-android -Fu/opt/lazarus/components/lazutils/lib/arm-android -Fu/opt/lazarus/packager/units/arm-android -Fu/home/benito/hg/programs/internet/VideLibri/android/ -FU/home/benito/hg/programs/internet/VideLibri/android/lib/arm-android/ -olibvidelibriandroid.so -dLCL -dLCLnogui -dANDROID -Xd -gl -oandroid/libs/armeabi/liblclapp.so videlibriandroid.pas"
Hint: (11030) Start of reading config file /home/benito/.fpc.cfg
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /home/benito/.fpc.cfg
Free Pascal Compiler version 3.1.1 [2016/09/21] for arm
Copyright (c) 1993-2016 by Florian Klaempfl and others
(1002) Target OS: Android for ARMEL
(3104) Compiling videlibriandroid.pas
/home/benito/hg/programs/internet/VideLibri/android/videlibriandroid.pas(12,20) Hint: (5023) Unit "libraryAccess" not used in videlibriandroid
/home/benito/hg/programs/internet/VideLibri/android/videlibriandroid.pas(12,35) Hint: (5023) Unit "jni" not used in videlibriandroid
(9009) Assembling videlibriandroid
(9022) Compiling resource /home/benito/hg/programs/internet/VideLibri/android/lib/arm-android/videlibriandroid.or
An unhandled exception occurred at $000000000063A63C:
EAccessViolation: Access violation
  $000000000063A63C

(9015) Linking android/libs/armeabi/liblclapp.so
videlibriandroid.pas(33) Error: (1026) Compilation raised exception internally
Fatal: (1018) Compilation aborted
Error: (lazarus) Compile Project, OS: android, CPU: arm, Target: libvidelibriandroid.so: stopped with exit code 217
ERROR: failed compiling of project /home/benito/hg/programs/internet/VideLibri/android/videlibriandroid.lpi
TFPCMsgFilePool.Destroy file still used: /home/benito/opt/fpc-3.0.0/compiler/msg/errore.msg
An unhandled exception occurred at $0000000000A3EEE5 :
Exception : TFPCMsgFilePool.Destroy some files are still used
  $0000000000A3EEE5 line 773 of etfpcmsgparser.pas
  $000000000041D202
  $0000000000421ED2
  $0000000000405812 line 879 of lazbuild.lpr
  $0000000000404528 line 956 of lazbuild.lpr
  $0000000000401C9F line 401 of lazbuild.lpr
  $0000000000409E7B line 1398 of lazbuild.lpr
  $000000000040D607 line 1737 of lazbuild.lpr

FAILED!


BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #20 on: September 22, 2016, 01:30:20 am »
This is  always so weird

Does not even build?:

Code: [Select]
$ sudo make build OS_TARGET=android CPU_TARGET=arm PP=/usr/local/lib/fpc/3.0.0/ppcx64
...
/home/benito/opt/fpc-trunk/compiler/ppcrossarm -Tandroid -Parm -XParm-linux-androideabi- -Xr -Ur -Xs -O2 -n -Fuarm -Fusystems -Fu/home/benito/opt/fpc-trunk/rtl/units/arm-android -Fiarm -FE. -FUarm/units/arm-android -dRELEASE -darm -dGDB -dBROWSERLOG -Sew    -darm -dGDB -dBROWSERLOG  -Sew pp.pas
/usr/local/bin/arm-linux-androideabi-ld.bfd: cannot find crtbegin_dynamic.o
/usr/local/bin/arm-linux-androideabi-ld.bfd: cannot find -lc
/usr/local/bin/arm-linux-androideabi-ld.bfd: cannot find -llog
/usr/local/bin/arm-linux-androideabi-ld.bfd: cannot find -ldl
/usr/local/bin/arm-linux-androideabi-ld.bfd: cannot find -lc
pp.pas(219,36) Error: Error while linking
pp.pas(219,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:4105: recipe for target 'ppcarm' failed


but install is fine

Code: [Select]
$ sudo make crossinstall OS_TARGET=android CPU_TARGET=arm PP=/usr/local/lib/fpc/3.0.0/ppcx64
...
Installation package fpc-all for target arm-android succeeded
make[4]: Leaving directory '/home/benito/opt/fpc-trunk/packages'


Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Lazarus 1.6 broke my app
« Reply #21 on: September 22, 2016, 02:09:37 am »
I suggest you to build FPC trunk for your hosts OS and after doing that, using trunk compiler to build crosscompiler(s) for target system(s).

renabor

  • Jr. Member
  • **
  • Posts: 74
Re: Lazarus 1.6 broke my app
« Reply #22 on: September 22, 2016, 07:35:23 am »
Hi @BeniBela!
just to avoid trouble with arm crossinstall, give a try to my script. You will find it in LAMW/docs/linux.
The script will install fpc 3.0.1 that work fine with Android target (I use it for my app) but you can change target (in script) and choose to download trunk version of freepascal,

FPC 3.2.2 | Lazarus 3.5 | Kubuntu 24.04 64bit

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #23 on: September 22, 2016, 12:05:34 pm »
Hi @BeniBela!
just to avoid trouble with arm crossinstall, give a try to my script. You will find it in LAMW/docs/linux.
The script will install fpc 3.0.1 that work fine with Android target (I use it for my app) but you can change target (in script) and choose to download trunk version of freepascal,

crossinstall used to work. Just build not

But now I get (on make crossinstall OS_TARGET=android CPU_TARGET=i386 PP=$localpath/ppcx64 i think)

Code: [Select]
make -C utils/fpcm bootstrap FPC=/home/benito/opt/fpc-trunk/compiler/ppcross386 FPCFPMAKE=/home/benito/opt/fpc-trunk/compiler/ppc RELEASE=1 'OPT='
make[2]: Entering directory '/home/benito/opt/fpc-trunk/utils/fpcm'
/home/benito/opt/fpc-trunk/compiler/ppc fpcmake.pp -n -Fu/home/benito/opt/fpc-trunk/rtl/units/x86_64-linux -FU/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7b): undefined reference to `DBG_$SYSTEM_$$_SHORTSTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x91): undefined reference to `DBG_$SYSTEM_$$_SHORTSTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0xbb): undefined reference to `DBG_$SYSTEM_$$_SHORTSTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x310): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x335): undefined reference to `DBG_$SYSTEM_$$_parentfp_void_pointer'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x344): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x357): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x36b): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x37e): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x3c8): undefined reference to `DBG_$SYSTEM_$$_parentfp_void_pointer'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x402): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x416): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x435): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x448): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x46d): undefined reference to `DBG_$SYSTEM_$$_parentfp_void_pointer'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x47c): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x48a): undefined reference to `DBG_$SYSTEM_$$_CHAR'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x49d): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x4b0): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x4c3): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x4d6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x4fb): undefined reference to `DBG_$SYSTEM_$$_parentfp_void_pointer'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x50f): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x51e): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x531): undefined reference to `DBG_$SYSTEM_$$_CHAR'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x545): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x559): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x567): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x575): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x583): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x595): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x5a6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x5b6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x5c6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x5d6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x5e6): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x60b): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x62e): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x63c): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x64c): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x65f): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x672): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x685): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x693): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x6a1): more undefined references to `DBG_$SYSTEM_$$_LONGINT' follow
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x6af): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x6c5): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x6e9): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x6f8): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x708): undefined reference to `DBG_$SYSTEM_$$_CHAR'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x71e): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x732): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x740): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x76d): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x77d): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x78d): undefined reference to `DBG_$SYSTEM_$$_CHAR'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7bf): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7ce): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7de): undefined reference to `DBG_$SYSTEM_$$_CHAR'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7ec): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x7fc): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x80e): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x81e): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x835): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x853): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x866): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x87d): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x890): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x8a2): undefined reference to `DBG_$SYSUTILS_$$_TRAWBYTESEARCHREC'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x8bf): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x8dd): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x8f0): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x90d): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x920): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:(.debug_info+0x932): undefined reference to `DBG_$DOS_$$_SEARCHREC'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La3':
fpcmmain.pp:(.debug_info+0xcff): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La10':
fpcmmain.pp:(.debug_info+0xe62): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La11':
fpcmmain.pp:(.debug_info+0xeb3): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0xed4): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0xef5): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:fpcmmain.pp:(.debug_info+0xf7d): more undefined references to `DBG_$SYSTEM_$$_ANSISTRING' follow
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La12':
fpcmmain.pp:(.debug_info+0x1019): undefined reference to `DBG_$SYSTEM_$$_INT64'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La14':
fpcmmain.pp:(.debug_info+0x10ae): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x10e4): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x10f2): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x1106): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x111a): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:fpcmmain.pp:(.debug_info+0x1161): more undefined references to `DBG_$SYSTEM_$$_ANSISTRING' follow
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o: In function `.La16':
fpcmmain.pp:(.debug_info+0x1215): undefined reference to `DBG_$CLASSES_$$_TSTRINGLIST'
fpcmmain.pp:(.debug_info+0x1240): undefined reference to `DBG_$CLASSES_$$_TSTRINGLIST'
fpcmmain.pp:(.debug_info+0x12f5): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x132b): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x1339): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x134d): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmmain.pp:(.debug_info+0x1361): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmmain.o:fpcmmain.pp:(.debug_info+0x13b5): more undefined references to `DBG_$SYSTEM_$$_ANSISTRING' follow

...

/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La1':
fpcmdic.pp:(.debug_info+0x221): undefined reference to `DBG_$SYSTEM_$$_parentfp_void_pointer'
fpcmdic.pp:(.debug_info+0x24a): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x268): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x27b): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x295): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x2a8): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x2b6): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
fpcmdic.pp:(.debug_info+0x2ca): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x2fb): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x309): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
fpcmdic.pp:(.debug_info+0x317): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La2':
fpcmdic.pp:(.debug_info+0x359): undefined reference to `DBG2_$SYSTEM_$$_TOBJECT'
fpcmdic.pp:(.debug_info+0x36c): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x385): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x3ba): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x3d2): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x40f): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x463): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x48b): undefined reference to `DBG_$SYSTEM_$$_INT64'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La5':
fpcmdic.pp:(.debug_info+0x558): undefined reference to `DBG_$SYSTEM_$$_SMALLINT'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La6':
fpcmdic.pp:(.debug_info+0x5a3): undefined reference to `DBG_$SYSTEM_$$_TOBJECT'
fpcmdic.pp:(.debug_info+0x5c8): undefined reference to `DBG_$SYSTEM_$$_POINTER'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La7':
fpcmdic.pp:(.debug_info+0x616): undefined reference to `DBG2_$SYSTEM_$$_TOBJECT'
fpcmdic.pp:(.debug_info+0x655): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x672): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x820): undefined reference to `DBG_$SYSTEM_$$_INT64'
fpcmdic.pp:(.debug_info+0x8cf): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
fpcmdic.pp:(.debug_info+0x913): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0x95a): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x971): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0x992): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x9c7): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x9d9): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x9ec): undefined reference to `DBG_$SYSTEM_$$_BOOLEAN'
fpcmdic.pp:(.debug_info+0x9fa): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
fpcmdic.pp:(.debug_info+0xa4d): undefined reference to `DBG_$SYSTEM_$$_LONGINT'
fpcmdic.pp:(.debug_info+0xb13): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0xb24): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0xb70): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0xbf7): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0xc79): undefined reference to `DBG_$SYSTEM_$$_ANSISTRING'
fpcmdic.pp:(.debug_info+0xc90): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La8':
fpcmdic.pp:(.debug_info+0xd35): undefined reference to `DBG_$SYSTEM_$$_LONGWORD'
fpcmdic.pp:(.debug_info+0xd42): undefined reference to `DBG_$SYSTEM_$$_BYTE'
/home/benito/opt/fpc-trunk/utils/fpcm/units/x86_64-linux/fpcmdic.o: In function `.La19':
fpcmdic.pp:(.debug_info+0x1151): undefined reference to `DBG_$SYSTEM_$$___vtbl_ptr_type'
fpcmdic.pp:(.debug_info+0x1163): undefined reference to `DBG_$SYSTEM_$$___vtbl_ptr_type'
fpcmdic.pp:(.debug_info+0x1175): undefined reference to `DBG_$SYSTEM_$$___vtbl_ptr_type'
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:2492: recipe for target 'bootstrap' failed
make[2]: *** [bootstrap] Error 1
make[2]: Leaving directory '/home/benito/opt/fpc-trunk/utils/fpcm'
Makefile:2825: recipe for target 'build-stamp.i386-linux' failed
make[1]: *** [build-stamp.i386-linux] Error 2
make[1]: Leaving directory '/home/benito/opt/fpc-trunk'
Makefile:2893: recipe for target 'crossinstall' failed
make: *** [crossinstall] Error 2

edit: make clean might have helped with this. We will see in a while. Why is this even taking so long? Slowly approaching c++ compile speed
« Last Edit: September 22, 2016, 12:27:25 pm by BeniBela »

BeniBela

  • Hero Member
  • *****
  • Posts: 958
    • homepage
Re: Lazarus 1.6 broke my app
« Reply #24 on: September 28, 2016, 09:27:37 pm »
I suggest you to build FPC trunk for your hosts OS and after doing that, using trunk compiler to build crosscompiler(s) for target system(s).

hah!

Code: [Select]
$ make all
Makefile:2803: *** The only supported starting compiler version is 3.0.0. You are trying to build with 3.1.1..  Stop.

 

TinyPortal © 2005-2018