Error while importing DLL
I have build hugs-android with the default (I have also tried armeabi-v7a in Application.mk but the compilation went wrong) and the demos run pretty well except Ldfs.hs which uses Data.Graph.
So, trying to find out:
$ hugs Hugs> :l Data.Graph ERROR "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/ST.hs":51 - Syntax error in type expression (unexpected `.')
something to do with "forall", I presume, so I have disable Haskell 98 mode:
$ hugs -98 Hugs> :l Data.Graph ERROR "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.hs" - Error while importing DLL "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.so" : Cannot load library: get_lib_extents[777]: 2896 - No loadable segments found in /data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.so. Foreign.StablePtr>
Hugs-android built from the 16 dec 2013 github version with android-ndk-r9b.
My configuration : Model: Asus Transformer TF101 Android version: 4.0.3 Kernel version: 2.6.39.4 AndroidTerm version: 1.0.53
but the compilation went wrong
Could you please provide more details about compilation issues.
Hugs> :l Data.Graph ERROR "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/ST.hs":51 - Syntax error in type expression (unexpected `.')
This one seems to be broken in the mainstream Hugs.
$ hugs -98 Hugs> :l Data.Graph ERROR "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.hs" - Error while importing DLL "/data/data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.so" : Cannot load library: get_lib_extents[777]: 2896 - No loadable segments found in /data/jackpal.androidterm/app_HOME/hugs/lib/hugs/packages/hugsbase/Hugs/Storable.so.
Can you try a version c1aa4fd from the dev branch. I fixed the issues with libraries.