【问题标题】:checking whether c compiler works . . no (libdvbpsi source compile)检查 c 编译器是否工作。 .否(libdvbpsi 源代码编译)
【发布时间】:2015-06-24 19:02:37
【问题描述】:

我正在尝试在树莓派(运行 Raspbian)上为 vlc 的硬件加速版本编译最新版本的 libdvbpsi。我使用 git 克隆了一个存储库(git clone git://git.videolan.org/libdvbpsi.git),安装了 pkg-config、autoconf、libtool 和 buildessential,并运行了引导程序,但我挂断了配置。我尝试了 ./configure 与许多参数(--prefix=/usr、--enable-debug 等),但它们都导致相同的错误:

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

经历了许多线程,似乎没有一个工作,希望任何帮助。

【问题讨论】:

    标签: raspberry-pi vlc autoconf


    【解决方案1】:

    您的配置日志明确指出,您的 GCC 4.6.3 存在 ICE(内部编译器错误)。它似乎被破坏了,这很令人惊讶,因为您 / configure 正在编译一个简单的示例。

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

    【讨论】:

    • 太棒了,全新安装解决了这个问题。感谢您的帮助。
    猜你喜欢
    • 1970-01-01
    • 2014-05-15
    • 2017-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    相关资源
    最近更新 更多