Hello
Some time ago I created a thermostat in esphome, so far everything was ok, but for some time I can’t update it because it throws an error in the config:
Failed config
climate.thermostat: [source /config/esphome/esp32-ble-reciever-floor1.yaml:105]
default_target_temperature_low is no longer valid. Please switch to using a preset for an equivalent experience.
Equivalent configuration:
preset:
- name: Your new preset
default_target_temperature_low: 20.0.
platform: thermostat
name: Termostat Sypialnia
sensor: temperatura_sypialnia
default_target_temperature_low: 20 °C
min_heating_off_time: 300s
min_heating_run_time: 300s
min_idle_time: 300s
heat_action:
- switch.turn_on: relay_heater_bedroom
idle_action:
- switch.turn_off: relay_heater_bedroom
climate.thermostat: [source /config/esphome/esp32-ble-reciever-floor1.yaml:117]
I looked at the eshome website and according to the documentation nothing has changed
HasQT
(Has)
December 14, 2022, 2:04pm
2
This
default_target_temperature_low: 20
Looks like it should be this instead
default_preset: Home
preset:
- name: Home
default_target_temperature_low: 20 °C
default_target_temperature_high: 22 °C
1 Like
after fix code i have fatal error 9
INFO Reading configuration /config/esphome/esp32-ble-reciever-floor1.yaml...
WARNING GPIO15 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing esp32-ble-reciever-floor1 (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
| |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
Compiling /data/esp32-ble-reciever-floor1/.pioenvs/esp32-ble-reciever-floor1/src/main.cpp.o
Linking /data/esp32-ble-reciever-floor1/.pioenvs/esp32-ble-reciever-floor1/firmware.elf
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
*** [/data/esp32-ble-reciever-floor1/.pioenvs/esp32-ble-reciever-floor1/firmware.elf] Error 1
========================= [FAILED] Took 87.65 seconds =========================
HasQT
(Has)
December 14, 2022, 3:18pm
4
Google suggests ram issue on that error.
signal 9 [Killed] may mean that you exceeded the RAM available on the machine, and the kernel out-of-memory (OOM) killer killed the process. Whatever killed the ld process,
opened 04:40AM - 07 Jul 17 UTC
closed 05:59AM - 07 Jul 17 UTC
build failure
outdated
## What you were trying to do (and why)
I just trying to install `erlang` and `… elixir`(in this case `llvm`, dependency).
## What happend(include command output)
```bash
==> cmake -G Unix Makefiles /tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INST
==> make
Last 15 lines from /home/algorist/.cache/Homebrew/Logs/llvm/02.make:
cd /tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers && /home/linuxbrew/.linuxbrew/opt/gcc/bin/g++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/include -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -DNDEBUG -o CMakeFiles/clangStaticAnalyzerCheckers.dir/VLASizeChecker.cpp.o -c /tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
[ 72%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/clangStaticAnalyzerCheckers.dir/ValistChecker.cpp.o
cd /tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers && /home/linuxbrew/.linuxbrew/opt/gcc/bin/g++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/include -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -DNDEBUG -o CMakeFiles/clangStaticAnalyzerCheckers.dir/ValistChecker.cpp.o -c /tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
[ 72%] Building CXX object tools/clang/lib/StaticAnalyzer/Checkers/CMakeFiles/clangStaticAnalyzerCheckers.dir/VirtualCallChecker.cpp.o
cd /tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers && /home/linuxbrew/.linuxbrew/opt/gcc/bin/g++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/tools/clang/include -I/tmp/llvm-20170707-2909-229ymp/include -I/tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/include -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -DNDEBUG -o CMakeFiles/clangStaticAnalyzerCheckers.dir/VirtualCallChecker.cpp.o -c /tmp/llvm-20170707-2909-1mqja1w/llvm-4.0.1.src/tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
[ 72%] Linking CXX static library ../../../../../lib/libclangStaticAnalyzerCheckers.a
cd /tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers && /home/linuxbrew/.linuxbrew/Cellar/cmake/3.8.2/bin/cmake -P CMakeFiles/clangStaticAnalyzerCheckers.dir/cmake_clean_target.cmake
cd /tmp/llvm-20170707-2909-229ymp/tools/clang/lib/StaticAnalyzer/Checkers && /home/linuxbrew/.linuxbrew/Cellar/cmake/3.8.2/bin/cmake -E cmake_link_script CMakeFiles/clangStaticAnalyzerCheckers.dir/link.txt --verbose=1
/home/linuxbrew/.linuxbrew/bin/ar qc ../../../../../lib/libclangStaticAnalyzerCheckers.a CMakeFiles/clangStaticAnalyzerCheckers.dir/AllocationDiagnostics.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/AnalysisOrderChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/AnalyzerStatsChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ArrayBoundChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ArrayBoundCheckerV2.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/BasicObjCFoundationChecks.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/BlockInCriticalSectionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/BoolAssignmentChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/BuiltinFunctionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CStringChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CStringSyntaxChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CallAndMessageChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CastSizeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CastToStructChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckObjCDealloc.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckObjCInstMethSignature.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckSecuritySyntaxOnly.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckSizeofPointer.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CheckerDocumentation.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ChrootChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ClangCheckers.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CloneChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ConversionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/CXXSelfAssignmentChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DeadStoresChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DebugCheckers.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DereferenceChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DirectIvarAssignment.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DivZeroChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DynamicTypePropagation.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/DynamicTypeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ExprInspectionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/FixedAddressChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/GenericTaintChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/GTestChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/IdenticalExprChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/IteratorPastEndChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/IvarInvalidationChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/LLVMConventionsChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/LocalizationChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MacOSKeychainAPIChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MacOSXAPIChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MallocChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MallocOverflowSecurityChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MallocSizeofChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MPI-Checker/MPIBugReporter.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MPI-Checker/MPIChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/MPI-Checker/MPIFunctionClassifier.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NSAutoreleasePoolChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NSErrorChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NoReturnFunctionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NonNullParamChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NullabilityChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/NumberObjectConversionChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCAtSyncChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCContainersASTChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCContainersChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCMissingSuperCallChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCPropertyChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCSelfInitChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCSuperDeallocChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ObjCUnusedIVarsChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/PaddingChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/PointerArithChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/PointerSubChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/PthreadLockChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/RetainCountChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ReturnPointerRangeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ReturnUndefChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/SimpleStreamChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/StackAddrEscapeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/StdLibraryFunctionsChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/StreamChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/TaintTesterChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/TestAfterDivZeroChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/TraversalChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UndefBranchChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UndefCapturedBlockVarChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UndefResultChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UndefinedArraySubscriptChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UndefinedAssignmentChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UnixAPIChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/UnreachableCodeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/VforkChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/VLASizeChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/ValistChecker.cpp.o CMakeFiles/clangStaticAnalyzerCheckers.dir/VirtualCallChecker.cpp.o
/home/linuxbrew/.linuxbrew/bin/ranlib ../../../../../lib/libclangStaticAnalyzerCheckers.a
make[2]: Leaving directory '/tmp/llvm-20170707-2909-229ymp'
[ 72%] Built target clangStaticAnalyzerCheckers
make[1]: Leaving directory '/tmp/llvm-20170707-2909-229ymp'
Makefile:154: recipe for target 'all' failed
make: *** [all] Error 2
READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core, which support macOS only.
These open issues may also help:
llvm: strip executables/libraries/object files https://github.com/Linuxbrew/homebrew-core/pull/3163
llvm: add bottle 4.0.1 for Linuxbrew https://github.com/Linuxbrew/homebrew-core/pull/3144
ldc: undefined reference to llvm::cl::Option::setArgStr https://github.com/Linuxbrew/homebrew-core/issues/441
```
https://gist.github.com/anonymous/8712ed72f321c5947a9f498fd936b1a2
## What you expected to happen
Install without any issue.
(I think there's no problem few days ago, maybe llvm 4.0.0)
And I followed @sjackman 's instruction on #3113, and applied #1771 but it doesn't help.
Please help!
# Please always follow these steps:
- [x] Confirmed this is a problem with `brew install`ing one, specific formula and not every time you run `brew`? If it's a general `brew` problem please file this issue at https://github.com/Linuxbrew/brew/issues/new.
- [ ] Attempt to replicate the problem on macOS with Homebrew if possible. If you can replicate the problem on macOS with Homebrew, please report the issue to [Homebrew/core](https://github.com/Homebrew/homebrew-core). If you are unsure, please report the issue to Linuxbrew.
- [x] Ran `brew update` and retried your prior step?
- [x] Ran `brew doctor`, fixed all issues and retried your prior step?
- [ x Ran `brew gist-logs <formula>` (where `<formula>` is the name of the formula that failed) and included the output link?
- [ ] If `brew gist-logs` didn't work: ran `brew config` and `brew doctor` and included their output with your issue?
**Please note we will close your issue without comment if you delete or do not fill out the issue checklist and provide ALL the requested information.**
To help us debug your issue please explain:
- What you were trying to do (and why)
- What happened (include command output)
- What you expected to happen
- Step-by-step reproduction instructions (by running `brew install` commands)
It is memory exhaustion. The sampling interval for the memory measurement is just not small enough that it covers the exact point where the OOM killer kicks in.
ubuntu, gcc, ld