Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied (Read 969 times)
ausculta
Newbies
*
Offline


Posts: 8
Joined: Jul 6th, 2022
ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Jun 7th, 2024 at 7:53pm
Print Post  
VM version 2024_0607_2200 with VS2022 and ESP32-Arduinoo 3.0.1:
Compiling debug version of 'XXXXX' for 'DOIT ESP32 DEVKIT V1 (esp32_esp32doit-devkit-v1)'
 
   fatal error: opening dependency file nul.d: Permission denied


     An error was encountered during the 'Deep Search' library discovery process.
Debug build failed for project 'XXXXX'

I've also tried with deep search 'off' (bad idea!) and SCons (didn't compile either).

I've attached a compile log with most of the PII data removed (I think). Let me know if / what other logs would help you.

Thanks.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ausculta
Newbies
*
Offline


Posts: 8
Joined: Jul 6th, 2022
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #1 - Jun 9th, 2024 at 10:28pm
Print Post  
For clarity, if I remove ESP32-Arduino 3.0.1 and restore v2, everything compiles (and works) fine.

The only changes to our code are those required to accommodate the breaking changes introduced in v3.0.1 (timers API in this case). Obviously, to compile with v2, I have to back these changes out too.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #2 - Jun 10th, 2024 at 1:56pm
Print Post  
Thanks for the report and the detail.

I believe I can see what is happening, though not sure why I cannot reproduce the same error.

If possible, could you install the 3.0.1 Board Package again, and recreate the error.

Then if you open the platform.txt file in C:/Users/XXXX/AppData/Local/arduino15/packages/esp32/hardware/esp32/3.0.1/, and edit the compiler.cpp.flags to remove the -MMD flag.

It should then compile as normal, but we will continue to investigate.
  
Back to top
IP Logged
 
ausculta
Newbies
*
Offline


Posts: 8
Joined: Jul 6th, 2022
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #3 - Jun 10th, 2024 at 3:16pm
Print Post  
Hi Simon.
Thank you. I'll do that a little later. The -MMD flag is requested in the v2 to v3 migration guide, if I remember correctly. I'll re-install and re-run without the flag later tonight though.
Thanks.
  
Back to top
 
IP Logged
 
ausculta
Newbies
*
Offline


Posts: 8
Joined: Jul 6th, 2022
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #4 - Jun 10th, 2024 at 4:37pm
Print Post  
Hello,
The build completes fine after removing the -MMD flag. I'm not sure (or sold on) what value the flag adds but according to https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x...
If your project uses extra flags in the compilation process, it will now overwrite some required default flags. To ensure your project compiles correctly, make sure to have the -MMD -c flags in your C and C++ extra flags.
So this is likely to come up again. 
Thanks.

PS: moving from v2 to v3 of Arduino-ESP32 caused a 144 KB increase in the binary output to 1008 KB. That's a very substantial increase - not something VM can do much about but another one to be aware of, I guess.
« Last Edit: Jun 10th, 2024 at 5:03pm by ausculta »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #5 - Jun 11th, 2024 at 8:21am
Print Post  
Thanks for trying this and the detail around the changes in binary size.

We will test the changes, and update when there is a release available with the fix in to automatically remove the flag.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #6 - Jun 11th, 2024 at 12:39pm
Print Post  
We have released an updated version (2024.0607.01) with this fix in to the forum:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Let us know if you have any issues with this updated version.
  
Back to top
IP Logged
 
ausculta
Newbies
*
Offline


Posts: 8
Joined: Jul 6th, 2022
Re: ESP-Arduino 3.0.1 + 2024_0607_2200 - fatal error: opening dependency file nul.d: Permission denied
Reply #7 - Jun 11th, 2024 at 2:19pm
Print Post  
New version looks good and compiled. I added the -MMC flag to the extra c and cpp flags too and they were removed.

Thank you for the quick turnaround on this.  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint