构建 GCC 失败(/bin/sh gcc-4.9.2/config.sub gmp)
building GCC failed (/bin/sh gcc-4.9.2/config.sub gmp )
我在 gcc-4.9.2 的父目录中安装了软件包,当我指定库所在的位置时,例如 --with-gmp,它说:
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `gmp': machine `gmp' not recognized
configure: error: /bin/sh gcc-4.9.2/config.sub gmp failed
命令:
gcc-4.9.2/configure --with-gmp gmp --enable-languages=c,c++
正确使用 --with-gmp
的方法是 --with-gmp=the/path/to/gmp
注意中间的 =
并且不应该有 space。发生的事情是 configure 将 --with-gmp gmp
视为两个不相关的参数,并将 gmp
视为构建,通常通过 --build=your-build-target
指定,但似乎您只是指定一个没有 gmp
的参数=16=] 或 --
它将其视为构建选项。
我在 gcc-4.9.2 的父目录中安装了软件包,当我指定库所在的位置时,例如 --with-gmp,它说:
configure: WARNING: you should use --build, --host, --target
checking build system type... Invalid configuration `gmp': machine `gmp' not recognized
configure: error: /bin/sh gcc-4.9.2/config.sub gmp failed
命令:
gcc-4.9.2/configure --with-gmp gmp --enable-languages=c,c++
正确使用 --with-gmp
的方法是 --with-gmp=the/path/to/gmp
注意中间的 =
并且不应该有 space。发生的事情是 configure 将 --with-gmp gmp
视为两个不相关的参数,并将 gmp
视为构建,通常通过 --build=your-build-target
指定,但似乎您只是指定一个没有 gmp
的参数=16=] 或 --
它将其视为构建选项。