Sign in Join

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

Mailing lists / fpc-devel / 2015-05

avr: Cannot link example project

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

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 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

Reply by email

Georg Hieber
to Anton Kavalenka

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

Anton Kavalenka wrote 67 lines
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 - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Anton
to Georg Hieber

08.05.2015 у 10:20 Georg Hieber напісаў:

Show quoted text 7 lines
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

Show quoted text 70 lines
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 > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email