-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Comments
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. |
Could someone provide a simple project to reproduce this issue? The |
@ivankravets Same on Mac when compiling Marlin Firmware |
@thinkyhead sorry that disturb you. Did we break something in PlatformIO Core 6.0? It has been released a few hours ago. |
@ivankravets I can confirm renaming occurances |
@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. |
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:
It also might require removing the following folders:
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. Any ETA on when this might be fixed? Edit: |
I've had no end of troubles today trying to get projects to build with PIO6. I'll try downgrading with |
Yes, this work! |
Guys, sorry for the issue. Could we ask you to re-test the latest development version?
If it works for you, we will release PIO Core 6.0.1. Thanks. |
@ivankravets not for me (Mac) still giving collect2: error: ld returned 1 exit status |
@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:
Other than that, I'm quite happy with the switch to VSCode. |
@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. |
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. |
After 3 days of trying I still can not compile. |
@adquarters please share the full output from the building process. |
Warning!
|
I have tried with Arduino and VS Code |
Have you read this thread from the beginning? |
Other languages can generate such an error if the interface references within libs has changed in some unaccomodatable way. |
Yes but I am definitely not a coder |
We still like you anyway :-) |
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? |
doing it now |
SUCCESS!!!!! |
I still have lots of warnings but I should ignore them correct? |
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. Sal |
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 |
@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:
Does anyone know how to solve this problem? |
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. |
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.
*******************************************************************************************************************************************************Obsolete PIO Core v6.1.6 is used (previous was 6.1.7a1) Environment Status Duration BIGTREE_SKR_2_F429 FAILED 00:00:03.618
|
I am also experiencing this issue today. Is there a new solution or fix that works? |
I assume you are using VSCode? The problem is not Marlin or VSCode. It's PlatformIO. erase it and reinstall a new version. Be sure to get any references (Platformio, PIO...) in Users/Your User..
Then, you will have to reload and use the new Marlin2.0.
Sorry that Marlin won't help.
Thursday, March 9, 2023 at 05:10:33 AM EST, Mifftup ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
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 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 - > Full console log from failed build below > Executing task: C:\Users\DevWolf.platformio\penv\Scripts\platformio.exe run Warning! Ignore unknown configuration option warning: Calling missing SConscript without error is deprecated. warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\common-cxxflags.py' warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\preflight-checks.py' warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\stm32_serialbuffer.py' warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\generic_create_variant.py' warning: Ignoring missing SConscript 'buildroot\share\PlatformIO\scripts\random-bin.py'
STM32F103RCT6_creality FAILED 00:00:00.688
|
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? |
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 |
This issue can be closed. It's purely a Marlin issue whether the |
Solution
pio upgrade --dev
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
The text was updated successfully, but these errors were encountered: