glidernet / diy-tracker

Do-it-Yourself OGN Tracker software
GNU General Public License v3.0
27 stars 18 forks source link

make flash error in ESP32 DIY tracker #17

Open AviraMatti opened 5 years ago

AviraMatti commented 5 years ago

I have problem...what is this solution? I don't believe that "if" shold be wrong place in ldpc.ccp file...

Matti

error codes after make flash:

matti@matti-Latitude-E6420:~/esp/esp32-ogn-tracker$ make flash Toolchain path: /home/matti/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: esp32-2019r1 Compiler version: 8.2.0 Python requirements from /home/matti/esp/esp-idf/requirements.txt are satisfied.

App "app-template" version: 88b0918-dirty CXX build/main/ldpc.o /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint8_t, uint8_t, const uint32_t ()[5])': /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if(Count&1) ParByte|=Mask; Mask<<=1; ^~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(Count&1) ParByte|=Mask; Mask<<=1; ^~~~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint32_t, uint32_t, uint8_t, uint8_t, const uint32_t)': /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1; ^~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1; ^~~~ cc1plus: some warnings being treated as errors /home/matti/esp/esp-idf/make/component_wrapper.mk:289: recipe for target 'ldpc.o' failed make[1]: [ldpc.o] Error 1 /home/matti/esp/esp-idf/make/project.mk:582: recipe for target 'component-main-build' failed make: [component-main-build] Error 2

pjalocha commented 5 years ago

Must be a compiler which takes this as an error, my compiler would only make a warning.

On Thu, Jul 11, 2019 at 10:42 AM Matti T. Koskinen notifications@github.com wrote:

I have problem...what is this solution? I don't believe that "if" shold be wrong place in ldpc.ccp file...

Matti

error codes after make flash:

matti@matti-Latitude-E6420:~/esp/esp32-ogn-tracker$ make flash Toolchain path: /home/matti/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: esp32-2019r1 Compiler version: 8.2.0 Python requirements from /home/matti/esp/esp-idf/requirements.txt are satisfied.

App "app-template" version: 88b0918-dirty CXX build/main/ldpc.o /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint8_t, uint8_t, const uint32_t (

)[5])': /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if(Count&1) ParByte|=Mask; Mask<<=1; ^~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:671:32: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(Count&1) ParByte|=Mask; Mask<<=1; ^~~~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp: In function 'void LDPC_Encode(const uint32_t, uint32_t, uint8_t, uint8_t, const uint32_t)': /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1; ^~ /home/matti/esp/esp32-ogn-tracker/main/ldpc.cpp:692:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if(Count&1) Parity[ParIdx]|=Mask; Mask<<=1; ^~~~ cc1plus: some warnings being treated as errors /home/matti/esp/esp-idf/make/component_wrapper.mk:289: recipe for target 'ldpc.o' failed make[1]: [ldpc.o] Error 1 /home/matti/esp/esp-idf/make/project.mk:582: recipe for target 'component-main-build' failed make: [component-main-build] Error 2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/glidernet/diy-tracker/issues/17?email_source=notifications&email_token=ACEYA2SOY2VTP7AWJP52IVLP636BJA5CNFSM4IA5GP62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6SRH7Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ACEYA2SMDQMSUJGQBATVUW3P636BJANCNFSM4IA5GP6Q .

AviraMatti commented 5 years ago

Ok...is it CMAKE better ...Do you have a good alternative combiler to Linux ... i don't have much experience.

I have also ESP32 Heltec at same time connected to USB0 (ls /dev/tty* works correctly)

AviraMatti commented 5 years ago

I did check GNU Make (Makefile) to convert CMake (CMakeList.txt) what it needs... conversion isn't simple. My source files DIY Tracker includes Makefile...is it some equivalent compiler what use same Makefile?