Score:0

Utility to detect defect C/C++ compiled/object file

ca flag

Is there a Linux utility to detect a defect C/C++ compiled/object file interrupted amidst its compilation progress ?
How its simplest usage ?

guiverc avatar
cn flag
SE *Unix & Linux* provides Linux support; you've currently provided nothing on-topic for this site; please refer https://askubuntu.com/help/on-topic
us flag
please post the exact error message
hr flag
I'm not quite sure what kind of interrupted compilation you are dealing with, but a simply truncated ELF object file would likely be detectable by the `readelf` program e.g. `readelf --lint somefile.o >/dev/null` would emit an error like `Reading nnnn bytes extends past end of file for section headers`
Hannu avatar
ca flag
I would expect a failed compile to not produce any file at all; i.e. clean the build tree before attempting to compile. No file after attempt => failed to produce one.
HuHa avatar
es flag
In my 35+ years of C/C++ programming I have NEVER come across an object file that was corrupted during compilation. That is just a total non-issue. And even if that happened, the linker would complain.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.