On 13/06/18 17:40, Adriaan van Os wrote:
Yuriy Sydorov wrote:
On 6/4/2018 2:51 PM, Adriaan van Os wrote:
Yuriy Sydorov wrote:
No special version is needed, use 3.0.4 release sources or trunk
sources.
I have fpc-3.0.4 installed on OS X 10.6.8. In a separate 3.0.4 sources
folder, I issue
make clean crossall crossinstall OS-TARGET=android CPU_TARGET=arm
OPT=-Aas-darwin
Note that it's OS_TARGET, not OS-TARGET.
and get, after the cleaning stuff, the following error
make -C /Users/adriaan/fpc-android/fpc-3.0.4/rtl 'OPT=-Aas-darwin ' all
make -C darwin all
/bin/mkdir -p /Users/adriaan/fpc-android/fpc-3.0.4/rtl/units/x86_64-darwin
/usr/local/bin/ppcx64 -dNOMOUSE -Ur -dFPC_USE_LIBC -Ur -Xs -O2 -n
-Fi../inc -Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64
-Fi../darwin/x86_64 -FE.
-FU/Users/adriaan/fpc-android/fpc-3.0.4/rtl/units/x86_64-darwin
-Aas-darwin -dx86_64 -dRELEASE -Us -Sg ../bsd/system.pp
/Users/adriaan/fpc-android/fpc-3.0.4/rtl/units/x86_64-darwin/system.s:4141:suffix
or operands invalid for `fcomip'
/Users/adriaan/fpc-android/fpc-3.0.4/rtl/units/x86_64-darwin/system.s:4148:suffix
or operands invalid for `fcomip'
system.pp(361) Error: Error while assembling exitcode 1
system.pp(361) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
This seems to be a 32-bit/64-bit issue. What is the required make
command to prevent this ?
Apple's "as" is extremely outdated and contains many bugs. I have not
tested darwin-as anymore recently, so it is quite possible that it no
longer works. If you do not wish to use clang as assembler (note that
you do not have to use the one provided by Apple; you can use a newer
version from Fink/MacPorts/Brew or a self-compiled one), you could try
adding more workarounds to Tx86AppleGNUAssembler in
compiler/x86/agx86att.pas
The above errors are unrelated to 32/64 bits.
Jonas
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel