+ -
当前位置:首页 → 问答吧 → lfs 611 binutils error!

lfs 611 binutils error!

时间:2007-12-04

来源:互联网

lfs:/mnt/lfs/sources/binutils-build$ make install
/bin/sh ../binutils-2.15.94.0.2.2/mkinstalldirs /tools /tools
mkdir -p -- /tools /tools
mkdir: cannot create directory `/tools': Permission denied
mkdir: cannot create directory `/tools': Permission denied
make: *** [installdirs] Error 1
lfs:/mnt/lfs/sources/binutils-build$



I have set the ownership of $LFS/tools to the user 'lfs'

MY OS is FC-8 in vm6

what's wrong? Thank you!

作者: shengcor   发布时间: 2007-12-04

FC8 做 LFS-6.1.1 注定有问题的,不要继续了,换 6.3 来做吧

作者: d00m3d   发布时间: 2007-12-04

把selinux关掉试一下。

作者: suzhi   发布时间: 2007-12-04

我用F8来做lfs6.3的时候编译binutils的时候configure就有找不到mpfr.h的报错了!!不知道怎么搞的;

config.log
configure:2187: checking whether compiler driver understands Ada
configure:2219: checking how to compare bootstrapped objects
configure:2317: checking for correct version of gmp.h
configure:2330: gcc -B/usr/bin/ -c -g -O2 conftest.c 1>&5
configure:2343: checking for MPFR
configure:2356: gcc -B/usr/bin/ -o conftest -g -O2 conftest.c -lmpfr -lgmp 1>&5
configure:2350:18: error: mpfr.h: No such file or directory
configure: In function 'main':
configure:2352: error: 'mpfr_t' undeclared (first use in this function)
configure:2352: error: (Each undeclared identifier is reported only once
configure:2352: error: for each function it appears in.)
configure:2352: error: expected ';' before 'n'
configure:2352: error: 'n' undeclared (first use in this function)
configure: failed program was:
#line 2348 "configure"
#include "confdefs.h"
#include <gmp.h>
#include <mpfr.h>
int main() {
mpfr_t n; mpfr_init(n);

作者: kicoo   发布时间: 2007-12-04

The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.
-----------------------------------------------------------------------------------------------
在configure里面也说
-------------------------------------------------------------------------------------------------
--with-mpfr-dir=PATH this option has been REMOVED
--with-mpfr=PATH specify prefix directory for installed MPFR package.
Equivalent to --with-mpfr-include=PATH/include
plus --with-mpfr-lib=PATH/lib
--with-mpfr-include=PATH
specify directory for installed MPFR include files
--with-mpfr-lib=PATH specify directory for the installed MPFR library
--with-gmp-dir=PATH this option has been REMOVED
--with-gmp=PATH specify prefix directory for the installed GMP package.
Equivalent to --with-gmp-include=PATH/include
plus --with-gmp-lib=PATH/lib
--with-gmp-include=PATH specify directory for installed GMP include files
--with-gmp-lib=PATH specify directory for the installed GMP library

-----------------------------------------------------------------------------------------------
是不是应该用上--without-mpfr --without-gmp这两个选项了!!

作者: kicoo   发布时间: 2007-12-04

你好
解决了吗
我也有同样的问题

作者: awnun   发布时间: 2008-01-01

Fedora 要安装mpfr-devel开发包,这个不在下载下来的光盘里面的
我今天在Fedoar10下面编译ARM-ELFGCC就要这个文件
于是我安装mpfr-devel-2.3.2-1.fc10.i386.rpm就好了!

作者: 残剑饮血   发布时间: 2009-01-30