[i386-android] - prt0.as : The system cannot find the file specified


<h3><details><summary>Original Reporter info from Mantis: <small>takeda99</small></summary><small>

- **Reporter name:** Takeda Matsuki
</small></details></h3>

## Description:

Here chunk of output log (using make.exe v3.82):

.................<br/>
make -C utils cleanall<br/>
make[5]: Entering directory `d:/freepascal271/compiler/utils'<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f units/i386-win32/ppu.ppu units/i3<br/>
86-win32/crc.ppu units/i386-win32/usubst.ppu<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -rf units<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f *.o *.ppu *.rst *.s *.a *.dll *.p<br/>
pl<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -rf *.sl<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f fpcmade.* Package.fpc ppas.bat sc<br/>
ript.res link.res<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f *_ppas.bat<br/>
make[5]: Leaving directory `d:/freepascal271/compiler/utils'<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -rf i386/units<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f i386/*.o i386/*.ppu i386/*.rst i3<br/>
86/*.s i386/*.a i386/*.dll i386/*.ppl<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f i386/ppc386.exe i386/ppc68k.exe i<br/>
386/ppcx64.exe i386/ppcppc.exe i386/ppcsparc.exe i386/ppcppc64.exe i386/ppcarm.e<br/>
xe i386/ppcmips.exe i386/ppcmipsel.exe i386/ppcjvm.exe i386/ppcross386.exe<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f ppcross386.exe<br/>
d:/freepascal271/binutils/i386-win32/gmkdir.exe -p i386/units/i386-win32<br/>
d:/freepascal271/compiler/ppc.exe -Ur -Xs -O2 -n -Fui386 -Fusystems -Fud:/freepa<br/>
scal271/rtl/units/i386-win32 -Fii386 -FE. -FUi386/units/i386-win32 -dRELEASE<br/>
\-di386 -dGDB -dBROWSERLOG -Fux86 -Sew pp.pas<br/>
d:/freepascal271/binutils/i386-win32/mv.exe -f ./pp.exe ppcross386.exe<br/>
make[4]: Leaving directory `d:/freepascal271/compiler'<br/>
make[3]: Leaving directory `d:/freepascal271/compiler'<br/>
make[2]: Leaving directory `d:/freepascal271'<br/>
make -C utils/fpcm bootstrap FPC=d:/freepascal271/compiler/ppcross386.exe FPCFPM<br/>
AKE=d:/freepascal271/compiler/ppc.exe RELEASE=1<br/>
make[2]: Entering directory `d:/freepascal271/utils/fpcm'<br/>
d:/freepascal271/binutils/i386-win32/gmkdir.exe -p d:/freepascal271/utils/fpcm/u<br/>
nits/i386-win32<br/>
d:/freepascal271/compiler/ppc.exe fpcmake.pp  -Fud:/freepascal271/rtl/units/i386<br/>
\-win32 -FUd:/freepascal271/utils/fpcm/units/i386-win32<br/>
make[2]: Leaving directory `d:/freepascal271/utils/fpcm'<br/>
make rtl_clean FPC=d:/freepascal271/compiler/ppcross386.exe<br/>
make[2]: Entering directory `d:/freepascal271'<br/>
make -C rtl clean<br/>
make[3]: Entering directory `d:/freepascal271/rtl'<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f fpcmade.i386-android Package.fpc<br/>
ppas.bat script.res link.res<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f *.s *_ppas.sh<br/>
make -C android clean<br/>
make[4]: Entering directory `d:/freepascal271/rtl/android'<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f d:/freepascal271/rtl/units/i386-a<br/>
ndroid/prt0.o d:/freepascal271/rtl/units/i386-android/dllprt0.o<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f d:/freepascal271/rtl/units/i386-a<br/>
ndroid/system.ppu d:/freepascal271/rtl/units/i386-android/cpu.ppu d:/freepascal2<br/>
71/rtl/units/i386-android/mmx.ppu d:/freepascal271/rtl/units/i386-android/uuchar<br/>
.ppu d:/freepascal271/rtl/units/i386-android/unixtype.ppu d:/freepascal271/rtl/u<br/>
nits/i386-android/ctypes.ppu d:/freepascal271/rtl/units/i386-android/baseunix.pp<br/>
u d:/freepascal271/rtl/units/i386-android/strings.ppu d:/freepascal271/rtl/units<br/>
/i386-android/objpas.ppu d:/freepascal271/rtl/units/i386-android/macpas.ppu d:/f<br/>
reepascal271/rtl/units/i386-android/iso7185.ppu d:/freepascal271/rtl/units/i386-<br/>
android/syscall.ppu d:/freepascal271/rtl/units/i386-android/unixutil.ppu d:/free<br/>
pascal271/rtl/units/i386-android/fpintres.ppu d:/freepascal271/rtl/units/i386-an<br/>
droid/heaptrc.ppu d:/freepascal271/rtl/units/i386-android/lineinfo.ppu d:/freepa<br/>
scal271/rtl/units/i386-android/lnfodwrf.ppu d:/freepascal271/rtl/units/i386-andr<br/>
oid/termio.ppu d:/freepascal271/rtl/units/i386-android/unix.ppu d:/freepascal271<br/>
/rtl/units/i386-android/linux.ppu d:/freepascal271/rtl/units/i386-android/initc.<br/>
ppu d:/freepascal271/rtl/units/i386-android/cmem.ppu d:/freepascal271/rtl/units/<br/>
i386-android/crt.ppu d:/freepascal271/rtl/units/i386-android/printer.ppu d:/free<br/>
pascal271/rtl/units/i386-android/linuxvcs.ppu d:/freepascal271/rtl/units/i386-an<br/>
droid/sysutils.ppu d:/freepascal271/rtl/units/i386-android/typinfo.ppu d:/freepa<br/>
scal271/rtl/units/i386-android/math.ppu d:/freepascal271/rtl/units/i386-android/<br/>
matrix.ppu d:/freepascal271/rtl/units/i386-android/varutils.ppu d:/freepascal271<br/>
/rtl/units/i386-android/charset.ppu d:/freepascal271/rtl/units/i386-android/char<br/>
acter.ppu d:/freepascal271/rtl/units/i386-android/ucomplex.ppu d:/freepascal271/<br/>
rtl/units/i386-android/getopts.ppu d:/freepascal271/rtl/units/i386-android/error<br/>
s.ppu d:/freepascal271/rtl/units/i386-android/sockets.ppu d:/freepascal271/rtl/u<br/>
nits/i386-android/gpm.ppu d:/freepascal271/rtl/units/i386-android/serial.ppu d:/<br/>
freepascal271/rtl/units/i386-android/terminfo.ppu d:/freepascal271/rtl/units/i38<br/>
6-android/dl.ppu d:/freepascal271/rtl/units/i386-android/dynlibs.ppu d:/freepasc<br/>
al271/rtl/units/i386-android/video.ppu d:/freepascal271/rtl/units/i386-android/m<br/>
ouse.ppu d:/freepascal271/rtl/units/i386-android/keyboard.ppu d:/freepascal271/r<br/>
tl/units/i386-android/variants.ppu d:/freepascal271/rtl/units/i386-android/types<br/>
.ppu d:/freepascal271/rtl/units/i386-android/dateutils.ppu d:/freepascal271/rtl/<br/>
units/i386-android/sysconst.ppu d:/freepascal271/rtl/units/i386-android/fmtbcd.p<br/>
pu d:/freepascal271/rtl/units/i386-android/cthreads.ppu d:/freepascal271/rtl/uni<br/>
ts/i386-android/classes.ppu d:/freepascal271/rtl/units/i386-android/fgl.ppu d:/f<br/>
reepascal271/rtl/units/i386-android/convutils.ppu d:/freepascal271/rtl/units/i38<br/>
6-android/stdconvs.ppu d:/freepascal271/rtl/units/i386-android/strutils.ppu d:/f<br/>
reepascal271/rtl/units/i386-android/rtlconsts.ppu d:/freepascal271/rtl/units/i38<br/>
6-android/dos.ppu d:/freepascal271/rtl/units/i386-android/objects.ppu d:/freepas<br/>
cal271/rtl/units/i386-android/cwstring.ppu d:/freepascal271/rtl/units/i386-andro<br/>
id/fpcylix.ppu d:/freepascal271/rtl/units/i386-android/clocale.ppu d:/freepascal<br/>
271/rtl/units/i386-android/exeinfo.ppu d:/freepascal271/rtl/units/i386-android/s<br/>
yslinux.ppu d:/freepascal271/rtl/units/i386-android/linux.ppu<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f d:/freepascal271/rtl/units/i386-a<br/>
ndroid/math.rst d:/freepascal271/rtl/units/i386-android/varutils.rst d:/freepasc<br/>
al271/rtl/units/i386-android/typinfo.rst d:/freepascal271/rtl/units/i386-android<br/>
/variants.rst d:/freepascal271/rtl/units/i386-android/sysconst.rst d:/freepascal<br/>
271/rtl/units/i386-android/rtlconsts.rst d:/freepascal271/rtl/units/i386-android<br/>
/stdconvs.rst d:/freepascal271/rtl/units/i386-android/strutils.rst<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f fpcmade.i386-android Package.fpc<br/>
ppas.bat script.res link.res<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -f *.s *_ppas.sh<br/>
make[4]: Leaving directory `d:/freepascal271/rtl/android'<br/>
make[3]: Leaving directory `d:/freepascal271/rtl'<br/>
make[2]: Leaving directory `d:/freepascal271'<br/>
make packages_clean FPC=d:/freepascal271/compiler/ppcross386.exe<br/>
make[2]: Entering directory `d:/freepascal271'<br/>
make -C packages clean<br/>
make[3]: Entering directory `d:/freepascal271/packages'<br/>
make -C fpmkunit clean_bootstrap<br/>
make[4]: Entering directory `d:/freepascal271/packages/fpmkunit'<br/>
d:/freepascal271/binutils/i386-win32/rm.exe -rf units_bs<br/>
make[4]: Leaving directory `d:/freepascal271/packages/fpmkunit'<br/>
make[3]: Leaving directory `d:/freepascal271/packages'<br/>
make[2]: Leaving directory `d:/freepascal271'<br/>
make rtl_all FPC=d:/freepascal271/compiler/ppcross386.exe FPCFPMAKE=d:/freepasca<br/>
l271/compiler/ppc.exe RELEASE=1<br/>
make[2]: Entering directory `d:/freepascal271'<br/>
make -C rtl all<br/>
make[3]: Entering directory `d:/freepascal271/rtl'<br/>
make -C android all<br/>
make[4]: Entering directory `d:/freepascal271/rtl/android'<br/>
d:/freepascal271/binutils/i386-win32/gmkdir.exe -p d:/freepascal271/rtl/units/i3<br/>
86-android<br/>
D:\freepascal271\binutils\aw-bincross\aw-win32-i386-android-III/i686-linux-andro<br/>
ideabi-as.exe --32 -o d:/freepascal271/rtl/units/i386-android/prt0.o i386/prt0.a<br/>
s<br/>
process_begin: CreateProcess(NULL, D:\freepascal271\binutils\aw-bincross\aw-win3<br/>
2-i386-android-III/i686-linux-androideabi-as.exe --32 -o d:/freepascal271/rtl/un<br/>
its/i386-android/prt0.o i386/prt0.as, ...) failed.<br/>
make (e=2): The system cannot find the file specified.<br/>
make[4]: *** [prt0.o] Error 2<br/>
make[4]: Leaving directory `d:/freepascal271/rtl/android'<br/>
make[3]: *** [android_all] Error 2<br/>
make[3]: Leaving directory `d:/freepascal271/rtl'<br/>
make[2]: *** [rtl_all] Error 2<br/>
make[2]: Leaving directory `d:/freepascal271'<br/>
make[1]: *** [build-stamp.i386-android] Error 2<br/>
make[1]: Leaving directory `d:/freepascal271'<br/>
make: *** [crossall] Error 2

d:\freepascal271>

## Steps to reproduce:

I tried to build compiler for target i386-android (as mentioned on http://wiki.freepascal.org/Android , mean i386-android supported) from Windows using this script :<br/>
\-------------------------------------------------

cd d:\freepascal271

set myroot=d:\freepascal271<br/>
set myFPC=d:\freepascal271\fpc\2.7.1<br/>
set mybinutils=d:\freepascal271\binutils<br/>
set mycrossbin=D:\freepascal271\binutils\aw-bincross\aw-win32-i386-android-III

set PATH=d:\freepascal271\binutils\i386-win32;D:\freepascal271\binutils\aw-bincross\aw-win32-i386-android-III;d:\freepascal271\fpc\2.7.1\bin\i386-win32;

make clean crossall OS_TARGET=android CPU_TARGET=i386 crossinstall CROSSBINDIR=%mycrossbin% BINUTILSPREFIX=i686-linux-androideabi- INSTALL_PREFIX=%myFPC% DATA2INC=%myfpc%\utils\data2inc.exe

\--------------------------------------------------

Notes :<br/>
1. I use FPC 2.6.0 as starting compiler and use NDK8d ToolChains (i686-linux-androideabi)

2. I use Windows 7 Ultimate x64 SP1

3. AMD A8 APU Processor with AHCI-System enabled.

4. I already tried to use make.exe both v3.80 and v3.82, the result is same..


Regards,<br/>
Takeda

## Mantis conversion info:

- **Mantis ID:** 23949
- **OS:** Windows 7 Ultimate 64bit SP1
- **OS Build:** 6.1
- **Build:** r23655
- **Platform:** i386-android
- **Version:** 2.7.1

Story points: 200.0