08.05.2015 у 10:20 Georg Hieber напісаў:
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
Dear Georg!
I've used 3.1.1 svn trunk cherry-picked at 05 of May.
Binutils/libc were from Debian Jessie (8.0) installation.
regards,
Anton
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 [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel