revision 36100 breaks building cpu-target jvm
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
-
Reporter name: Karl-Michael Schindler
Original Reporter info from Mantis: karl-michael.schindler@web.de @KaMiSchi
- Reporter name: Karl-Michael Schindler
Description:
error message:
...
make -C /BlaBla/FreePascal/rtl 'OPT=-ap ' all
make -C java all
/sw/bin/gmkdir -p /BlaBla/FreePascal/rtl/units/jvm-java
/BlaBla/FreePascal/compiler/ppcjvm @rtl.cfg -Ur -Tjava -Pjvm -Ur -Xs -O2 -n -Fi../inc -Fi../jvm -FE. -FU/BlaBla/FreePascal/rtl/units/jvm-java -ap -djvm -dRELEASE -Us -Sg system.pp
jtvar.inc(27,70) Error: Can't determine which overloaded function to call
jtvar.inc(41,55) Error: Can't determine which overloaded function to call
system.pp(184) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
The same error shows up when building jvm-android.
Steps to reproduce:
svn up -r 36100
make clean all OPT="-ap" CPU_TARGET=jvm OS_TARGET=java
Additional information:
I could not really fix it, but found the following: The trouble causing lines in jtvar.inc are:
27: fCloneMethod:=owningClass.getDeclaredMethod('clone',[]);
41: result:=fCloneMethod.invoke(fInstanceToClone,[]);
Line 27 was easy: Apparently, it cannot be distinguished between the two functions getDeclaredMethod in rtl/android/jvm/java_sys_android.inc or rtl/java/java_sys.inc
For line 41, I could not really figure out which of the numerous invokes are in discussion.
I do not think that it matters but for the sake of completeness, I used fpc 3.0.2, 64-bit on macOS 10.12 to build the target jvm-java and jvm-android.
Mantis conversion info:
- Mantis ID: 31756
- OS: Mac OS X
- OS Build: 10.5, 10.6
- Build: svn revision 36100
- Platform: darwin
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 36175 (#5971e132)