当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 在Ubuntu9.04安装编译GCC-4.4.0 make时错误
帖子发表于 : 2009-06-14 15:02 

注册: 2009-06-13 5:35
帖子: 127
送出感谢: 0 次
接收感谢: 0 次
在Ubuntu9.04安装编译GCC-4.4.0时的在make时提示:i386-ubuntu-linux-ar找不到命令,是不是我哪里设置错了?请各位大侠赐教。

以下是安装过程:

william@ubuntu:~$ sudo /home/william/gcc-4.4.0/configure --prefix=/home/william/gcc-build --enable-threads=posix --disable-checking --enable--long-long --host=i386-ubuntu-linux --with-system-zlib --enable-languages=c,c++,java
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 build system type... i686-pc-linux-gnu
checking host system type... i386-ubuntu-linux-gnu
checking target system type... i386-ubuntu-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for i386-ubuntu-linux-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for i386-ubuntu-linux-g++... no
checking for i386-ubuntu-linux-c++... no
checking for i386-ubuntu-linux-gpp... no
checking for i386-ubuntu-linux-aCC... no
checking for i386-ubuntu-linux-CC... no
checking for i386-ubuntu-linux-cxx... no
checking for i386-ubuntu-linux-cc++... no
checking for i386-ubuntu-linux-cl... no
checking for i386-ubuntu-linux-FCC... no
checking for i386-ubuntu-linux-KCC... no
checking for i386-ubuntu-linux-RCC... no
checking for i386-ubuntu-linux-xlC_r... no
checking for i386-ubuntu-linux-xlC... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for i386-ubuntu-linux-gnatbind... no
checking for gnatbind... no
checking for i386-ubuntu-linux-gnatmake... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... yes
checking for version 0.10 of PPL... no
checking for correct version of CLooG... no
*** This configuration is not supported in the following subdirectories:
target-libada gnattools target-libgfortran target-libobjc
(Any other directories should still work fine.)
checking for bison... no
checking for byacc... no
checking for yacc... no
checking for bison... no
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... no
checking for lex... no
checking for flex... no
checking for makeinfo... no
checking for expect... no
checking for runtest... no
checking for i386-ubuntu-linux-ar... no
checking for i386-ubuntu-linux-as... no
checking for i386-ubuntu-linux-dlltool... no
checking for i386-ubuntu-linux-ld... no
checking for i386-ubuntu-linux-lipo... no
checking for i386-ubuntu-linux-nm... no
checking for i386-ubuntu-linux-ranlib... no
checking for i386-ubuntu-linux-strip... no
checking for i386-ubuntu-linux-windres... no
checking for i386-ubuntu-linux-windmc... no
checking for i386-ubuntu-linux-objcopy... no
checking for i386-ubuntu-linux-objdump... no
checking where to find the target ar... pre-installed
checking where to find the target as... pre-installed
checking where to find the target cc... pre-installed
checking where to find the target c++... pre-installed
checking where to find the target c++ for libstdc++... pre-installed
checking where to find the target dlltool... pre-installed
checking where to find the target gcc... pre-installed
checking where to find the target gcj... pre-installed
checking where to find the target gfortran... pre-installed
checking where to find the target ld... pre-installed
checking where to find the target lipo... pre-installed
checking where to find the target nm... pre-installed
checking where to find the target objdump... pre-installed
checking where to find the target ranlib... pre-installed
checking where to find the target strip... pre-installed
checking where to find the target windres... pre-installed
checking where to find the target windmc... pre-installed
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
william@ubuntu:~$ make
make[1]: 正在进入目录 `/home/william'
Configuring in ./fixincludes
configure: loading cache ./config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i386-ubuntu-linux-gnu
checking target system type... (cached) i386-ubuntu-linux-gnu
checking for i386-ubuntu-linux-gcc... (cached) 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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for a sed that does not truncate output... (cached) /bin/sed
checking whether gcc supports -W... (cached) yes
checking whether gcc supports -Wall... (cached) yes
checking whether gcc supports -Wwrite-strings... (cached) yes
checking whether gcc supports -Wstrict-prototypes... (cached) yes
checking whether gcc supports -Wmissing-prototypes... (cached) yes
checking whether gcc supports -Wold-style-definition... (cached) yes
checking whether gcc supports -Wmissing-format-attribute... (cached) yes
checking whether gcc supports -Wno-overlength-strings... (cached) yes
checking whether gcc supports -pedantic -Wno-long-long... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... (cached) yes
checking for feof_unlocked... (cached) yes
checking for ferror_unlocked... (cached) yes
checking for fflush_unlocked... (cached) yes
checking for fgetc_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for fileno_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fread_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether abort is declared... (cached) yes
checking whether asprintf is declared... (cached) no
checking whether basename is declared... (cached) no
checking whether errno is declared... (cached) no
checking whether vasprintf is declared... (cached) no
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... (cached) yes
checking whether fgetc_unlocked is declared... (cached) yes
checking whether fgets_unlocked is declared... (cached) no
checking whether fileno_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) no
checking whether fread_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether getc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
config.status: config.h is unchanged
Configuring in ./libiberty
configure: loading cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) /home/william/gcc-4.4.0/missing makeinfo --split-size=5000000
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i386-ubuntu-linux-gnu
checking for i386-ubuntu-linux-ar... (cached) i386-ubuntu-linux-ar
checking for i386-ubuntu-linux-ranlib... (cached) :
checking for i386-ubuntu-linux-gcc... (cached) 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... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for special C compiler options needed for large files... (cached) no
checking for _FILE_OFFSET_BITS value needed for large files... (cached) 64
checking for _LARGE_FILES value needed for large files... (cached) no
checking how to run the C preprocessor... (cached) gcc -E
checking whether gcc supports -W... (cached) yes
checking whether gcc supports -Wall... (cached) yes
checking whether gcc supports -Wwrite-strings... (cached) yes
checking whether gcc supports -Wc++-compat... (cached) yes
checking whether gcc supports -Wstrict-prototypes... (cached) yes
checking whether gcc supports -pedantic ... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking whether byte ordering is bigendian... (cached) no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for malloc.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for time.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for alloca.h... (cached) yes
checking for sys/pstat.h... (cached) no
checking for sys/sysmp.h... (cached) no
checking for sys/sysinfo.h... (cached) yes
checking for machine/hal_sysinfo.h... (cached) no
checking for sys/table.h... (cached) no
checking for sys/sysctl.h... (cached) yes
checking for sys/systemcfg.h... (cached) no
checking for stdint.h... (cached) yes
checking for stdio_ext.h... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking whether errno must be declared... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int... (cached) yes
checking size of int... (cached) 4
checking for uintptr_t... (cached) yes
checking for a 64-bit type... (cached) uint64_t
checking for pid_t... (cached) yes
checking for library containing strerror... (cached) none required
checking for asprintf... (cached) yes
checking for atexit... (cached) yes
checking for basename... (cached) yes
checking for bcmp... (cached) yes
checking for bcopy... (cached) yes
checking for bsearch... (cached) yes
checking for bzero... (cached) yes
checking for calloc... (cached) yes
checking for clock... (cached) yes
checking for ffs... (cached) yes
checking for getcwd... (cached) yes
checking for getpagesize... (cached) yes
checking for gettimeofday... (cached) yes
checking for index... (cached) yes
checking for insque... (cached) yes
checking for memchr... (cached) yes
checking for memcmp... (cached) yes
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
checking for mempcpy... (cached) yes
checking for memset... (cached) yes
checking for mkstemps... (cached) no
checking for putenv... (cached) yes
checking for random... (cached) yes
checking for rename... (cached) yes
checking for rindex... (cached) yes
checking for setenv... (cached) yes
checking for snprintf... (cached) yes
checking for sigsetmask... (cached) yes
checking for stpcpy... (cached) yes
checking for stpncpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strchr... (cached) yes
checking for strdup... (cached) yes
checking for strncasecmp... (cached) yes
checking for strndup... (cached) yes
checking for strrchr... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for strverscmp... (cached) yes
checking for tmpnam... (cached) yes
checking for vasprintf... (cached) yes
checking for vfprintf... (cached) yes
checking for vprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vsprintf... (cached) yes
checking for waitpid... (cached) yes
checking whether alloca needs Cray hooks... (cached) no
checking stack direction for C alloca... (cached) 0
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for _doprnt... (cached) no
checking for sys_errlist... (cached) yes
checking for sys_nerr... (cached) yes
checking for sys_siglist... (cached) yes
checking for external symbol _system_configuration... no
checking for getrusage... (cached) yes
checking for on_exit... (cached) yes
checking for psignal... (cached) yes
checking for strerror... (cached) yes
checking for strsignal... (cached) yes
checking for sysconf... (cached) yes
checking for times... (cached) yes
checking for sbrk... (cached) yes
checking for gettimeofday... (cached) yes
checking for realpath... (cached) yes
checking for canonicalize_file_name... (cached) yes
checking for pstat_getstatic... (cached) no
checking for pstat_getdynamic... (cached) no
checking for sysmp... (cached) no
checking for getsysinfo... (cached) no
checking for table... (cached) no
checking for sysctl... (cached) yes
checking for wait3... (cached) yes
checking for wait4... (cached) yes
checking for __fsetlocking... (cached) yes
checking whether basename is declared... (cached) no
checking whether ffs is declared... (cached) yes
checking whether asprintf is declared... (cached) no
checking whether vasprintf is declared... (cached) no
checking whether snprintf is declared... (cached) yes
checking whether vsnprintf is declared... (cached) yes
checking whether calloc is declared... (cached) yes
checking whether getenv is declared... (cached) yes
checking whether getopt is declared... (cached) yes
checking whether malloc is declared... (cached) yes
checking whether realloc is declared... (cached) yes
checking whether sbrk is declared... (cached) yes
checking whether strverscmp is declared... (cached) no
checking whether canonicalize_file_name must be declared... (cached) yes
checking for working strncmp... (cached) no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
make[2]: 正在进入目录 `/home/william/libiberty'
rm -f ./libiberty.a pic/./libiberty.a
i386-ubuntu-linux-ar rc ./libiberty.a \
./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o ./mkstemps.o ./strncmp.o
/bin/bash: i386-ubuntu-linux-ar:找不到命令
make[2]: *** [libiberty.a] 错误 127
make[2]:正在离开目录 `/home/william/libiberty'
make[1]: *** [all-libiberty] 错误 2
make[1]:正在离开目录 `/home/william'
make: *** [all] 错误 2


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 在Ubuntu9.04安装编译GCC-4.4.0 make时错误
帖子发表于 : 2009-06-14 15:08 
头像

注册: 2008-12-19 13:44
帖子: 2337
地址: 东8区
送出感谢: 0 次
接收感谢: 0 次
要依赖的东西没了,叫你补上


_________________
代码:
 
       \   ,__,
        \  (oo)____
           (__)    )\
              ||--|| * 
 


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 在Ubuntu9.04安装编译GCC-4.4.0 make时错误
帖子发表于 : 2009-06-14 19:36 

注册: 2009-06-13 5:35
帖子: 127
送出感谢: 0 次
接收感谢: 0 次
你能告诉我到底要把哪些东西补上吗?


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 在Ubuntu9.04安装编译GCC-4.4.0 make时错误
帖子发表于 : 2009-06-14 20:10 
头像

注册: 2008-12-19 13:44
帖子: 2337
地址: 东8区
送出感谢: 0 次
接收感谢: 0 次
http://packages.ubuntu.com/zh-cn/karmic/gcc


_________________
代码:
 
       \   ,__,
        \  (oo)____
           (__)    )\
              ||--|| * 
 


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Sogou [Spider] 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译