[fpc-devel] AVR target on trunk does not compile for me

Michael Ring mail at michael-ring.org
Sun Jun 2 16:50:59 CEST 2019


I tried answering a question on the list today and to do so I did my 
'first time ever' compile of the avr target.

This is how I tried to build the avr-embedded target on my Mac:

   SUBARCH=avr5; BINUTILSPREFIX=avr- ; CROSSOPT="-O- -gw2 -dDEBUG"
   make clean buildbase  CROSSINSTALL=1 OS_TARGET=embedded 
CPU_TARGET=avr SUBARCH=$SUBARCH CROSSOPT="$CROSSOPT" 
BINUTILSPREFIX=$BINUTILSPREFIX 
OPT="-XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/" || exit 1

and failed miserably:


/Users/ring/devel/fpc-avr/compiler/ppcrossavr -Cpavr5 -Ur -Tembedded 
-Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FE. 
-FU/Users/ring/devel/fpc-avr/rtl/units/avr-embedded 
-XR/Library/Developer/CommandLineTools//SDKs/MacOSX.sdk/ -davr -dRELEASE 
-O- -gw2 -dDEBUG  -Us -Sg system.pp @system.cfg
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s: Assembler 
messages:
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90477: Error: 
value of 68582 too large for field of 2 bytes at 4713
/Users/ring/devel/fpc-avr/rtl/units/avr-embedded/system.s:90485: Error: 
value of 68582 too large for field of 2 bytes at 4731

.....

tons of more error messages....


I then switched to Christo's branch on github, used exactly the same 
commands and ended up with a successful build. Is there a chance to get 
the trunk for avr building again?


https://github.com/ccrause/freepascal


Michael




More information about the fpc-devel mailing list