[MacPorts] #74030: nqc: build fails on Apple Silicon (arm64) with two source bugs

MacPorts noreply at macports.org
Sun May 24 10:52:34 UTC 2026


#74030: nqc: build fails on Apple Silicon (arm64) with two source bugs
----------------------+--------------------
 Reporter:  nerak100  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:  npc
----------------------+--------------------
 nqc/nqc.cpp line 1088 — missing fprintf(STDERR, at the start of the line
 in PrintVersion()
 compiler/lexer.cpp — added extern "C" { #include <stdio.h> #include
 <unistd.h> } to fix isatty linker error on arm64


 macOS arm64 (Apple Silicon), darwin 25

 Workaround:

 sudo port -s install nqc configure.compiler=macports-gcc-13 after manually
 patching both files

 ALSO

 the pre-built binary archive nqc-3.1.r6_1.darwin_25.arm64.tbz2 is broken
 so MacPorts keeps trying and failing to use it even when you specify GCC,
 which is why the -s flag is needed.

-- 
Ticket URL: <https://trac.macports.org/ticket/74030>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list