GNU使--output同步不起作用? [英] GNU Make --output-sync doesn't work?

查看:235
本文介绍了GNU使--output同步不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是快把我逼疯了。

有关并行make构建(-j),你应该能够在控制台输出同步。下面是编号:

For parallel make builds (-j), you're supposed to be able to synchronize the console output. Here is ref:

  • GNU Make Manual: 5.4.1 Output During Parallel Execution

我使用GNU制作为3.82的x86_64-红帽Linux的GNU的

I'm using GNU Make 3.82 for x86_64-redhat-linux-gnu

非同步的:

make -j8 all         //not synchronized

收益率(我在这里使用Eclipse的CDT managedbuild):

yields (i'm using eclipse-cdt managedbuild here):

Building file: ../dome.c
Building file: ../main.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"dome.d" -MT"dome.d" -o "dome.o" "../dome.c"
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.c"
Finished building: ../dome.c
Finished building: ../main.c


Building target: empty_linux
Invoking: GCC C Linker
gcc  -o "empty_linux"  ./dome.o ./main.o   
Finished building target: empty_linux

同步尝试

make -j8 all --output-sync    

收益率(为相同的结果-O / -Oline /等):

yields (same result for -O/-Oline/etc):

make: unrecognized option '--output-sync 

你到底我做错了什么?

what the heck am I doing wrong??

推荐答案

- 输出同步选项仅在的GNU~~MD~~aux使4.0 。另外,你的情况应该是:

The --output-sync option is only available in GNU make 4.0. Also, in your case you should use:

--output-sync=target

-Otarget

但是,这不会与3.82版本。

But this won't work with version 3.82.

这篇关于GNU使--output同步不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