<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div>I'm trying to compile the latest Racket for Android using the instructions in racket/src/README but I'm hitting the following error:<br><br>./if_mach SPARC SOLARIS arm-linux-androideabi-gcc -c -o mach_dep2.o ../../../racket/gc/sparc_mach_dep.S<br>
./if_mach: 1: ./if_mach: Syntax error: word unexpected (expecting ")")<br><br></div>Which is caused by compiling if_mach using the cross compiler. I'm pretty sure the problem is on my end, but I have no idea where to look.<br>
<br></div>This is the full output: <a href="https://gist.github.com/khernyo/6613001">https://gist.github.com/khernyo/6613001</a><br></div>This is a script I used for building: <a href="https://gist.github.com/khernyo/6612979">https://gist.github.com/khernyo/6612979</a><br>
</div><br>The script first builds Racket for x86 which is then used to build the Android version. It's probably not necessary, but I wanted to eliminate the potential problems caused by using Racket v.5.3.4 which I have installed on my system.<br>
<br>I also tried using this version: <a href="https://github.com/plt/racket/commit/4e6e18119c0b85ac09b11fbb0c8941a7c520da08">https://github.com/plt/racket/commit/4e6e18119c0b85ac09b11fbb0c8941a7c520da08</a> but I get the same error. This version is supposed to work because this is the commit which adds the instructions for compiling for Android.<br>
<br></div>Can you help me fix this problem?<br><br></div>Thanks,<br>Szabolcs<br></div>