简体   繁体   English

交叉编译ghc失败,缺少iconv

[英]cross-compile ghc failed missing iconv

successfully run 成功运行

./configure --target=arm-linux-androideabi --with-gcc=arm-linux-androideabi-gcc

then make failed. 然后使失败。

checking value of ENOTSUP... 95
checking value of SIGINT... 2
checking value of O_BINARY... 0
checking for library containing iconv... no
configure: error: iconv is required on non-Windows platforms
make[1]: *** [libraries/base/dist-install/package-data.mk] Error 1
make: *** [all] Error 2

Try installing libiconv,and assure that 尝试安装libiconv,并确保

dt-ubt@dt-ubt:~/workspace/ghc$ ls /usr/local/lib/
charset.alias        libiconv.la        libsodium.la             python2.7
libcharset.a         libiconv.so        libsodium.so             python3.4
libcharset.la        libiconv.so.2      libsodium.so.13          site_ruby
libcharset.so        libiconv.so.2.5.0  libsodium.so.13.0.2      x86_64-linux-ghc-7.8.3
libcharset.so.1      libiconv.so.2.5.1  pkgconfig
libcharset.so.1.0.0  libsodium.a        preloadable_libiconv.so

but then i ran make,the problem remains. 但是后来我跑了,问题仍然存在。

Specifying the source location of iconv also not works(add it in mk/build.mk) 指定iconv的源位置也不起作用(将其添加到mk / build.mk中)

libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-includes=/home/dt-ubt/workspace/ghc/iconv/include 
libraries/base_CONFIGURE_OPTS += --configure-option=--with-iconv-libraries=/home/dt-ubt/workspace/ghc/iconv/lib

You may need an iconv matching arm-linux-androideabi . 您可能需要一个匹配arm-linux-androideabiiconv Speculatively: if GHC links iconv into compiled Haskell binaries, then that copy of iconv must match the --target architecture. 推测:如果GHC将iconv链接到已编译的Haskell二进制文件中,则该iconv副本必须与--target体系结构匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM