如何在Solaris10上从源代码安装libffi和binutils?

问题描述

我将在没有root访问权限的情况下在Solaris 10上安装 libffi 。这用于稍后使用Python 3.6的点安装 cffi Jupyter 。建设期间我遇到了一些错误,请帮忙。谢谢!

uname -a的输出是 SunOS 5.10 Generic_150400-63 sun4v sparc

  1. 我下载了libffi-3.3 here,并使用./configure --prefix=XXXXmake进行了构建,但出现错误:
gcc -DHAVE_CONFIG_H -I. -I..  -I. -I../include -Iinclude -I../src    -O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -Wall -fexceptions -DSPARC -E -x assembler-with-cpp -o libffi.map 
gcc: warning: `-x assembler-with-cpp' after last input file has no effect
gcc: no input files
*** Error code 1
make: Fatal error: Command failed for target `libffi.map'
...
...
  1. 如libffi git site所述,“ SPARC Solaris构建要求使用GNU汇编器和链接器。在配置之前将AS和LD环境变量指向那些工具。”,因此我试图安装提供GNU AS和LD的 binutils 。我尝试使用./configure --prefix=XXXXmakemake <target>安装所有binutils目标或仅安装gas或ld,但是总是出现错误
rm -f stamp-h1
/bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
...
...
/usr/bin/sed -e s/NN/32/g <  > elf32-target.h
bash: -c: line 0: syntax error near unexpected token `>'
*** Error code 2
make: Fatal error: Command failed for target `elf32-target.h'
...
...
make: Fatal error: Command failed for target `all-bfd'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...