【问题标题】:Error compiling glibc on mac在 mac 上编译 glibc 时出错
【发布时间】:2011-07-12 15:47:30
【问题描述】:

我正在尝试在我的 mac (os x 10.6.6) 上将 glibc 编译为:../glibc-2.13/configure --prefix=/dev1/cu 但它提出了:

configure: running configure fragment for add-on build.glibc
configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: $CXX
configure: error: unrecognized option: `-c'

请帮忙

【问题讨论】:

    标签: macos gcc compilation glibc


    【解决方案1】:

    -c 通常是一个选项,它指定您还不想链接文件。据我所知,至少所有最新版本都支持这一点。你能试着弄清楚 $CXX 的价值是多少吗?这告诉我们有关您的编译器的更多信息。

    【讨论】:

    • 你安装了 g++ 吗?你能给我g++ --version的输出吗?
    • g++ --version i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) 版权所有 (C) 2007 Free Software Foundation, Inc . 这是免费软件;查看复制条件的来源。没有保修;甚至不是为了适销性或特定用途的适用性。
    • 好的,所以我没有mac,所以我不得不继续猜测,但是:你确定是/dev1/,而不是/dev/?而且我想您正在以这种方式写入设备?不如先挂载到/media/extdevice,再使用--prefix=/media/extdevice
    • /dev1是我做的文件夹,developer1的缩写
    猜你喜欢
    • 1970-01-01
    • 2012-02-17
    • 1970-01-01
    • 2013-11-20
    • 1970-01-01
    • 1970-01-01
    • 2015-07-20
    • 2018-02-04
    • 2011-05-07
    相关资源
    最近更新 更多