Recently a new behavior has started to interfere with my build process. I get an error "file not recognized: File truncated". For a couple of days, I could work around this with
$ petalinux-build -x clean
and that would normally succeed. Now, the clean step has no effect. So I tried going back to a clean state:
$ petalinux-build -x mrproper $ petalinux-config
To make sure I didn't have any residual object files left over, I did this $ find . -name "*.o"
and confirmed that the only object files are in the components subdirectory. Then, $ petalinux-build
and immediately got this in the link step:
| analyzer.o: file not recognized: File truncated| collect2: error: ld returned 1 exit status
"Analyzer" is a class in my application; it's always the only one that is truncated, and it is not the first one listed in the list of object files named in the link step of the build.
My environment: Ubuntu 16.04 freshly updated, Petalinux 2016.4, 107GB of free space on the drive, and an i7 processor under the hood.
Does anyone have any suggestion how to resolve or work around this problem?