Modify

Opened 6 years ago

Last modified 6 years ago

#1180 new enhancement

new option to save build logs of each compiled file

Reported by: Frank Löffler Owned by:
Priority: optional Milestone:
Component: Cactus Version: development version
Keywords: Cc:

Description

It would be convenient to have an option to automatically generate a log of building Cactus. This can usually be done just by piping the output of the 'make' command into a file, but for parallel builds this gets mixed up. It would be nice to have the output instead done by Cactus itself, on a file-by-file basis and, once done with a thorn, combined into a 'thorn-wide log' and once done with all thorns into an overall log file.

This would then make it much easier to post-process such logs, e.g., for analysis of occurring compiler warnings.

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by Erik Schnetter

I hear that LLVM is considering moving from make to ninja. I haven't used it myself, but if we redesign Cactus's make system, then a move to another mainstream make system may be worthwhile.

ninja builds in parallel by default, and buffers output in the way you describe above.

comment:2 Changed 6 years ago by Ian Hinder

It would be useful to have the time taken to compile the file in this log.

Aren't most compiler error messages prefixed with the name of the file anyway?

There are existing compilation-log analysis tools.

comment:3 Changed 6 years ago by Frank Löffler

Most compilers probably put the name of the file in the message. However, some might not, some might put things into multiple lines (especially for multiple warnings in the same file) and even then just knowning the file name isn't enough - we would have to be able to uniquely connect that back to a specific thorn, which in general we cannot. It would be interesting to try existing tools, and yes - timings would be interesting too.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from (none) to the specified user.
Next status will be 'confirmed'.
The owner will be changed from (none) to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.