[問題] configure過程中有錯誤影響make install
請問一下我在configure過程中,有些訊息的輸出是說 no
那我是該設法把他變成yes嗎
還有最底下有我的 config.log 檔
也是出現了一些錯誤的訊息
但是在configure完畢後,它還是產生了Makefile
那我還該將config.log檔所產生的錯誤的debug完在重新configure
產生一份沒有錯誤的Makefile來make
還是它產生了Makefile我就可以安裝了呢
底下是我的configure過程,以及最後我有貼上config.log
debian:~/work/build/build_binutils# /root/work/src/binutils-2.16.1/configure \
--target=arm-elf --prefix=/foo
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-elf
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
checking for bison... (cached) bison
checking for bison... (cached) bison -y
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-as... no
checking for as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... (cached) dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... (cached) ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... (cached) windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... (cached) objdump
checking for arm-elf-ar... no
checking for arm-elf-as... no
checking for arm-elf-dlltool... no
checking for arm-elf-ld... no
checking for arm-elf-nm... no
checking for arm-elf-ranlib... no
checking for arm-elf-windres... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
-----------------------
底下是 config.log 檔
-----------------------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1809: checking for gcc
configure:1922: checking whether the C compiler (gcc ) works
configure:1938: gcc -o conftest conftest.c 1>&5
configure:1964: checking whether the C compiler (gcc ) is a cross-compiler
configure:1969: checking whether we are using GNU C
configure:1997: checking whether gcc accepts -g
configure:2064: checking for gnatbind
configure:2129: checking whether compiler driver understands Ada
configure:2162: checking how to compare bootstrapped objects
configure:2260: checking for correct version of gmp.h
configure:2273: gcc -c -g -O2 conftest.c 1>&5
configure:2263:17: gmp.h: No such file or directory
configure: In function `main':
configure:2267: error: `choke' undeclared (first use in this function)
configure:2267: error: (Each undeclared identifier is reported only once
configure:2267: error: for each function it appears in.)
configure:2267: error: syntax error before "me"
configure: failed program was:
#line 2262 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {
#if __GNU_MP_VERSION < 3
choke me
#endif
; return 0; }
configure:2786: checking for bison
configure:2821: checking for bison
configure:2856: checking for gm4
configure:2891: checking for flex
configure:2926: checking for flex
configure:2961: checking for makeinfo
configure:3607: checking for i686-pc-linux-gnu-ar
configure:3640: checking for ar
configure:3679: checking for i686-pc-linux-gnu-as
configure:3712: checking for as
configure:3751: checking for i686-pc-linux-gnu-dlltool
configure:3784: checking for dlltool
configure:3823: checking for i686-pc-linux-gnu-ld
configure:3856: checking for ld
configure:3895: checking for i686-pc-linux-gnu-nm
configure:3928: checking for nm
configure:3967: checking for i686-pc-linux-gnu-ranlib
configure:4000: checking for ranlib
configure:4039: checking for i686-pc-linux-gnu-windres
configure:4072: checking for windres
configure:4111: checking for i686-pc-linux-gnu-objcopy
configure:4144: checking for objcopy
configure:4183: checking for i686-pc-linux-gnu-objdump
configure:4216: checking for objdump
configure:4262: checking for arm-elf-ar
configure:4334: checking for arm-elf-as
configure:4406: checking for arm-elf-dlltool
configure:4478: checking for arm-elf-ld
configure:4550: checking for arm-elf-nm
configure:4622: checking for arm-elf-ranlib
configure:4694: checking for arm-elf-windres
configure:4812: checking whether to enable maintainer-specific portions of Makefiles
configure:4859: checking if symbolic links between directories work
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.117.142
→
04/02 01:21, , 1F
04/02 01:21, 1F
→
04/02 01:22, , 2F
04/02 01:22, 2F
推
04/02 10:50, , 3F
04/02 10:50, 3F
→
04/02 10:51, , 4F
04/02 10:51, 4F
推
04/03 13:01, , 5F
04/03 13:01, 5F
推
04/03 13:30, , 6F
04/03 13:30, 6F
推
04/04 03:02, , 7F
04/04 03:02, 7F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章