javascript cross compiler reports wrong +RTS --info
ghc@71190504338e:~/ghc$ _build/install/bin/javascript-unknown-ghcjs-ghc +RTS --info
[("GHC RTS", "YES")
,("GHC version", "9.9.20231003")
,("RTS way", "rts_thr")
,("Build platform", "x86_64-unknown-linux")
,("Build architecture", "x86_64")
,("Build OS", "linux")
,("Build vendor", "unknown")
,("Host platform", "x86_64-unknown-linux")
,("Host architecture", "x86_64")
,("Host OS", "linux")
,("Host vendor", "unknown")
,("Target platform", "x86_64-unknown-linux")
,("Target architecture", "x86_64")
,("Target OS", "linux")
,("Target vendor", "unknown")
,("Word size", "64")
,("Compiler unregisterised", "NO")
,("Tables next to code", "YES")
,("Flag -with-rtsopts", "-K512M -H -I5 -T")
]
At least I notice immediately:
- Target platform is incorrect
- Word size is incorrect
NOTE: This may be an artifact of the branch I am currently working on, so don't try to reproduce if you don't already have a javascript cross-compiler.