Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
linux40
V2EX  ›  Linux

遇到 make -m 选项,但用的是 GNU make 应该怎么办啊?

  •  
  •   linux40 · Nov 26, 2016 · 2632 views
    This topic created in 3461 days ago, the information mentioned may be changed or developed.

    GNU make:

    -b, -m
        These options are ignored for compatibility with other versions of make. 
    

    FreeBSD 的 make: https://www.freebsd.org/cgi/man.cgi?make(1)

    MakeFile: http://www.loongnix.org/cgit/pmon-loongson3/tree/Makefile

    报错:

    cd '/home/mark/test/pmon/pmon-loongson3'
    /usr/bin/make -f Makefile
    make[1]: 进入目录“/home/mark/test/pmon/pmon-loongson3/tools ”
    make[1]: *** 没有规则可制作目标“/tools/mk ”。 停止。
    make[1]: 离开目录“/home/mark/test/pmon/pmon-loongson3/tools ”
    make: *** [Makefile:41 : pmontools] 错误 2
    
    Supplement 1  ·  Nov 27, 2016

    那个。。。不想新开一贴,有人编译过pmon么。

    按http://wiki.loongnix.org/index.php/PMON%E7%BC%96%E8%AF%91%E6%96%B9%E6%B3%95来的。

    结果make tgt=rom时:

    /pmon-loongson3/Targets/Bonito2edev/compile/Bonito/../../../../pmon/cmds/bootparam.c:500: error: ‘VRAM_SIZE’ undeclared (first use in this function)
    

    看了一下代码,确实没有定义VRAM_SIZE,给[email protected]发了邮件还没回。。。

    Supplement 3  ·  Nov 27, 2016

    tgt_machdep.c包括了一个头文件biosemu.h,里面有VRAM_SIZE

    #define VRAM_SIZE 0x20000
    

    不知道bootparam.c里是不是。。。

    1 replies    2016-11-26 21:52:09 +08:00
    skydiver
        1
    skydiver  
       Nov 26, 2016   ❤️ 2
    % sudo dnf install bmake
    % bmake -f Makefile
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3097 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.