When using Mbed Studio 1.4.4 on Ubuntu 20.04, Kernel 5.4.0, the mbed-os build process takes about 20 minutes and “Run program” is stuck on “Scan: APPNAME” in the “Output” tab for >10 minutes.
The project files are found on my Windows partition which is mounted as follows:
$ mount -l | grep pwin
/dev/sda2 on /media/pwin type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) [Windows]
Steps to reproduce:
- Have an NTFS drive mounted
- Try to compile mbed OS
- the process “mount.ntfs” slowly increases the CPU load from 0% to 100% (single core)
- At the end, the compiler kindly notifies you that it took more than 5 minutes to compile (no shit Sherlock!)
Moving the project to the Linux ext4 partition solves the issue. Thus I assume the IDE queries the same files too often or too fast, resulting in a full queue of operations to process by the ntfs-3g driver. Might there be optimization potential to reduce file lookups (recursive searches, for example?) or to at least warn the user when this configuration is used?