Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile Marlin all of a sudden #4270

Closed
Forunnerod opened this issue May 16, 2022 · 63 comments
Closed

Cannot compile Marlin all of a sudden #4270

Forunnerod opened this issue May 16, 2022 · 63 comments
Labels
bug config platformio.ini
Milestone

Comments

@Forunnerod
Copy link

Forunnerod commented May 16, 2022

Solution

  1. Please open PlatformIO Core CLI (see screenshot below)
  2. Type pio upgrade --dev
  3. Restart VSCode.

168773624-58165d88-e854-497a-8da9-40fc758651f6


Executing task: C:\Users\Mike.platformio\penv\Scripts\platformio.exe run <

Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing STM32F103RE_btt_maple (platform: ststm32@~12.1; board: genericSTM32F103RE; framework: arduino)
---------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option

@JSo10
Copy link

JSo10 commented May 16, 2022

I'm getting the same warning and then it will fail. after about 3 attempts with different files that previously worked the program crashed and I had to restart my pc.

@ivankravets ivankravets transferred this issue from platformio/platformio-vscode-ide May 16, 2022
@ivankravets
Copy link
Member

Could someone provide a simple project to reproduce this issue?

The src_filter option has been renamed to the build_src_filter, but the previous version should work too.

@SISLANGER
Copy link

@ivankravets Same on Mac when compiling Marlin Firmware

@ivankravets ivankravets changed the title This is all I get today, nothing past this, tried several diffent builds on pc that worked, last time I compiled was on 8th, not sure if windows update or what... I updated everyting I could in VSS and PIO and got a warning about powershell so I also updated that and reinstalled from microsoft.... Warning! src_filter configuration option in section [env:include_tree] is deprecated May 16, 2022
@ivankravets
Copy link
Member

@thinkyhead sorry that disturb you. Did we break something in PlatformIO Core 6.0? It has been released a few hours ago.

@MakeNPrint
Copy link

MakeNPrint commented May 16, 2022

@ivankravets I can confirm renaming occurances src_filter with build_src_filter resolves the issue. So appears the backward compatability is not working.

@MakeNPrint
Copy link

@ivankravets update it fails at the last hurdle.

It now compiles but has a load of yellow warning and at the end fails to produce the firmware.bin. So while it fixes the PlatformIO issue, I suspect it breaks Marlin.

@ivankravets
Copy link
Member

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

  • ~/.platformio/platforms
  • ~/.platformio/packages

Did it help temporarily?

@JSo10
Copy link

JSo10 commented May 16, 2022

the auto-build marlin is saying to update to the latest version. after downgradeing.
update message

@TD-er
Copy link

TD-er commented May 16, 2022

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

  • ~/.platformio/platforms
  • ~/.platformio/packages

Did it help temporarily?

Nope, have been trying for over an hour but I don't seem to be able to reliably let PIO build.
Had it able to build once using PIO6, but then do a clean and build again and it failed again.
I now have reverted to PIO 5.2.5, but still see these linker errors cause by excluded folders that were built anyway.
Have deleted the mentioned folders, but still it fails to build.

Any ETA on when this might be fixed?

Edit:
I had moved the src_filter from my own [common] section to the [platformio] section and there it was apparently not being used.
Moved it back to my own [common] section and now it builds again in PIO 5.2.5

@aufdenkampe
Copy link

aufdenkampe commented May 16, 2022

I've had no end of troubles today trying to get projects to build with PIO6.
The most challenging thing is that the errors aren't even reproducible; I seem to get a different set of errors each time I try to rebuild everything (by deleting the .pio folder and restarting VSCode).

I'll try downgrading with pip install "platformio<6"

@jbaiao
Copy link

jbaiao commented May 16, 2022

We found a bug on our side and will provide a quick fix soon. Sorry.

While this issue has not been fixed, please downgrade temporary to PlatformIO Cotr 5.0 via opening PlatformIO Core CLI in VSCode and typing:

pip install "platformio<6"

It also might require removing the following folders:

  • ~/.platformio/platforms
  • ~/.platformio/packages

Did it help temporarily?

Yes, this work!
Tks!

@SikVac
Copy link

SikVac commented May 17, 2022

Platformio 6 is on beta and incompatible with Marlin ! Go back to 5.2.5 !
image
pip install platformio==5.2.5

