LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 801|回复: 6

请教编译binutils出的问题?

[复制链接]
发表于 2003-7-14 11:04:54 | 显示全部楼层 |阅读模式
-bash-2.05b$ make LDFLAGS="-all-static"
Configuring in intl
loading cache .././config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether the C compiler (gcc -g -O2 -all-static) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-intl] Error 1
-bash-2.05b$

用的是2.14
 楼主| 发表于 2003-7-14 12:48:13 | 显示全部楼层
我的系统是rh9,编译binutils-2.14出现上述问题,不加 LDFLAGS="-all-static"可以编译,
我换成binutils-2.13.2,没有任何问题通过,接着编译gcc-3.2.3,又有问题
-bash-2.05b$ ../gcc-3.2.3/configure --prefix=/stage1 --with-local-prefix=/stage1
disable-nls --enable-shared enable-languages=c
*** Can only configure for one host and one target at a time.
Usage: configure [OPTIONS] [HOST]

Options: [defaults in brackets]
--prefix=MYDIR install into MYDIR [/usr/local]
--exec-prefix=MYDIR install host-dependent files into MYDIR [/usr/local]
--help print this message [normal config]
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [determined via config.guess]
--norecursion configure this directory only [recurse]
--program-prefix=FOO prepend FOO to installed program names [""]
--program-suffix=FOO append FOO to installed program names [""]
--program-transform-name=P transform installed names by sed pattern P [""]
--site=SITE configure with site-specific makefile for SITE
--srcdir=DIR find the sources in DIR [. or ..]
--target=TARGET configure for TARGET [TARGET=HOST]
--tmpdir=TMPDIR create temporary files in TMPDIR [/tmp]
--nfp configure for software floating point [hard float]
--with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
--without-FOO package FOO is NOT available
--enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
--disable-FOO do not include feature FOO

Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5", etc.

-bash-2.05b$
发表于 2003-7-14 13:48:40 | 显示全部楼层
disable-nls 这个应该是

--disable-nls

还有这个enable-languages=c

--enable-languages=c
 楼主| 发表于 2003-7-14 15:53:48 | 显示全部楼层
是这样,少打了两--,正在编译gcc-3.3中....
那么binutils-2.14也是参数的问题吗?
 楼主| 发表于 2003-7-14 17:04:48 | 显示全部楼层
Bootstrap complete - make "quickstrap" to redo last build,
"restage1" through "restage3" to rebuild specific stages,
or "cleanstrap" to redo the bootstrap from scratch.
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc'
Comparing stage2 and stage3 of the compiler
make[1]: Entering directory `/mnt/lfs/gcc-build/gcc'
rm -f .bad_compare
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for file in *.o; do \
  tail +16c ./$file > tmp-foo1; \
  tail +16c stage$stage/$file > tmp-foo2 \
    && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \
done
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
for dir in tmp-foo intl ; do \
  if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
    for file in $dir/*.o; do \
      tail +16c ./$file > tmp-foo1; \
      tail +16c stage$stage/$file > tmp-foo2 \
        && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >> .bad_compare) || true; \
    done; \
  else true; fi; \
done
rm -f tmp-foo*
case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo compare | sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
if [ -f .bad_compare ]; then \
  echo "Bootstrap comparison failure!"; \
  cat .bad_compare; \
  exit 1; \
else \
  case "compare" in \
    *-lean ) rm -rf stage$stage ;; \
    *) ;; \
  esac; true; \
fi
Bootstrap comparison failure!
bitmap.o differs
c-decl.o differs
c-lex.o differs
c-typeck.o differs
calls.o differs
cfgcleanup.o differs
combine.o differs
cppinit.o differs
cpplib.o differs
cse.o differs
dbxout.o differs
df.o differs
dwarf2out.o differs
dwarfout.o differs
expr.o differs
final.o differs
fold-const.o differs
function.o differs
gensupport.o differs
haifa-sched.o differs
hashtable.o differs
ifcvt.o differs
insn-emit.o differs
insn-recog.o differs
lcm.o differs
local-alloc.o differs
loop.o differs
predict.o differs
print-tree.o differs
read-rtl.o differs
real.o differs
reload.o differs
reload1.o differs
sbitmap.o differs
sched-rgn.o differs
simplify-rtx.o differs
varasm.o differs
make[1]: *** [compare] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build/gcc'
make: *** [bootstrap] Error 2
-bash-2.05b$

用make BOOT_LDFLAGS="-static" bootstrap编译3.3和3.2.3错误是一样的
上面是3.2.3的信息,请教这会是什么原因?
发表于 2003-7-15 07:42:37 | 显示全部楼层
我昨天编译了一下到你这步的时候出的错和你一样,2erro
发表于 2003-7-15 10:11:09 | 显示全部楼层
典型的倚赖性问题,
主系统里缺少库文件或是头文件, 或者不在默认的地方.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表