- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在尝试为 FriendlyARM mini 2440 构建 JamVM !(http://www.friendlyarm.net/products/mini2440)
我使用这个命令安装了 ARM GCC:
sudo apt-get install gcc-arm-linux-gnueabi
接下来我做了:
export CROSS_COMPILE=arm-none-linux-gnueabi-
./configure --host=arm-linux-gnueabi
make
我收到这些错误:
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-gnueabi-strip... arm-linux-gnueabi-strip
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnueabi
checking for style of include used by make... GNU
checking for arm-linux-gnueabi-gcc... arm-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabi-gcc accepts -g... yes
checking for arm-linux-gnueabi-gcc option to accept ISO C89... none needed
checking dependency style of arm-linux-gnueabi-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by arm-linux-gnueabi-gcc... /usr/arm-linux-gnueabi/bin/ld
checking if the linker (/usr/arm-linux-gnueabi/bin/ld) is GNU ld... yes
checking for /usr/arm-linux-gnueabi/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/arm-linux-gnueabi-nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... arm-linux-gnueabi-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for arm-linux-gnueabi-g++... arm-linux-gnueabi-g++
checking whether we are using the GNU C++ compiler... yes
checking whether arm-linux-gnueabi-g++ accepts -g... yes
checking dependency style of arm-linux-gnueabi-g++... gcc3
checking how to run the C++ preprocessor... arm-linux-gnueabi-g++ -E
checking for arm-linux-gnueabi-g77... no
checking for arm-linux-gnueabi-xlf... no
checking for arm-linux-gnueabi-f77... no
checking for arm-linux-gnueabi-frt... no
checking for arm-linux-gnueabi-pgf77... no
checking for arm-linux-gnueabi-cf77... no
checking for arm-linux-gnueabi-fort77... no
checking for arm-linux-gnueabi-fl32... no
checking for arm-linux-gnueabi-af77... no
checking for arm-linux-gnueabi-xlf90... no
checking for arm-linux-gnueabi-f90... no
checking for arm-linux-gnueabi-pgf90... no
checking for arm-linux-gnueabi-pghpf... no
checking for arm-linux-gnueabi-epcf90... no
checking for arm-linux-gnueabi-gfortran... no
checking for arm-linux-gnueabi-g95... no
checking for arm-linux-gnueabi-xlf95... no
checking for arm-linux-gnueabi-f95... no
checking for arm-linux-gnueabi-fort... no
checking for arm-linux-gnueabi-ifort... no
checking for arm-linux-gnueabi-ifc... no
checking for arm-linux-gnueabi-efc... no
checking for arm-linux-gnueabi-pgf95... no
checking for arm-linux-gnueabi-lf95... no
checking for arm-linux-gnueabi-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/arm-linux-gnueabi-nm -B output from arm-linux-gnueabi-gcc object... ok
checking for objdir... .libs
checking for arm-linux-gnueabi-ar... arm-linux-gnueabi-ar
checking for arm-linux-gnueabi-ranlib... arm-linux-gnueabi-ranlib
checking for arm-linux-gnueabi-strip... (cached) arm-linux-gnueabi-strip
checking if arm-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-linux-gnueabi-gcc option to produce PIC... -fPIC
checking if arm-linux-gnueabi-gcc PIC flag -fPIC works... yes
checking if arm-linux-gnueabi-gcc static flag -static works... yes
checking if arm-linux-gnueabi-gcc supports -c -o file.o... yes
checking whether the arm-linux-gnueabi-gcc linker (/usr/arm-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by arm-linux-gnueabi-g++... /usr/arm-linux-gnueabi/bin/ld
checking if the linker (/usr/arm-linux-gnueabi/bin/ld) is GNU ld... yes
checking whether the arm-linux-gnueabi-g++ linker (/usr/arm-linux-gnueabi/bin/ld) supports shared libraries... yes
checking for arm-linux-gnueabi-g++ option to produce PIC... -fPIC
checking if arm-linux-gnueabi-g++ PIC flag -fPIC works... yes
checking if arm-linux-gnueabi-g++ static flag -static works... yes
checking if arm-linux-gnueabi-g++ supports -c -o file.o... yes
checking whether the arm-linux-gnueabi-g++ linker (/usr/arm-linux-gnueabi/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for arm-linux-gnueabi-gcc... (cached) arm-linux-gnueabi-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnueabi-gcc accepts -g... (cached) yes
checking for arm-linux-gnueabi-gcc option to accept ISO C89... (cached) none needed
checking dependency style of arm-linux-gnueabi-gcc... (cached) gcc3
checking dependency style of arm-linux-gnueabi-gcc... gcc3
checking for ecj... ecj
checking for pthread_self in -lthr... no
checking for pthread_self in -lpthread... yes
checking for fmod in -lm... yes
checking for dlopen in -ldl... yes
checking for inflate in -lz... no
configure: error: zlib is missing
更新:
如果我使用这些命令:
export CROSS_COMPILE=arm-none-linux-gnueabi-
./configure --host=arm-linux
make
我在 make
之后得到这个错误:
Making all in src
make[1]: Entering directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src'
make all-recursive
make[2]: Entering directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src'
Making all in os
make[3]: Entering directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os'
Making all in linux
make[4]: Entering directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os/linux'
Making all in arm
make[5]: Entering directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os/linux/arm'
/bin/bash ../../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../../../../src -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF .deps/callNative.Tpo -c -o callNative.lo callNative.S
gcc -DHAVE_CONFIG_H -I. -I../../../../src -I../../../../src -I../../../../src -g -O2 -MT callNative.lo -MD -MP -MF .deps/callNative.Tpo -c callNative.S -fPIC -DPIC -o .libs/callNative.o
callNativeOABI.S: Assembler messages:
callNativeOABI.S:28: Error: too many memory references for `mov'
callNativeOABI.S:29: Error: no such instruction: `stmfd sp!,{r4,r5,ip,lr}'
callNativeOABI.S:30: Error: too many memory references for `mov'
callNativeOABI.S:31: Error: too many memory references for `mov'
callNativeOABI.S:32: Error: no such instruction: `ldr ip,[r4]@get ostack pntr'
callNativeOABI.S:33: Error: no such instruction: `ldr r2,[r4,'
callNativeOABI.S:34: Error: expecting operand after ','; got nothing
callNativeOABI.S:35: Error: no such instruction: `ldreq r1,[ip],'
callNativeOABI.S:36: Error: no such instruction: `addne r2,r2,'
callNativeOABI.S:37: Error: too many memory references for `sub'
callNativeOABI.S:38: Error: no such instruction: `ble do_call@yes,skip stack push'
callNativeOABI.S:39: Error: too many memory references for `add'
callNativeOABI.S:41: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:42: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:43: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:45: Error: no such instruction: `ldr r3,[lr,r2,lsl'
callNativeOABI.S:46: Error: invalid char '[' beginning operand 2 `[sp'
callNativeOABI.S:47: Error: too many memory references for `sub'
callNativeOABI.S:48: Error: no such instruction: `bne loop'
callNativeOABI.S:51: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:52: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:53: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:55: Error: no such instruction: `ldr r2,[ip]'
callNativeOABI.S:56: Error: no such instruction: `ldr r3,[ip,'
callNativeOABI.S:58: Error: too many memory references for `mov'
callNativeOABI.S:59: Error: no such instruction: `ldr pc,[r4,'
callNativeOABI.S:61: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:62: Error: no such instruction: `ldr r2,[r4]'
callNativeOABI.S:64: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:65: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:66: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:68: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:69: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:70: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:75: Error: expecting operand after ','; got nothing
callNativeOABI.S:77: Error: no such instruction: `strge r0,[r2],'
callNativeOABI.S:78: Error: too many memory references for `mov'
callNativeOABI.S:80: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:81: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:83: Error: no such instruction: `addle pc,pc,r5,lsl'
callNativeOABI.S:85: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:86: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:88: Error: no such instruction: `ldmdb r4,{r4,r5,sp,pc}'
callNativeOABI.S:90: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:91: Error: no such instruction: `ldmdb r4,{r4,r5,sp,pc}'
callNativeOABI.S:95: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:96: Error: no such instruction: `stfd f0,[r0],'
callNativeOABI.S:97: Error: no such instruction: `ldmdb r4,{r4,r5,sp,pc}'
callNativeOABI.S:99: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:100: Error: no such instruction: `stfs f0,[r0],'
callNativeOABI.S:101: Error: no such instruction: `ldmdb r4,{r4,r5,sp,pc}'
callNativeOABI.S:104: Error: junk at end of line, first unrecognized character is `@'
callNativeOABI.S:105: Error: invalid char '[' beginning operand 2 `[r0]'
callNativeOABI.S:106: Error: no such instruction: `ldmdb r4,{r4,r5,sp,pc}'
make[5]: *** [callNative.lo] Error 1
make[5]: Leaving directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os/linux/arm'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os/linux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src/os'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ehsun7b/Downloads/jamvm-1.5.4/src'
make: *** [all-recursive] Error 1
最佳答案
借助 necroposting 的力量,我让 JamVM 出现并在 ARM Linux 上运行。
我的先决条件:
libz.so
和相应的 include
);GNU 类路径:
ANTLR_URL=http://www.antlr2.org/download/antlr-2.7.5.jar
ANTLR_JAR=antlr-2.7.5.jar
wget -c ${ANTLR_URL} --directory-prefix=/tmp
export PATH=$PATH:/usr/local/arm-2008q3/bin
export CROSS_COMPILE=arm-none-linux-gnueabi-
export ARCH=arm
export CC=${CROSS_COMPILE}gcc
export LD=${CROSS_COMPILE}ld
export PREFIX=/usr/classpath
./configure --host=arm-linux --without-x --disable-gtk-peer \
--disable-gconf-peer --with-antlr-jar=/tmp/${ANTLR_JAR} \
--prefix=${PREFIX}
make -j 4
sudo mkdir -p ${PREFIX}
sudo chown -R ${USER} ${PREFIX}
make install
JamVM:
sudo apt-get install libtool zip
export PATH=$PATH:/usr/local/arm-2008q3/bin
export CROSS_COMPILE=arm-none-linux-gnueabi-
export ARCH=arm
export CC=${CROSS_COMPILE}gcc
export LD=${CROSS_COMPILE}ld
export TARGET_INCLUDE=/buildroot/output/host/usr/include
export TARGET_LIB=/buildroot/output/target/usr/lib
export CPPFLAGS=-I${TARGET_INCLUDE}
export LDFLAGS=-L${TARGET_LIB}
export PREFIX=/usr/jamvm
export CP_PREFIX=/usr/classpath
export CONFIGURE_ARGS="--host=arm-linux \
--with-classpath-install-dir=${CP_PREFIX} --prefix=${PREFIX}"
./autogen.sh ${CONFIGURE_ARGS}
make
# Install JamVM to the same paths both on host and target,
# because I didn't find a configure arguments to distinguish such,
# and JamVM requires an installed GNU Classpath in order to build.
sudo mkdir -p ${PREFIX}
sudo chown -R ${USER} ${PREFIX}
make install
关于您的问题:第一个错误是 -L
路径上的目标平台缺少 libz.so
,第二个是错误的平台选择(可能是正确的编译器,但错误的选择了 C 源)。
关于linux - 使用 UBUNTU 和 arm-linux-gnueabi-gcc 为 ARM linux 交叉编译 JamVM - 缺少 zlib,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12969656/
我正在尝试使用以下命令在远程 Ubuntu 服务器的后台运行进程: sshpass -p PASSWORD ssh root@HOST 'nohup COMMAND-THAT-BLOCKS &' 不幸
普通 Ubuntu 和 ARM Ubuntu 有什么区别。我可以运行所有应用程序吗也在 ARM Ubuntu 中的普通 Ubuntu 下运行? Ubuntu 更新会自动发生吗? Torrent 下载器
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
我正在尝试预置 Xenial 图像,它工作得很好,除了分区。 cloud-init 只能增长根分区,并且在使用扩展分区内的根文件系统构建镜像时不起作用: NAME MAJ:MIN RM SIZ
我对 Ubuntu 和 OpenFoam 真的很陌生,所以尝试学习并做一些教程。我正在使用 Docker 在 Ubuntu 上使用 OpenFoam。 我将文件夹复制到特定目录,但是当我尝试使用终端访
我在使用系统启动设置运行软件时遇到问题。我有 ubuntu 20.04。我试图将这些行插入到 etc/rc.local #!/bin/bash /usr/bin/clamonacc 它不起作用。第二次
TARGETS = client server CL_OBJ = clientMain.o Controller.o UI.o List.o Movie.o Server.o Serializer.o
我有一个 ubuntu服务器系统是8.04 hardy ,我在哪里安装rabbitmq。 rabbitmq依赖于 erlang-nox (>= 1:12.b.3) ,但是在当前的 ubuntu 版本中
我有一个用于开发的 Ubuntu virtualbox 设置。当我在文件中处于 org-mode 时,org-mode 的任何热键都不起作用(例如 M-RETURN 用于创建新标题)。我该怎么做才能让
我的 SchemaCrawler(版本 15.01.03)模式图在 Ubuntu 18.04 LTS 上截断表名。看起来表格通常被画得太窄,因为“[TABLE]”符号也开箱即用。在我的 Mac 上渲染
在 Ubuntu 中,设置应用程序中有几个地方有一个非常漂亮的 ListView ,带有添加/删除按钮,包括外观、键盘布局、隐私、蓝牙等。他们使用什么小部件?我开始使用 Glade 开发我的第一个 U
需要帮助卸载 jjrofiler。没有意识到它需要许可证。通过 .sh 可执行文件安装。 最佳答案 如果您转到 jProfiler 安装目录,您将找到名为 uninstall 的可执行文件,只需从终端
我一直在寻找几天,我没有想出解决方案。我是 ruby 新手,但我想通过使用 spree 开发自己的在线商店。 我使用:rails:Rails 3.2.13 ruby :ruby-1.9.3-p42
我尝试使用以下命令从/usr/local/bin 中删除我的 python2.7 和 python3 文件夹:sudo rm -rf python2.7 和 sudo rm -rf python3。后
在 ubuntu 服务器中(使用 ssh 协议(protocol)), 如何更改因不活动而断开连接的时间? 最佳答案 你能在 .bash_profile 中加入“exec screen -R”,在 .
我使用以下配置在 /etc/apache2/site-available/mysite.local 中创建了一个虚拟主机: ServerAdmin webmaster@localhost
我为大约 210 个用户新设置了一个代理服务器。它运行 ubuntu server 2012 和 squid3。问题是在凌晨 1:30 之后,如果用户尝试打开 google.com、youtube.c
gitlab-ci-multi-runner 1.0.2 (ea19241) Using Shell executor... Running on ip-... Cloning repository.
我有一个备份服务器,它每小时接收许多 rsync 连接。由于打开太多 rsync 实例可能会导致崩溃,我想使用 Semaphore 来限制并发实例的数量。 .我的想法是这样的: ssh root@ba
我有同一个库的多个版本,我的程序动态链接到这些库。有时我想更改使用的版本。 我一直在阅读,出于安全原因,新版本的 Ubuntu 不再支持 LD_LIBRARY_PATH。我可以将路径添加到 /etc/
我是一名优秀的程序员,十分优秀!