@ivankravets ivankravets added this to the 6.0.1 milestone May 17, 2022
@ivankravets ivankravets pinned this issue May 17, 2022
@ivankravets ivankravets changed the title Warning! src_filter configuration option in section [env:include_tree] is deprecated MarlinFirmware: Warning! src_filter configuration option in section [env:include_tree] is deprecated May 17, 2022
@ivankravets
Copy link
Member

Guys, sorry for the issue. Could we ask you to re-test the latest development version?

  1. Open PlatformIO Core CLI
  2. Type pio upgrade --dev
  3. Restart VSCode.

If it works for you, we will release PIO Core 6.0.1.

Thanks.

@MakeNPrint
Copy link

@ivankravets not for me (Mac) still giving

collect2: error: ld returned 1 exit status
*** [.pio/build/BIGTREE_SKR_PRO/firmware.elf] Error 1

@ivankravets ivankravets changed the title MarlinFirmware: Warning! src_filter configuration option in section [env:include_tree] is deprecated Cannot compile Marlin all of a sudden May 17, 2022
@aufdenkampe
Copy link

@ivankravets, thanks for the heads up that you fully dropped support for Atom. I hadn't picked that up.

My reasons for still using Atom from time to time are due to:

  • Atom having the ability to insert text via the serial monitor, similar to the capabilities with Arduino IDE. The last time I looked for this in VSCode, it was clear that that feature doesn't exist, and it's valuable for a few of the sketches I still use.
  • Atom has some nicer features with editing via a split diff viewer. VSCode is OK (its faster), but Atom is more accurate and the plugin I use has some nice shortcut features.

Other than that, I'm quite happy with the switch to VSCode.

@aufdenkampe
Copy link

@ivankravets, these fixes are still not working for me.

It seemed to compile my code, but only the first time after reinstalling it (which I had to do frequently with the weird issue with Atom).

The second time compiling after a clean reinstall gives me this error, every time.

Note that I'm running on Mac OS 12.3 and have Anaconda 2022-05 installed for Python.

The exact same code and .ini file worked for me last week.

