[fpc-devel] avr: Cannot link example project
Georg Hieber
georg at ghgrp.com
Fri May 8 09:20:46 CEST 2015
Anton,
Which version (build) of the compiler / rtl did you use?
This looks like an error that should have been fixed some time ago.
BR, Georg
Am 06.05.2015 09:01, schrieb Anton Kavalenka:
> 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 avr
> Copyright (c) 1993-2015 by Florian Klaempfl and others
> Target OS: Embedded
> Compiling a.pas
> Assembling a
> Linking 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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.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.o
> atmega128.pp:(.init.n_atmega128_ss__fpc_start+0x16): additional
> relocation overflows omitted from the output
> a.pas(22,25) Error: Error while linking
> a.pas(22,25) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
>
> regards,
> Anton Kavalenka
>
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20150508/b87d37bf/attachment.html>
More information about the fpc-devel
mailing list