Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By jcmvbkbc
#3726
alonewolfx2 wrote:i mean esp-open-sdk. here is link
https://github.com/pfalcon/esp-open-sdk

Ok, that builds well on my side.
So I'd suggest checking if the following commands work:
Code: Select allecho 'rsr.icount a2' | /home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-as -o /dev/null
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -c /home/suskun/esp-open-sdk/lx106-hal/src/debug_hndlr.S
User avatar
By alonewolfx2
#3730 too much error :)

Code: Select allsuskun@suskun-VirtualBox:~/esp-open-sdk$  /home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -c /home/suskun/esp-open-sdk/lx106-hal/src/debug_hndlr.S/home/suskun/esp-open-sdk/lx106-hal/src/debug_hndlr.S:27:28: fatal error: xtensa/coreasm.h: No such file or directory
 #include <xtensa/coreasm.h>
                            ^
compilation terminated.

or
Code: Select all unknown opcode or format name 'k'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'n'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'q'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 't'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'w'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'z'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: couldn't find a valid instruction format
    ops were:  j; j;
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x12
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character is `2'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character is `3'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'i'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'r'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 'r'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 's'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name 's'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x7f
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x2
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x3
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x4
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x5
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x6
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2154: Error: junk at end of line, first unrecognized character valued 0x8
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0xb
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x10
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x11
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x12
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x13
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x14
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x15
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x18
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x19
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1a
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1b
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1c
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1d
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1e
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1f
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `"'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `%'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `&'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `/'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `5'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `6'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `7'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `9'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `:'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `<'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'd'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'g'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'h'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'i'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is ``'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'a'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'b'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name 'c'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character is `!'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x1
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x2
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x5
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2155: Error: junk at end of line, first unrecognized character valued 0x6
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `!'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0xb
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `!'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `!'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0xe
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x10
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x11
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x12
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x13
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x15
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x16
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x19
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x1a
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x1b
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x1c
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character valued 0x1d
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `!'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `"'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `&'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `('
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `,'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `-'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown pseudo-op: `.'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `/'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `0'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `1'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `3'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `4'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `9'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'e'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'f'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'g'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'h'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'i'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 's'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 't'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'u'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'v'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'w'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'x'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'y'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'z'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `['
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `\'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `]'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is `^'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name ''
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: syntax error
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: junk at end of line, first unrecognized character is ``'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'a'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'b'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'c'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'd'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'e'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'f'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'g'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'h'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Error: unknown opcode or format name 'i'
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Warning: Unary operator ! ignored because bad operand follows
/home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc:2156: Internal error!
Assertion failure in expression_maybe_register at /home/suskun/esp-open-sdk/crosstool-NG/.build/src/binutils-2.24/gas/config/tc-xtensa.c line 1856.
Please report this bug.
User avatar
By jcmvbkbc
#3732
alonewolfx2 wrote:too much error :)

Code: Select allsuskun@suskun-VirtualBox:~/esp-open-sdk$  /home/suskun/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc -c /home/suskun/esp-open-sdk/lx106-hal/src/debug_hndlr.S/home/suskun/esp-open-sdk/lx106-hal/src/debug_hndlr.S:27:28: fatal error: xtensa/coreasm.h: No such file or directory
 #include <xtensa/coreasm.h>
                            ^
compilation terminated.


That's the second line. It fails because of missing header means the toolchain is not standalone (according to description in the esp-open-sdk readme).
And what about the first line? If it works then the assembler itself is fine.
I'd recommend cleaning it all and rebuilding from scratch.
User avatar
By alonewolfx2
#3734 firstline works without any output.
did you mean "make clean" and "make STANDALONE=y" ?