Processing mayfly (board: mayfly; platform: atmelavr; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/mayfly.html
PLATFORM: Atmel AVR (3.4.0) > EnviroDIY Mayfly
HARDWARE: ATMEGA1284P 8MHz, 16KB RAM, 127KB Flash
DEBUG: Current (simavr) On-board (simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
Converting RCB-4.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ deep+, Compatibility ~ soft
Found 30 compatible libraries
Scanning dependencies...
Dependency Graph
|-- EnviroDIY_ModularSensors @ 0.32.2
|   |-- EnviroDIY_DS3231 @ 1.3.4
|   |   |-- Wire @ 1.0
|   |-- EnableInterrupt @ 1.1.0
|   |-- SdFat @ 2.1.2
|   |   |-- SPI @ 1.0
|   |-- TinyGSM @ 0.11.5
|   |-- PubSubClient @ 2.8.0
|   |-- Adafruit BusIO @ 1.7.5
|   |   |-- Wire @ 1.0
|   |   |-- SPI @ 1.0
|   |-- Adafruit Unified Sensor @ 1.1.5
|   |-- Adafruit ADS1X15 @ 1.2.0+sha.7d67b45
|   |   |-- Wire @ 1.0
|   |-- Adafruit AM2315 @ 2.2.1
|   |   |-- Adafruit BusIO @ 1.7.5
|   |   |   |-- Wire @ 1.0
|   |   |   |-- SPI @ 1.0
|   |   |-- Wire @ 1.0
|   |-- Adafruit BME280 Library @ 2.1.4
|   |   |-- Adafruit Unified Sensor @ 1.1.5
|   |   |-- SPI @ 1.0
|   |   |-- Wire @ 1.0
|   |-- DHT sensor library @ 1.4.3
|   |   |-- Adafruit Unified Sensor @ 1.1.5
|   |-- Adafruit INA219 @ 1.1.1
|   |   |-- Wire @ 1.0
|   |   |-- Adafruit BusIO @ 1.7.5
|   |   |   |-- Wire @ 1.0
|   |   |   |-- SPI @ 1.0
|   |   |-- SPI @ 1.0
|   |-- Adafruit MPL115A2 @ 1.1.3
|   |   |-- Wire @ 1.0
|   |-- OneWire @ 2.3.6
|   |-- DallasTemperature @ 3.9.1
|   |   |-- OneWire @ 2.3.6
|   |-- SDI-12 @ 2.1.4
|   |-- MS5803 @ 0.1.2
|   |   |-- Wire @ 1.0
|   |-- SensorModbusMaster @ 0.6.8
|   |-- KellerModbus @ 0.2.2
|   |   |-- SensorModbusMaster @ 0.6.8
|   |-- YosemitechModbus @ 0.2.5
|   |   |-- SensorModbusMaster @ 0.6.8
|   |-- SPI @ 1.0
|   |-- Wire @ 1.0
|   |-- Tally_Library @ 0.1.0+sha.3b128ad
|   |   |-- Wire @ 1.0
|-- SdFat @ 2.1.2
|   |-- SPI @ 1.0
|-- AltSoftSerial @ 1.4.0+sha.8e86f89
|-- NeoSWSerial @ 3.0.6+sha.79d693b
|-- SoftwareSerial_ExtInts @ 1.0.0+sha.4ddf9fb
|-- EnableInterrupt @ 1.1.0
|-- EnviroDIY_DS3231 @ 1.3.4
|   |-- Wire @ 1.0
|-- SPI @ 1.0
|-- TinyGSM @ 0.11.5
|-- YosemitechModbus @ 0.2.5
|   |-- SensorModbusMaster @ 0.6.8
|-- SensorModbusMaster @ 0.6.8
Building in release mode
Compiling .pio/build/mayfly/src/RCB-4.ino.cpp.o
Compiling .pio/build/mayfly/lib091/Wire/Wire.cpp.o
Compiling .pio/build/mayfly/lib091/Wire/utility/twi.c.o
Compiling .pio/build/mayfly/lib00d/EnviroDIY_DS3231/Sodaq_DS3231.cpp.o
Compiling .pio/build/mayfly/lib723/SPI/SPI.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFilePrint.cpp.o
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino: In function 'float calculateSonarGageHeight()':
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino:303:17: warning: unused variable 'minimumRange' [-Wunused-variable]
     const float minimumRange = 500;    // in millimeters
                 ^~~~~~~~~~~~
/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/deploy-RCB/RCB-4/RCB-4.ino:304:17: warning: unused variable 'maximumRange' [-Wunused-variable]
     const float maximumRange = 10000;    // in millimeters
                 ^~~~~~~~~~~~
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFormatter.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatName.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatPartition.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatVolume.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o
Archiving .pio/build/mayfly/lib00d/libEnviroDIY_DS3231.a
Indexing .pio/build/mayfly/lib00d/libEnviroDIY_DS3231.a
Archiving .pio/build/mayfly/lib723/libSPI.a
Archiving .pio/build/mayfly/lib091/libWire.a
Compiling .pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o
/Users/aaufdenkampe/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ar: .pio/build/mayfly/lib723/libSPI.a: No such file or directory
/Users/aaufdenkampe/.platformio/packages/toolchain-atmelavr/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ar: .pio/build/mayfly/lib091/libWire.a: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib723/libSPI.a] Error 1
*** [.pio/build/mayfly/lib091/libWire.a] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFileWrite.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatDbg.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatDbg.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/ExFatLib/ExFatFile.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFileLFN.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o: No such file or directory
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFilePrint.cpp.o] Error 1
Assembler messages:
Fatal error: can't create .pio/build/mayfly/src/RCB-4.ino.cpp.o: No such file or directory
Assembler messages:
Fatal error: can't create .pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o: No such file or directory
*** [.pio/build/mayfly/src/RCB-4.ino.cpp.o] Error 1
*** [.pio/build/mayfly/lib58c/SdFat/FatLib/FatFile.cpp.o] Error 1
FileNotFoundError: [Errno 2] No such file or directory: '/Users/aaufdenkampe/Documents/Arduino/EnviroDIY_deployments/.pio/build/mayfly/.sconsign36.tmp':
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1401:
    _exec_main(parser, values)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1365:
    _main(parser)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1134:
    nodes = _build_targets(fs, options, targets, target_top)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1340:
    jobs.run(postfunc = jobs_postfunc)
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Job.py", line 110:
    postfunc()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/Script/Main.py", line 1337:
    SCons.SConsign.write()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/SConsign.py", line 133:
    syncmethod()
  File "/Users/aaufdenkampe/.platformio/packages/tool-scons/scons-local-4.3.0/SCons/dblite.py", line 148:
    with self._open(self._tmp_name, "wb", self._mode) as f:
=============================================== [FAILED] Took 4.13 seconds ===============================================
The terminal process "platformio 'run'" terminated with exit code: 1.

@TD-er
Copy link

TD-er commented May 19, 2022

