V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
Ne
V2EX  ›  OpenWrt

求助各位 V 友 WNDR4300 OpenWrt 编译出错

  •  
  •   Ne · 2015-03-19 05:42:24 +08:00 · 2090 次点击
    这是一个创建于 3318 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在RamNode VPS Ubuntu 14.04 32-bit 上编译WNDR4300 OpenWrt出错。

    按教程(http://lotors.me/2014/08/16/opcompilepro/#Openwrt基础编译)

    出现下面的错误

    OpenWrt-libtool: compile: i686-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src -I/root/openwrt/trunk/staging_dir/host/include -I/root/openwrt/trunk/staging_dir/host/usr/include -g -O2 -MT c_source.lo -MD -MP -MF .deps/c_source.Tpo -c c_source.cc -fPIC -DPIC -o .libs/c_source.o
    i686-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
    make[9]: *** [c_source.lo] Error 1
    make[9]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6/src/skels'
    make[8]: *** [all] Error 2
    make[8]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6/src/skels'
    make[7]: *** [all-recursive] Error 1
    make[7]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6/src'
    make[6]: *** [all] Error 2
    make[6]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6/src'
    make[5]: *** [all-recursive] Error 1
    make[5]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6'
    make[4]: *** [all] Error 2
    make[4]: Leaving directory `/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6'
    make[3]: *** [/root/openwrt/trunk/build_dir/host/gengetopt-2.22.6/.built] Error 2
    make[3]: Leaving directory `/root/openwrt/trunk/tools/gengetopt'
    make[2]: *** [tools/gengetopt/compile] Error 2
    make[2]: Leaving directory `/root/openwrt/trunk'
    make[1]: *** [/root/openwrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyynnnyy] Error 2
    make[1]: Leaving directory `/root/openwrt/trunk'
    make: *** [world] Error 2


    请问各位V友,有知道这是怎么回事吗? 或有没有WNDR4300的编译教程。
    10 条回复    2015-03-21 19:56:59 +08:00
    v2exhehehehe
        1
    v2exhehehehe  
       2015-03-19 08:03:11 +08:00   ❤️ 1
    你看看必须的包都安装好了吗
    ```
    sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev
    ```
    这个是官方的wiki http://wiki.openwrt.org/doc/howto/buildroot.exigence 去看看吧
    tywtyw2002
        2
    tywtyw2002  
       2015-03-19 08:05:35 +08:00 via iPhone   ❤️ 1
    i686-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
    jasontse
        3
    jasontse  
       2015-03-19 08:17:51 +08:00 via iPad
    新手整天玩 trunk 干啥,晕了。
    aa65535
        4
    aa65535  
       2015-03-19 08:45:34 +08:00   ❤️ 1
    使用 x86_64 的系统。
    momiji
        5
    momiji  
       2015-03-19 11:53:34 +08:00   ❤️ 1
    还是建议ImageBiuld走起...这样后续安装kmod包也不会报md5不匹配...
    @aa65535 大神我之前使用春节后更新的ss spec自己编译了下,发现全局模式+启用内网白名单(白名单为空),IPSET自动分流会失效....但之前发布版本没这问题....请问这是bug么
    jasontse
        6
    jasontse  
       2015-03-19 12:00:20 +08:00 via iPad   ❤️ 1
    @momiji
    检查 vermagic 是有必要的,有时候即使 kernel 版本号一致 revision 不同强行安装 kmod 也有可能造成 kernel panic,我就遇到过。
    LazyZhu
        7
    LazyZhu  
       2015-03-19 12:22:58 +08:00 via iPhone   ❤️ 1
    内存耗尽了,g++编译很耗内存
    aa65535
        8
    aa65535  
       2015-03-19 21:26:09 +08:00
    @momiji 这属于设置问题,选择「全局模式」后就没有分流效果。
    注意「访问控制」和「代理方式」有区别的,「代理方式」只在 WAN 上生效。
    https://github.com/shadowsocks/openwrt-shadowsocks/wiki/LuCI:-Access-Control
    clanned
        9
    clanned  
       2015-03-20 09:27:31 +08:00   ❤️ 1
    vps没内存了 i686-linux-gnu-g++: internal compiler error: Killed (program cc1plus)
    advans
        10
    advans  
       2015-03-21 19:56:59 +08:00
    我也遇到过一样的问题,也是编译这个gengetopt-2.22.6时出现的错误,后来重装OS解决了。
    怀疑是旧系统在折腾中装了不知名软件包破坏了库文件。
    不是内存不足的原因,因为512M+512M绝对可以编译任何OW固件了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5911 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:37 · PVG 10:37 · LAX 19:37 · JFK 22:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.