hugs-android icon indicating copy to clipboard operation
hugs-android copied to clipboard

Error while importing DLL

Open Ebmtranceboy opened this issue 12 years ago • 1 comments

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

Ebmtranceboy avatar Dec 17 '13 15:12 Ebmtranceboy

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.

conscell avatar Feb 06 '14 00:02 conscell