I attempted to compile MiKTeX from source on macOS as the precompiled binary (miktex-22.1-darwin-x86_64.dmg) does not work for my setup. I followed the official build guide available at https://miktex.org/howto/build-mac. However, during the build process, the make command failed with the following error messages:
curl: (22) The requested URL returned error: 404
make[2]: *** [miktex-zzdb1-2.9.tar.lzma] Error 22
Expected Behavior:
The build process should complete successfully without errors, downloading all required dependencies.
Environment:
Operating System: macOS (15.1)
% sw_vers
ProductName: macOS
ProductVersion: 15.1
BuildVersion: 24B2082
% uname -a
Darwin guoqilindeMacBook-Pro.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:06:57 PDT 2024; root:xnu-11215.41.3~3/RELEASE_ARM64_T6041 arm64
% sysctl -n machdep.cpu.brand_string
Apple M4 Pro
CMake Version: 3.31.0
% cmake --version
cmake version 3.31.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
- Compiler: Apple clang version 16.0.0 (clang-1600.0.26.4)
```zsh
% cc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
MiKTeX Version: 24.4 (source code)
Installed Libraries and Paths
% brew config
HOMEBREW_VERSION: 4.4.6
ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
HEAD: cc0b5d6d05d1f3af5b2f53e9fbb1e7bfa0c332ab
Last commit: 28 hours ago
Core tap JSON: 18 Nov 14:52 UTC
Core cask tap JSON: 18 Nov 14:52 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_API_DOMAIN: https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles
HOMEBREW_BREW_GIT_REMOTE: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.Ag2kG6Sgfx/org.xquartz:0
HOMEBREW_MAKE_JOBS: 14
HOMEBREW_PIP_INDEX_URL: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 14-core 64-bit dunno
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: 16.1
Rosetta 2: false
% brew info curl
==> curl: stable 8.11.0 (bottled), HEAD [keg-only]
Get a file from an HTTP, HTTPS or FTP server
https://curl.se
Not installed
From: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git/Formula/c/curl.rb
License: curl
==> Dependencies
Build: pkgconf ✔
Required: brotli ✔, libnghttp2 ✔, libssh2 ✔, openssl@3 ✔, rtmpdump ✔, zstd ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
curl is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
==> Analytics
install: 86,935 (30 days), 266,996 (90 days), 1,020,457 (365 days)
install-on-request: 60,685 (30 days), 177,761 (90 days), 686,998 (365 days)
build-error: 52 (30 days)
% brew info cmake
Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake or specify the `--cask` flag. To silence this message, use the `--formula` flag.
==> cmake: stable 3.31.0 (bottled), HEAD
Cross-platform make
https://www.cmake.org/
Installed
/opt/homebrew/Cellar/cmake/3.31.0 (3,726 files, 56.6MB) *
Poured from bottle using the formulae.brew.sh API on 2024-11-18 at 20:06:17
From: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git/Formula/c/cmake.rb
License: BSD-3-Clause
==> Options
--HEAD
Install HEAD version
==> Caveats
To install the CMake documentation, run:
brew install cmake-docs
Description:
I attempted to compile MiKTeX from source on macOS as the precompiled binary (miktex-22.1-darwin-x86_64.dmg) does not work for my setup. I followed the official build guide available at https://miktex.org/howto/build-mac. However, during the build process, the make command failed with the following error messages:
Steps to Reproduce:
make_stderr.txt
.Observed Behavior:
The build process fails with the error:
Expected Behavior:
The build process should complete successfully without errors, downloading all required dependencies.
Environment:
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Emacs Lisp files have been installed to: /opt/homebrew/share/emacs/site-lisp/cmake ==> Analytics install: 119,954 (30 days), 372,635 (90 days), 1,593,550 (365 days) install-on-request: 89,854 (30 days), 277,601 (90 days), 1,232,395 (365 days) build-error: 880 (30 days)