Compiled output files are empty (0 bytes) #746
Labels
topic: CLI
Related to the command line interface
type: imperfection
Perceived defect in any part of project
Bug Report
This is a followup to the fixes merged addressing #641, but it seems like a different enough issue that it should have its own bug report.
Current behavior
After pulling the latest changes (ad224f8) and updating my build script (by replacing the
upload
--input
andcompile
--output
flags with--input-dir
and--output-dir
, respectively), the generated executable packages are empty (file size 0 bytes)!In particular, the compile+upload command used is:
And the resulting files produced in
--output-dir
:The
Adafruit_nRF52
core's programmer utility fails with the following (misleading) error:WORKAROUND
Looking at the build log, it didn't look like there were any failures reported by the linker or by
objcopy
when converting the.elf
to.hex
, so it appeared like something after-the-fact was causing this.I thought that maybe this new
--output-dir
flag was clashing with the other flags (--build-path
, specifically), so I just removed--output-dir
entirely (previously, the--output
flag was required as workaround for this original bug), and sure enough the compile+upload completed successfully!Environment
arduino-cli version
):0.0.0-git Commit: ad224f85
Ubuntu 18.04
Additional context
COMPLETE LOG
The entire compile+build log for the failed upload follows:
The text was updated successfully, but these errors were encountered: