Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-11

Linking error using 64bit compiler, but not for 32bit compiler

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

When I compile one of my projects I get the following compiler/linking error. Any idea what causes this? If got the exact same FPC 2.2.3 revision for a 32bit system and a 64bit system. Under the 32bit system, everything compiles perfectly. Under the 64bit system, I get the following error.

------------------------------------
[....snip.....]
frm_preferences.pas(10,48) Hint: Unit "fpg_grid" not used in frm_preferences frm_preferences.pas(11,38) Hint: Unit "fpg_tree" not used in frm_preferences frm_preferences.pas(11,52) Hint: Unit "fpg_trackbar" not used in frm_preferences frm_preferences.pas(12,18) Hint: Unit "fpg_progressbar" not used in frm_preferences
frm_preferences.pas(12,35) Hint: Unit "fpg_radiobutton" not used in frm_preferences
frm_timetable.pas(40,66) Hint: Parameter "ARow" not used frm_timetable.pas(38,58) Hint: Parameter "AButton" not used frm_timetable.pas(38,81) Hint: Parameter "AShift" not used frm_timetable.pas(222,3) Note: Local variable "lCanvas" not used frm_timetable.pas(37,61) Hint: Parameter "ARow" not used frm_timetable.pas(37,111) Hint: Parameter "AFlags" not used /home/graemeg/programming/mastermaths/m2system_v3/Source/UserViews.pas(21,32) Hint: Parameter "AValue" not used
/home/graemeg/programming/mastermaths/m2system_v3/Source/UserViews.pas(67,3) Note: Local variable "lMin" not used
/home/graemeg/programming/mastermaths/m2system_v3/Source/UserViews.pas(67,9) Note: Local variable "lMax" not used
/usr/bin/ld: Dwarf Error: Can't find .debug_abbrev section. /home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x6): undefined reference to `.Ldebug_abbrev0'
/home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x6c): undefined reference to `.Ldebug_line0'
/home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x70): undefined reference to `.Ltext0'
/home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x78): undefined reference to `.Letext0'
/home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x2b90): undefined reference to `.Lt1'
/home/graemeg/programming/fpgui/lib/x86_64-linux/libpfpg_base.a(fpg_base0s411.o):(.debug_info+0x2c13): undefined reference to `.Lt2'
[......snip......]
tutoradmin.lpr(115,1) Error: Error while linking
tutoradmin.lpr(115,1) Fatal: There were 1 errors compiling module, stopping -------------------------------------------

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
When I compile one of my projects I get the following compiler/linking error. Any idea what causes this?

I think you are using Dwarf debug information (the only debug information that is supported on linux/x86_64) together with smart linking, which is not yet supported. Your best option is probably to disable smart linking for debug builds.

Jonas

Graeme Geldenhuys
to Jonas Maebe
Jonas Maebe wrote 7 lines
> When I compile one of my projects I get the following compiler/linking > error. Any idea what causes this? I think you are using Dwarf debug information (the only debug information that is supported on linux/x86_64) together with smart linking, which is not yet supported. Your best option is probably to disable smart linking for debug builds.

Excellent! Thanks Jonas. I didn't notice that Compiler Option because I simply copied my project from the 32bit system to the 64bit system. That would also explain why small test projects compiled and linked fine while our actual product didn't.

Disabling debug settings or Smart Linking resolves the issue. Thanks again! :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/