检查 c 编译器是否工作。 .否(libdvbpsi 源代码编译)

checking whether c compiler works . . no (libdvbpsi source compile)

我正在尝试为 raspberry pi (运行 Raspbian) 上的 vlc 硬件加速版本编译最新版本的 libdvbpsi。我用git克隆了一个仓库(git clone git://git.videolan.org/libdvbpsi.git),安装了pkg-config, autoconf、libtool 和 buildessential,以及 运行 bootstrap 但是我在配置上挂断了。我已经尝试使用一些参数(--prefix=/usr、--enable-debug 等)进行 ./configure,但它们都会导致相同的错误:

pi@raspberrypi ~/Downloads/libdvbpsi $ ./configure --prefix=/usr checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking target system type... armv7l-unknown-linux-gnueabihf checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... no configure: error: in ``/home/pi/Downloads/libdvbpsi': configure: error: C compiler cannot create executables See ``config.log' for more details

Here 是 config.log

经过无数次讨论后,none 似乎有效,将不胜感激任何帮助。

您的配置日志清楚地指出,您的 GCC 4.6.3 有一个 ICE(内部编译器错误)。它似乎坏了,这让你很惊讶/configure 正在编译一个简单的例子。

尝试重新安装 GCC 或使用一些 packports 存储库将其更新到更新版本。也许尝试 LLVM 项目中的 Clang。使用 CC=<compilerpath>.

设置 C 编译器