Rate This Document
Findability
Accuracy
Completeness
Readability

"unrecognized command line option '-mcx16'" Displayed When Compiling ATS

Symptom

When the ATS 8.0.5 make command is executed using GCC 8.4.1, the error message "unrecognized command line option '-mcx16'" is displayed.

Key Process and Cause Analysis

GCC 8.4.1 supports the -mcx16 compilation option on x86 but not on Arm. Therefore, the -mcx16 compilation option needs to be removed from GCC 8.4.1.

The following figure shows the comparison between the Makefile files generated by GCC 8.4.0 and GCC 8.4.1.

Conclusion and Solution

  1. Go to the trafficserver-8.0.5 source code directory.
    cd /home/trafficserver-8.0.5
  2. Remove the -mcx16 option from all Makefile files:
    sed -i "s/\ -mcx16//g" `find -name Makefile`
  3. Perform compilation and installation.
    1
    2
    make clean
    make -j60