To me it looks like a lib_deps is missing one of the libraries you need (or maybe there is a naming conflict with another library or fork) or it can't find a lib you have in your project.

@adquarters
Copy link

After 3 days of trying I still can not compile.
I have a Creality CR10 S5 and desperately need to install the firmware.
Can anyone compile the code and send me the install file to put on my SD card????

@ivankravets
Copy link
Member

@adquarters please share the full output from the building process.

@adquarters
Copy link

Executing task: platformio run <

Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing mega2560 (board: megaatmega2560; platform: atmelavr@~3.4; framework: arduino)

Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/megaatmega2560.html
PLATFORM: Atmel AVR (3.4.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) On-board (avr-stub, simavr)
PACKAGES:

  • framework-arduino-avr @ 5.1.0
  • toolchain-atmelavr @ 1.70300.191015 (7.3.0)
    Converting Marlin.ino
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 5 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- SPI @ 1.0
    |-- Wire @ 1.0
    |-- EEPROM @ 2.0
    |-- SoftwareSerial @ 1.0
    Building in release mode
    Linking .pio/build/mega2560/firmware.elf
    /var/folders/7q/17449rn12ylfh4npzdbcmq800000gn/T//cctM5dZd.ltrans0.ltrans.o: In function main': <artificial>:(.text.startup+0xe0): undefined reference to setup'
    :(.text.startup+0xe8): undefined reference to `loop'
    collect2: error: ld returned 1 exit status
    *** [.pio/build/mega2560/firmware.elf] Error 1
    ================================================== [FAILED] Took 5.05 seconds ==================================================

Environment Status Duration


mega2560 FAILED 00:00:05.049
============================================= 1 failed, 0 succeeded in 00:00:05.049 =============================================
The terminal process "platformio 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

@adquarters
Copy link

I have tried with Arduino and VS Code

@ivankravets
Copy link
Member

Have you read this thread from the beginning?

@mrrstrat
Copy link

To me it looks like a lib_deps is missing one of the libraries you need (or maybe there is a naming conflict with another library or fork) or it can't find a lib you have in your project.

Other languages can generate such an error if the interface references within libs has changed in some unaccomodatable way.

@adquarters
Copy link

Yes but I am definitely not a coder

@mrrstrat
Copy link

Yes but I am definitely not a coder

We still like you anyway :-)

@ivankravets
Copy link
Member

You need to upgrade PlatformIO Core to the latest stable version. The instruction is added above. Simply, click on the PlatformIO icon in VSCode (left activity bar) => Misc... => Upgrade PlatfomIO Core.

Restart VSCode.

Does it work now?

@adquarters
Copy link

doing it now

@adquarters
Copy link

SUCCESS!!!!!

@adquarters
Copy link

I still have lots of warnings but I should ignore them correct?

@adquarters
Copy link

Hey Ivan, Thank you very much! I have uploaded the firmware and it seems to be working. I'm sure my issue was simple but as I said I an no coder but I'm one hell of a 3D printer.
THANKS!!!

Sal

@ivankravets
Copy link
Member

Glad that it works now. Yes, please ignore warnings, they don't have any impact on the final firmware. The Marlin team works on fixing these warnings, see MarlinFirmware/Marlin#24205

@manuugonz
Copy link

manuugonz commented Jan 8, 2023

@ivankravets I have been following the thread from the beginning and am currently upgraded to the latest more stable version 6.1.5. I use VSCode // Marlin

But it keeps giving me these problems:

Warning! Ignore unknown configuration option monitor_flags in section [env]
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead

Does anyone know how to solve this problem?

@atmassie476
Copy link

I feel your Pain Im having the same problem this is so over my head. I have a hard time trying to edit and compile firmware for my printers but when you start talk about digging around in VS code to fix it my eyes glaze over and I fall into a mild coma lol.

@LeonaK
Copy link

LeonaK commented Jan 31, 2023

This is NOT repaired. I have been trying to compile files that were compiling perfectly well for months. Now, NOthing compiles. I have reloaded 5.2.5,, no help. I updated to the newest version, no help. This is just awful. I imagine 3d printers all over the country stalled because of YOUR problem.
I understand that mistakes can be made, but to just go on for months, pretending that the problem is solved is shameful.

  • Executing task in folder G:: C:\Users\klajd.platformio\penv\Scripts\platformio.exe run --target clean

*******************************************************************************************************************************************************Obsolete PIO Core v6.1.6 is used (previous was 6.1.7a1)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/en/latest/core/installation/troubleshooting.html
*******************************************************************************************************************************************************Warning! Ignore unknown configuration option monitor_flags in section [env]
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:DUE] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filter
instead
Warning! src_build_flags configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_build_flags configuration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please use build_src_flags instead
Warning! src_filter configuration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy31] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy36] is deprecated and will be removed in the next release! Please use build_src_filter instead
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_filter instead
Processing BIGTREE_SKR_2_F429 (board: marlin_STM32F429VGT6; platform: ststm32@~12.1; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
PermissionError: [WinError 5] Access is denied: 'C:\Users\klajd\.platformio\packages\framework-arduinoststm32\variants\MARLIN_F4x7Vx\hal_conf_extra.h':
File "C:\Users\klajd.platformio\penv\lib\site-packages\platformio\builder\main.py", line 181:
env.SConscript(item, exports="env")
File "C:\Users\klajd.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\klajd.platformio\packages\tool-scons\scons-local-4.4.0\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "G:\buildroot\share\PlatformIO\scripts\generic_create_variant.py", line 48:
shutil.rmtree(variant_dir)
File "C:\Users\klajd.platformio\python3\lib\shutil.py", line 749:
return _rmtree_unsafe(path, onerror)
File "C:\Users\klajd.platformio\python3\lib\shutil.py", line 627:
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Users\klajd.platformio\python3\lib\shutil.py", line 625:
os.unlink(fullname)
============================================================= [FAILED] Took 3.62 seconds =============================================================

Environment Status Duration


BIGTREE_SKR_2_F429 FAILED 00:00:03.618
======================================================== 1 failed, 0 succeeded in 00:00:03.618 ========================================================

  • The terminal process "C:\Users\klajd.platformio\penv\Scripts\platformio.exe 'run', '--target', 'clean'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.
    it.

@Mifftup
Copy link

Mifftup commented Mar 9, 2023

I am also experiencing this issue today.
I have tried to downgrade PIO Core to 5.2.5 but then when I try to build it says 5.2.5 is deprecated.

Is there a new solution or fix that works?

@LeonaK
Copy link

LeonaK commented Mar 9, 2023 via email

@ivankravets
Copy link
Member

  1. Be sure that you use the latest Marlin Firmware
  2. Remove %USERHOME%/.platformio folder
  3. Restart VSCode.

@KyleCurrier
Copy link

KyleCurrier commented Jun 11, 2023

Reinstalll Platform IO does not fix it. Still fails on Marlin build with most recent updates. Everything worked fine before. I have not touched it. I needed to change a calibration value which is a very simple thing. Build, and now it fails. SO I go back, surely its not because I changed a value, thats ridiculous I revert to what I KNOW worked before. Failed again.... Somebody broke something and none of the stuff you're suggesting is fixing it. I should have blocked VSC auto updating services, I know better... It appears this has been going on about a year now (just after I compiled my last successful build of Marlin) and its still not resolved. Whats going on?

Error as follows....

"Converting Marlin.ino
cc1plus.exe: fatal error: opening output file C:\Users\DevWolf\Desktop\DevWolfs Creality 4.2.7 board- firmware v213\Firmware\Marlin\Marlin.ino.cpp:
compilation terminated."

SO I check, yes that file doesnt exist... Very strange name, .ino.cpp? SO I make Marlin.ino.cpp myself (just a dummy file, a renamed Marlin.ino file). It still says "doesnt exist"... Yes it does exist, because I just made it exist. SO maybe permissions right? I run in admin. Same problem.....

Someone requested a build that triggers it - here you go - >
Remember we use PlatformIO, Auto Build Marlin is not being used.
https://drive.google.com/file/d/1MBF3o6kC8c3zapGSTebxAVnwxvn82gWQ/view?usp=sharing

Full console log from failed build below >

Executing task: C:\Users\DevWolf.platformio\penv\Scripts\platformio.exe run

Warning! Ignore unknown configuration option monitor_flags in section [env]
Warning! src_filter configuration option in section [env:include_tree] is deprecated and will be removed in the next release! Please use build_s Warning! src_filterconfiguration option in section [env:DUE] is deprecated and will be removed in the next release! Please usebuild_src_filter
Warning! src_filter configuration option in section [env:esp32] is deprecated and will be removed in the next release! Please use build_src_filt Warning! src_build_flagsconfiguration option in section [env:linux_native] is deprecated and will be removed in the next release! Please usebu
Warning! src_filter configuration option in section [env:linux_native] is deprecated and will be removed in the next release! Please use build_s Warning! src_build_flagsconfiguration option in section [env:simulator_windows] is deprecated and will be removed in the next release! Please us Warning!src_filterconfiguration option in section [env:SAMD51_grandcentral_m4] is deprecated and will be removed in the next release! Please us Warning!src_filterconfiguration option in section [env:malyan_M300] is deprecated and will be removed in the next release! Please usebuild_sr
Warning! src_filter configuration option in section [env:STM32F103CB_malyan] is deprecated and will be removed in the next release! Please use b Warning! src_filterconfiguration option in section [env:teensy31] is deprecated and will be removed in the next release! Please usebuild_src_f
Warning! src_filter configuration option in section [env:teensy35] is deprecated and will be removed in the next release! Please use build_src_f Warning! src_filterconfiguration option in section [env:teensy36] is deprecated and will be removed in the next release! Please usebuild_src_f
Warning! src_filter configuration option in section [env:teensy41] is deprecated and will be removed in the next release! Please use build_src_f Processing STM32F103RCT6_creality (platform: ststm32@~12.1; board: genericSTM32F103RC; framework: arduino) ---------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose` option

