[SOLVED] Building FPC AVR crosscompiler fails lazarus / 1-Linux ---------------------------------------------------------------------- samtux · 2017-11-21 19:45 Hi, according to http://wiki.freepascal.org/AVR I'm trying to build FPC 3.0.2 from the sources in Slackware 14.2 but it fails with this message: Code: GNU make  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Free Pascal Compiler version 3.0.2 [2017/11/21] for x86_64Copyright (c) 1993-2017 by Florian Klaempfl and othersTarget OS: Linux for x86-64Compiling fpcmake.ppCompiling fpcmmain.ppCompiling fpcmdic.ppfpcmmain.pp(312,54) Warning: Symbol "faHidden" is not portableWriting Resource String Table file: fpcmmain.rsjCompiling fpcmwr.ppCompiling fpcmpkg.ppLinking fpcmake/usr/bin/ld: warning: link.res contains output sections; did you forget -T?5851 lines compiled, 0.6 sec1 warning(s) issuedmake[1]: Leaving directory '/usr/src/fpc-3.0.2/utils/fpcm'make rtl_clean FPC=/usr/src/fpc-3.0.2/compiler/ppcrossavrmake[1]: Entering directory '/usr/src/fpc-3.0.2'make -C rtl cleanmake[2]: Entering directory '/usr/src/fpc-3.0.2/rtl'/usr/bin/rm -f fpcmade.avr-embedded Package.fpc ./ppas.sh script.res link.res  /usr/bin/rm -f *.s *_ppas.batmake -C embedded cleanmake[3]: Entering directory '/usr/src/fpc-3.0.2/rtl/embedded'/usr/bin/rm -f /usr/src/fpc-3.0.2/rtl/units/avr-embedded/system.ppu /usr/src/fpc-3.0.2/rtl/units/avr-embedded/atmega128.ppu /usr/src/fpc-3.0.2/rtl/units/avr-embedded/uuchar.ppu /usr/src/fpc-3.0.2/rtl/units/avr-embedded/objpas.ppu /usr/src/fpc-3.0.2/rtl/units/avr-embedded/heapmgr.ppu /usr/src/fpc-3.0.2/rtl/units/avr-embedded/consoleio.ppu/usr/bin/rm -f fpcmade.avr-embedded Package.fpc ./ppas.sh script.res link.res  /usr/bin/rm -f *.s *_ppas.batmake[3]: Leaving directory '/usr/src/fpc-3.0.2/rtl/embedded'make[2]: Leaving directory '/usr/src/fpc-3.0.2/rtl'make[1]: Leaving directory '/usr/src/fpc-3.0.2'make rtl_all FPC=/usr/src/fpc-3.0.2/compiler/ppcrossavr FPCFPMAKE=/usr/src/fpc-3.0.2/compiler/ppc RELEASE=1 'OPT='make[1]: Entering directory '/usr/src/fpc-3.0.2'make -C rtl allmake[2]: Entering directory '/usr/src/fpc-3.0.2/rtl'make -C embedded allmake[3]: Entering directory '/usr/src/fpc-3.0.2/rtl/embedded'/usr/bin/mkdir -p /usr/src/fpc-3.0.2/rtl/units/avr- embedded/usr/src/fpc-3.0.2/compiler/ppcrossavr @rtl.cfg -Ur -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FD/usr/avr/bin -FE. -FU/usr/src/fpc-3.0.2/rtl/units/avr-embedded -davr -dRELEASE -Us -Sg system.pp /usr/src/fpc-3.0.2/compiler/ppcrossavr @rtl.cfg -Ur -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FD/usr/avr/bin -FE. -FU/usr/src/fpc-3.0.2/rtl/units/avr-embedded -davr -dRELEASE avr/atmega128.pp/usr/src/fpc-3.0.2/compiler/ppcrossavr @rtl.cfg -Ur -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FD/usr/avr/bin -FE. -FU/usr/src/fpc-3.0.2/rtl/units/avr- embedded -davr -dRELEASE ../inc/uuchar.pp/usr/src/fpc-3.0.2/compiler/ppcrossavr @rtl.cfg -Ur -Tembedded -Pavr -XPavr- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../avr -FD/usr/avr/bin -FE. -FU/usr/src/fpc-3.0.2/rtl/units/avr-embedded -davr -dRELEASE -I../objpas ../objpas/objpas.pp objpas.pp(175,24) Fatal: Unknown compilerproc "fpc_ansistr_to_shortstr". Check if you use the correct run time library.Fatal: Compilation abortedMakefile:2516: recipe for target 'objpas.ppu' failedmake[3]: *** [objpas.ppu] Error 1make[3]: *** Waiting for unfinished jobs....make[3]: Leaving directory '/usr/src/fpc-3.0.2/rtl/embedded'Makefile:2603: recipe for target 'embedded_all' failedmake[2]: *** [embedded_all] Error 2make[2]: Leaving directory '/usr/src/fpc-3.0.2/rtl'Makefile:2521: recipe for target 'rtl_all' failedmake[1]: *** [rtl_all] Error 2make[1]: Leaving directory '/usr/src/fpc-3.0.2'Makefile:2837: recipe for target 'base.build-stamp.avr-embedded' failedmake: *** [base.build-stamp.avr- embedded] Error 2 (For the complete log file, see attached file) Any ideas how to make it build? ---------------------------------------------------------------------- ccrause · 2017-11-21 20:22 I also get that error when building a cross compiler using 3.0.2 source.  I would recommend using the trunk version of the compiler for AVR, quite a number of fixes have been added since 3.0.2. This would obviously need the 3.0.2 compiler to start the bootstrap build process. ---------------------------------------------------------------------- samtux · 2017-11-22 11:12 @ccrause: Thanks. You're right. Trunk version builds without errors.