Build TeXmacs use MXE on macOS (Failed)

Download MXE

The same as I posted in Build TeXmacs use MXE on UOS (Failed)

Build TeXmacs dependencies in MXE

C/C++ compilers

Requirements

Build

make cc

Qt

make qt

Failed when make expat, see https://github.com/mxe/mxe/issues/2602

#!/bin/bash

MXE_PATH=/usr/local/opt/grep/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/opt/make/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/opt/coreutils/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/opt/gnu-sed/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/opt/gnu-which/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/opt/findutils/libexec/gnubin
MXE_PATH=$MXE_PATH:/usr/local/Cellar/ruby@2.6/2.6.6_1/bin
MXE_PATH=$MXE_PATH:$HOME/miniconda3/bin
MXE_PATH=$MXE_PATH:/usr/local/opt/unzip/bin
MXE_PATH=$MXE_PATH:/usr/local/opt/bzip2/bin
MXE_PATH=$MXE_PATH:/usr/local/opt/gnu-tar/libexec/gnubin
MXE_PATH=$MXE_PATH:/Library/Developer/CommandLineTools/usr/bin/
MXE_PATH=$MXE_PATH:/usr/local/Cellar/awk/20180827/bin
MXE_PATH=$MXE_PATH:/usr/local/Cellar/gzip/1.10/bin
export PATH=$MXE_PATH:/usr/local/bin:/bin

Tried to use a cleaner PATH, but still failed:

/Users/rendong/github/mxe/mxe/tmp-gcc-i686-w64-mingw32.static/gcc-5.5.0/libcpp/lex.c:1505:3: error: must use 'enum' tag to refer to type 'raw_str_phase'
  raw_str_phase phase = RAW_STR_PREFIX;
  ^
  enum
2 warnings and 1 error generated.

From https://github.com/mxe/mxe/blob/master/.travis.yml

The CI is using Ubuntu Trusty (2021/01/10), I suggest that you should use the same environment to complete a build. For example, using docker would be a nice solution.