-
Notifications
You must be signed in to change notification settings - Fork 19
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
make flash error in ESP32 DIY tracker #17
Comments
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 ***@***.***> 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:
***@***.***:~/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
<#17?email_source=notifications&email_token=ACEYA2SOY2VTP7AWJP52IVLP636BJA5CNFSM4IA5GP62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G6SRH7Q>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACEYA2SMDQMSUJGQBATVUW3P636BJANCNFSM4IA5GP6Q>
.
|
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) |
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? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: