[fpc-devel] avr: Cannot link example project
Anton Kavalenka
anton.blacksmith at yahoo.com
Wed May 6 09:01:36 CEST 2015
Dear FPC-All!
I've tried to compile hello-world-through-UART example (in attacment) for Atmega128 and got the following:
/usr/local/lib/fpc/3.1.1/ppcrossavr a.pas -WpATMEGA128 -alĀ Free Pascal Compiler version 3.1.1 [2015/05/05] for avrCopyright (c) 1993-2015 by Florian Klaempfl and othersTarget OS: EmbeddedCompiling a.pasAssembling aLinking a/usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.o: In function `_START':atmega128.pp:(.init.n_atmega128_ss__fpc_start+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int00Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x4): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int01Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x6): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int02Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x8): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int03Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0xa): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int04Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0xc): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int05Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0xe): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int06Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x10): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int07Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x12): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int08Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x14): relocation truncated to fit: R_AVR_13_PCREL against symbol `Int09Handler' defined in .text.n_atmega128_ss_default_irq_handler section in /usr/local/lib/fpc/3.1.1/units/avr-embedded/rtl/atmega128.oatmega128.pp:(.init.n_atmega128_ss__fpc_start+0x16): additional relocation overflows omitted from the outputa.pas(22,25) Error: Error while linkinga.pas(22,25) Fatal: There were 1 errors compiling module, stoppingFatal: Compilation aborted
regards,Anton Kavalenka
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150506/bbe891f7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a.pas
Type: text/x-pascal
Size: 504 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150506/bbe891f7/attachment.pas>
More information about the fpc-devel
mailing list