在执行make时出现提示:
Configuring in libiberty
configure: error: expected an absolute directory name for --prefix: --with-gcc-version-trigger=/root/gcc-3.4.4/gcc/version.c
make: *** [configure-libiberty] 错误 1
请问这是怎么回事?我以前在编译的时候没有遇到这种情况。
我的具体操作步骤如下:gcc-3.4.4在/usr目录下
mkdir gcc-3.4.4_obj
cd gcc-3.4.4_obj
../gcc-3.4.4/configure --prefix /usr
提示如下:
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
接下来执行:make bootstrap
就提示:
configure: error: expected an absolute directory name for --prefix: --with-gcc-version-trigger=/usr/gcc-3.4.4/gcc/version.c
make: *** [configure-libiberty] 错误 1