yath / ghidra-xtensa

Tensilica Xtensa processor module for Ghidra
MIT License
102 stars 34 forks source link

Errors building against 9.1.2 on Linux #10

Open cnlohr opened 1 year ago

cnlohr commented 1 year ago

It's not immediately clear what versions are supported on Linux.

When building against 9.1.2, I get this:

/home/cnlohr/Documents/ghidra_9.1.2_PUBLIC/support/sleigh -x -u -l -n -t -e -f data/languages/xtensa.slaspec data/languages/xtensa.sla
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "ghidra.GhidraClassLoader"). To use archived non-system classes, this property must be not be set
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
INFO  Using log config file: jar:file:/home/cnlohr/Documents/ghidra_9.1.2_PUBLIC/Ghidra/Framework/Generic/lib/Generic.jar!/generic.log4j.xml (LoggingInitialization)  
INFO  Using log file: /home/cnlohr/.ghidra/.ghidra_9.1.2_PUBLIC/application.log (LoggingInitialization)  
WARN  NOP detected at xtensaInstructions.sinc:848 (SleighCompile)  
WARN  NOP detected at xtensaInstructions.sinc:851 (SleighCompile)  
WARN  2 NOP constructors found (SleighCompile)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Truncation(:)" in constructor from xtensaInstructions.sinc starting at line 860 (ConsistencyChecker)  
ERROR Unnecessary "Zero extension(zext)" in constructor from xtensaInstructions.sinc starting at line 1035 (ConsistencyChecker)  
ERROR Unnecessary "Zero extension(zext)" in constructor from xtensaInstructions.sinc starting at line 1308 (ConsistencyChecker)  
WARN  xtensa.sinc:239: Unreferenced table: u5_4.7_20 (SleighCompile)  
mkdir -p data/manuals
perl mkindex.pl data/languages/xtensa.slaspec data/languages/xtensa.sinc data/languages/xtensaTodo.sinc data/languages/xtensaInstructions.sinc > data/manuals/xtensa.idx
Constructor for opcode const.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 468.
Constructor for opcode div0.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 474.
Constructor for opcode sqrt0.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 475.
Constructor for opcode nexp01.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 476.
Constructor for opcode mksadj.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 477.
Constructor for opcode mkdadj.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 478.
Constructor for opcode addexp.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 479.
Constructor for opcode addexpm.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 480.
Constructor for opcode maddn.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 481.
Constructor for opcode divn.s is preceded by comment for mula.aa.* at mkindex.pl line 18, <> line 482.

Is this expected?