[fpc-devel] ARM native compilation (Toshiba AC100)
Sash0k
vodka_ploho at mail.ru
Tue Sep 20 12:55:52 CEST 2011
Hi, fpc community!
I try to compile fpc on my Toshiba AC100 smartbook (tegra 2 - ARM Cortex-A9 CPU), with Ubuntu 11.04 Natty, but have a problem:
First, I have download precompiled fpc from ftp://ftp.freepascal.org/pub/fpc/dist/2.4.4/arm-linux/
It installs good and makes "Hello world" program correctly.
Next I try to compile mseide. It does, but mseide crashes on start. Some detailed information about it is here (on Russian): http://freepascal.ru/forum/viewtopic.php?f=1&t=7300&start=15#p56281
Next step I try to update complier from svn (using "make all"), but it fails:
1) revision 19056:
compiler hangs on second cycle of system.pp (blank screen and 100% cpu load):
===============
make -C /home/sash0k/arm-coding/fpc/fpc/rtl 'OPT=' all
make[6]: Вход в каталог `/home/sash0k/arm-coding/fpc/fpc/rtl'
make -C linux all
make[7]: Вход в каталог `/home/sash0k/arm-coding/fpc/fpc/rtl/linux'
as -o /home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux/prt0.o arm/prt0.as
as -o /home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux/dllprt0.o arm/dllprt0.as
as -o /home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux/cprt0.o arm/cprt0.as
as -o /home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux/gprt0.o arm/gprt0.as
as -o /home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as
/home/sash0k/arm-coding/fpc/fpc/compiler/ppc2 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU/home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux -darm -dRELEASE -Us -Sg system.pp
===============
where "/home/sash0k/arm-coding/fpc/fpc" is path to compiler sources.
2) update to revision 19149:
compilation process crashes after beginnig with Exception and "Error 217":
===============
make -C utils cleanall
make[6]: Вход в каталог `/home/sash0k/arm-coding/fpc/fpc/compiler/utils'
/bin/rm -f fpc ppufiles ppudump ppumove fpcsubst mkarmins mkx86ins fpc.o ppufiles.o ppudump.o ppumove.o fpcsubst.o mkarmins.o mkx86ins.o libpfpc.a libpppufiles.a libpppudump.a libpppumove.a libpfpcsubst.a libpmkarmins.a libpmkx86ins.a libimpfpc.a libimpppufiles.a libimpppudump.a libimpppumove.a libimpfpcsubst.a libimpmkarmins.a libimpmkx86ins.a
/bin/rm -f units/arm-linux/ppu.ppu units/arm-linux/crc.ppu units/arm-linux/usubst.ppu
/bin/rm -rf units
/bin/rm -f *.o *.ppu *.rst *.s *.a *.so *.ppl
/bin/rm -rf *.sl
/bin/rm -f fpcmade.* Package.fpc ppas.sh script.res link.res
/bin/rm -f *_ppas.sh
make[6]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc/compiler/utils'
/bin/rm -rf arm/units
/bin/rm -f arm/*.o arm/*.ppu arm/*.rst arm/*.s arm/*.a arm/*.so arm/*.ppl
/bin/rm -f arm/ppc386 arm/ppc68k arm/ppcx64 arm/ppcppc arm/ppcsparc arm/ppcppc64 arm/ppcarm arm/ppcmips arm/ppcmipsel arm/ppcarm
/bin/rm -f ppcarm
/bin/mkdir -p arm/units/arm-linux
/usr/bin/ppcarm -Ur -Xs -O2 -n -Fuarm -Fusystems -Fu/home/sash0k/arm-coding/fpc/fpc/rtl/units/arm-linux -Fiarm -FE. -FUarm/units/arm-linux -dRELEASE -darm -dGDB -dBROWSERLOG pp.pas
Fatal: Compilation aborted
An unhandled exception occurred at $000343AC :
EInOutError : File not found
$000343AC
$000FA478
$0010AB08
$0010E648
$0010E664
$0010E664
$0010E664
$0010ED90
$001130F0
$000FE6D8
$000FEC08
$00144F18
$001243AC
$0013A984
$001442A4
$00144E54
$001243AC
make[5]: *** [ppcarm] Ошибка 217
make[5]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc/compiler'
make[4]: *** [next] Ошибка 2
make[4]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc/compiler'
make[3]: *** [ppc1] Ошибка 2
make[3]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc/compiler'
make[2]: *** [cycle] Ошибка 2
make[2]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc/compiler'
make[1]: *** [compiler_cycle] Ошибка 2
make[1]: Выход из каталога `/home/sash0k/arm-coding/fpc/fpc'
make: *** [build-stamp.arm-linux] Ошибка 2
===============
So, what can I do next? My goal is get stable fpc + mseide for Toshiba AC100 device.
More information about the fpc-devel
mailing list