I have been building LEDE targets for a long time under macOS 10.11 and 10.12.
Now I am trying to get the build (lede 17.01.4) work again under 10.13, but am failing at very basic levels, that is already while building the host tools.
What happens is that host binaries are built that immediately crash with "illegal instruction". when called (m4, bison, see below).
I know that the compiler has changed with XCode 9, and I've seen that there were XCode 9 related fixes on October 5th by Felix Fietkau, but these seem to apply to XCode 9 on 10.12 only, and not 10.13. But this means that the XCode 9 compiler as such can't be the problem by itself, but something in the 10.13 environment.
Unfortunately, my understanding of the build system and autotools is not firm enough yet to have the slightest clue how it is possible at all that such defective binaries are created without any warning or error while building, and where and how to start looking for a solution.
This is on a completely fresh LEDE 17.01.4 checkout into a empty directory:
make (world) proceeds through building m4 without error, but when a subsequent package uses that
m4, it fails, because then the call to
I then symlinked the system's working /usr/bin/m4 as a q&d hack to get past that point.
But the same happens with
bison, which also builds a binary, but then fails because it uses its own binary to put the version into docs:
src/bison --version >doc/bison.help.tmp bash: line 1: 75006 Illegal instruction: 4 src/bison --version > doc/bison.help.tmp
Note that many other host tools build and run fine (e.g.
There must be something in 10.13 that causes autotools to create broken config/build options in some cases.