Try adding

 XFORM_SKIP_PROC

to the end of line 2241 of

 plt/racket/src/racket/src/hash.c


The problem must be that __builtin_popcount() expands to something that
the "xform" tool doesn't recognize. I'll investigate, but the
`XFORM_SKIP_PROC` annotation might be a good way to go, anyway. Then
again, there's a good chance that you'll run into another of these
problems.

At Fri, 18 Sep 2015 22:01:29 +0000, John Carmack wrote:
> I’m trying to build for Android from OS-X.  I used:
> 
> ../configure --host=arm-linux-androideabi 
> --enable-sysroot="/Users/johncarmack/android-ndk-r10c/platforms/android-19/arch
> -arm" --enable-racket="/Applications/Racket\ v6.2.1/bin/racket"
> 
> It builds for a while, but eventually errors with:
> 
> 
> env XFORM_USE_PRECOMP=xsrc/precomp.h /Applications/Racket\ v6.2.1/bin/racket  
> -cqu ../../../racket/gc2/xform.rkt --setup . --depends --cpp 
> "arm-linux-androideabi-gcc -E -I./.. -I../../../racket/gc2/../include -g -O2 
> --sysroot=/Users/johncarmack/android-ndk-r10c/platforms/android-19/arch-arm   
> -DUSE_SENORA_GC   -DMZ_NO_ICONV "  --keep-lines -o xsrc/hash.c 
> ../../../racket/gc2/../src/hash.c
> 
> Error [GCING] 2244 in ../../../racket/gc2/../src/hash.c: Function 
> hamt_popcount declared __xform_nongcing__, but includes a function call.
> 
> xform: Errors converting
> 
>   context...:
> 
>    
> /Users/johncarmack/racket-master/racket/src/build/racket/gc2/xform-collects/com
> piler/private/xfor...:8:2: xform
> 
>    
> /Users/johncarmack/racket-master/racket/src/build/racket/gc2/xform-collects/xfo
> rm/xform-mod.rkt: [running body]
> 
>    /Users/johncarmack/racket-master/racket/src/racket/gc2/xform.rkt: [running 
> body]
> 
> make[4]: *** [xsrc/hash.c] Error 1
> 
> make[3]: *** [all] Error 2
> 
> make[2]: *** [3m] Error 2
> 
> make[1]: *** [3m] Error 2
> 
> make: *** [all] Error 2
> 
> 
> Any suggestions?  Android 5.0 won’t run the executable Matthew Flatt built 
> because it isn’t compiled with PIE.  Building with platform 19 should get 
> this 
> by default if I can get it working.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to