warning: Calling missing SConscript without error is deprecated.
Transition by adding must_exist=False to SConscript calls.
Missing SConscript 'buildroot\share\PlatformIO\scripts\common-dependencies.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in

warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\common-cxxflags.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in

warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\preflight-checks.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in

warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\stm32_serialbuffer.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in

warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\generic_create_variant.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in

warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\random-bin.py'
File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 168, in
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103RC.html
PLATFORM: ST STM32 (12.1.1) > STM32F103RC (48k RAM. 256k Flash)
HARDWARE: STM32F103RCT6 72MHz, 48KB RAM, 256KB Flash
DEBUG: Current (jlink) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:

  • framework-arduinoststm32 @ 4.10900.200819 (1.9.0)
  • framework-cmsis @ 2.50501.200527 (5.5.1)
  • toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
    Converting Marlin.ino
    cc1plus.exe: fatal error: opening output file C:\Users\DevWolf\Desktop\DevWolfs Creality 4.2.7 board- firmware v213\Firmware\Marlin\Marlin.ino.cpp:
    compilation terminated.
    *** Error 1
    AssertionError: :
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\main.py", line 174:
    env.SConscript("$BUILD_SCRIPT")
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Script\SConscript.py", line 285:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "C:\Users\DevWolf.platformio\platforms\ststm32\builder\main.py", line 120:
    target_elf = env.BuildProgram()
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
    return self.method(*nargs, **kwargs)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 60:
    env.ProcessProgramDeps()
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
    return self.method(*nargs, **kwargs)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 120:
    env.BuildFrameworks(env.get("PIOFRAMEWORK"))
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
    return self.method(*nargs, **kwargs)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\piobuild.py", line 328:
    env.ConvertInoToCpp()
    File "C:\Users\DevWolf.platformio\packages\tool-scons\scons-local-4.5.2\SCons\Util\envs.py", line 242:
    return self.method(*nargs, **kwargs)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\pioino.py", line 237:
    out_file = c.convert(ino_nodes)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\pioino.py", line 85:
    return self.process(contents)
    File "C:\Users\DevWolf.platformio\penv\lib\site-packages\platformio\builder\tools\pioino.py", line 106:
    assert self._gcc_preprocess(contents, out_file)
    ===================================================================================== [FAILED] Took 0.69 seconds ==================================
    Environment Status Duration

STM32F103RCT6_creality FAILED 00:00:00.688
=============================================================================== 1 failed, 0 succeeded in 00:00:00.688 =============================

  • The terminal process "C:\Users\DevWolf.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.
  • Terminal will be reused by tasks, press any key to close it.

@franmuzi1
Copy link

Still havingf the same issue, i have to use an old version of marlin because of the bug of the new ones for my printer, is there any solution?

@JPU571
Copy link

JPU571 commented Jul 20, 2023

I updated the platformio.ini file and replaced all instances of ' src_filter ' with 'build_src_filter' AND replaced 'src_build_flags' with 'build_src_flags' and resolved the warnings. Not able to compile yet, but no errors

@thinkyhead
Copy link
Contributor

This issue can be closed. It's purely a Marlin issue whether the platformio.ini and other .ini files are prepared for PlatformIO 6 and up. See the Marlin Releases page for legacy versions of Marlin patched for PlatformIO 6 and up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug config platformio.ini
Projects
None yet
Development

No branches or pull requests