Trying to compile CA Easytrieve for Linux

Document ID : KB000074970
Last Modified Date : 28/03/2018
Show Technical Document Details
Getting the following error when trying to compile: [
     ezt testezt.ezt -o testezt.out -L > testezt.compile.output.txt
    /usr/bin/ld: i386:x86-64 architecture of input file `testezt.o' is incompatible with i386 output 
How can I resolve this?
The following warning can occur when you link a CA Easytrieve Report Generator program in a 64-bit Linux for zSeries or Linux PC environment: 
      warning: xxxx architecture of input file `program.o' is incompatible with yyyy output 

If you receive this warning, you can add a switch to your EZTOPTS environment variable that forces the assembler to create a 32-bit .o file. 

For a Linux PC environment, add the following switch: 
-W a,--32
For a Linux for zSeries environment, add the following switch:
  -W a,-m31