macOS Big Sur Problems
General Issues
First of all, please read Migration.
Updating MacPorts Base
MacPorts must be re-installed in a version configured for macOS 11 Big Sur.
Ensure you have Xcode 12.2 or greater installed and selected (e.g. sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
), and that you have the command line tools installed (xcode-select --install
). You also have to agree to the license by running sudo xcodebuild -license
.
There have been reports that the -license
option might not be sufficient alone, and following command might be required to agree to the license: sudo xcodebuild -runFirstLaunch
Install macOS SDK 11 manually in case of problems
Some users who upgraded from earlier versions of macOS reported, that xcode-select --install
didn't gave proper results (didn't install neither Xcode, nor the SDK required) and first the installation of Xcode from AppStore and then the installation of Command-line tools for Xcode 12.2
was required from Apple Developer site, as described here: https://www.macports.org/install.php .
Symptoms that your system requires manual installation: console message about missing SDK (Warning: The macOS 11.x SDK does not appear to be installed. Ports may not build correctly. Warning: You can install it as part of the Xcode Command Line Tools package by running
xcode-select --install'.`) or a message about C compiler being unable to create executables in build logs.
Rosetta 2 and build_arch
MacPorts defaults to building for the architecture that it is running as. If you have a universal MacPorts installation on an Apple Silicon Mac, and you run it from a terminal emulator that is not a native arm64 binary, MacPorts will end up being run as x86_64, and will build ports accordingly, which is often unexpected. This can be corrected by explicitly setting build_arch arm64
in macports.conf, or by using a native terminal emulator.
Rebuilding from source
Some port problems can be worked around by instructing MacPorts to build the port on your machine from source, rather than using the prebuilt version. For example, this might be the case if the version of the macOS SDK used on our build machine is different from the one on your machine. Instead of running sudo port install
, try running sudo port -s install
. If that fixes the problem, please report it to us so that it can be fixed properly.
Tickets for Broken Ports
- #57174
- cotvnc wont compile
- #58480
- chasen-base @2.3.3: clang: error: unknown argument: '-syslibroot'
- #60988
- php73-apache2handler @7.3.16_1: error: too few arguments to function call, expected 3, have 2
- #61231
- molden: error: implicit declaration of function
- #61356
- w3m, w3m-devel: error: redefinition of 'sys_errlist' with a different type: 'char **' vs 'const char *const []'
- #61383
- xemacs @21.4.22: *** PANIC *** Configure tests are not working - compiler is broken.
- #61422
- stack @2.5.1_0 build fails on Big Sur 11.1 Beta / Xcode 12.3 Beta
- #61472
- "./restore_ports.tcl myports.txt" fails on Big Sur without giving a single hint (what the problem might be, where I could look up details, ...)
- #61486
- fluxbox @1.3.7_1 does not compile on macOS Big Sur, Version 11.0.1, because "src/FbTk/FbTime.cc:64:10: error: redefinition of '_mono'"
- #61526
- libzzip @0.13.71 can be built with Python 3
- #61529
- moria @5.5.2_5 fails to build on Big Sur
- #61530
- dblatex @0.3.11_1 can be built with Python 3
- #61545
- python38 +universal fails to build on Big Sur (Apple Silicon Mac)
- #61556
- Error: Failed to build tf: command execution failed
- #61568
- pinentry-mac @0.9.4 has still problems to build on Big Sur
- #61570
- Ifeffit: Build error on MacPorts 2.6.4 on Big Sur
- #61583
- py38-graph-tool @2.33_0 +openmp Build Failure
- #61588
- p5.28-wx: Build error on MacPorts 2.6.4 on Big Sur
- #61590
- alpine @2.23: error: implicit declaration of function 'time' is invalid in C99
- #61598
- nut @2.7.4: Undefined symbols
- #61601
- p5-crypt-gcrypt @1.26: Can't link/include C library 'gcrypt', aborting.
- #61602
- p5-crypt-des @2.07: error: implicit declaration of function 'perl_des_expand_key' is invalid in C99
- #61604
- p5-authen-smb @0.91: error: implicit declaration of function 'SMB_Init' is invalid in C99
- #61605
- p5-digest-nilsimsa @0.06: error: implicit declaration of function 'clear' is invalid in C99
- #61607
- p5-html-strip @2.10: error: implicit declaration of function 'utf8_char_width' is invalid in C99
- #61610
- p5-inline-python @0.5.6: error: implicit declaration of function 'initperl' is invalid in C99
- #61611
- p5-ipe 0.3.1: error: implicit declaration of function 'train_bntree' is invalid in C99
- #61614
- p5-math-longdouble @0.22: error: implicitly declaring library function 'finite'
- #61615
- p5-net-nfdump @1.25: error: implicit declaration of function 'ff2_lex' is invalid in C99
- #61616
- p5-net-rawip @0.25: Could not load the pcap library
- #61617
- p5-sdl @2.548: error: implicit declaration of function '_calc_offset' is invalid in C99
- #61618
- p5-string-ediff @0.09: error: implicit declaration of function 'ediff' is invalid in C99
- #61619
- p5-term-gnuplot @0.903.809.60: error: implicit declaration of function 'test_term' is invalid in C99
- #61622
- p5-www-curl @4.17: error: #endif without #if
- #61631
- torsocks: error: implicit declaration of gethostbyaddr_r is invalid in C99
- #61692
- gromacs: clang: error: invalid version number in '-mmacosx-version-min=11.0'
- #61710
- gtk2-murrine @0.98.2: error: implicit declaration of function 'murrine_rc_style_register_types' is invalid in C99
- #61720
- gwyddion: Undefined symbols for architecture x86_64
- #61744
- bacula @9.4.4 +console_bat : does not build on macOS 11.0.1 (bigsur)
- #61765
- gwenhywfar4 @4.20.2 does not build on Big Sur
- #61800
- graphviz-gui @2.40.1_2: error: could not write entitlements file
- #61802
- dfu-programmer @0.7.2: error: implicitly declaring library function 'malloc' with type 'void *(unsigned long)'
- #61823
- py38-reportlab 3.5.46_0: missing #include <string.h>
- #61838
- geda-gaf linker error
- #61842
- opendx @4.4.4_10: y.tab.c:1107:16: error: implicit declaration of function '_dxfcclex' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
- #61863
- geos @3.9.0: Configuration logfiles contain indications of -Wimplicit-function-declaration
- #61877
- clisp @2.49.92: configure: error: C compiler cannot create executables
- #61883
- libgcc7 @7.5.0: build failure on macOS 11
- #61958
- Build of python38 @3.8.7 fails on intel Big Sur, macOS 11.1, somehow…
- #61968
- tuntaposx @20150118_0: error: : 'ifnet_attach_protocol' is deprecated: first deprecated in macOS 10.15.4 - Network Kernel Extension KPI is deprecated
- #61972
- clang-8.0:build fails on BigSur: error: invalid application of 'sizeof' to an incomplete type 'struct stat64'
- #61973
- Pallet @1.1_1: Failed to open log store at /Users/macports/Library/Developer/Xcode/DerivedData/Pallet-hhxzvjfjvrmndgcreaswdfqwvhbd/Logs/Build
- #62013
- gtime +universal: error: redefinition of '_OSSwapInt64'
- #62027
- qt5-qtwebkit fails to build on Big Sur 11.1 with Apple silicon
- #62053
- Successfully build 'Frescobaldi', but failed to run it on Big Sur
- #62070
- mpif90-openmpi-gcc10 fails to link FORTRAN program
- #62114
- postgis3 @3.0.3: configure failure: could not find GDAL headers
- #62124
- gcc9 @9.3.0_4 gfortran fails with "ld: library not found for -lSystem" in Big Sur
- #62176
- wxLua @2.8.12.3 crashes
- #62200
- py39-pyglet on new mac M1: import pyglet.window fails
- #62216
- db53: error: Support for FCNTL mutexes was removed in BDB 4.8.
- #62219
- netperf @2.7.0: error: implicit declaration of function 'read' is invalid in C99
- #62236
- plantuml @1.2020.11: Unsupported major.minor version 52.0
- #62247
- anacron @2.3_3: error: implicitly declaring library function 'abort'
- #62254
- MPlayer @1.3.0_7: build error: 'QuickTime/QuickTime.h' file not found
- #62304
- sudosh @1.6.3: error: implicit declaration of function 'gettimeofday' is invalid in C99
- #62307
- gnuregex @0.12_2: error: implicit declaration of function 'free' is invalid in C99
- #62388
- calc @2.12.8.2_0: default install fails to build under Big Sur
- #62419
- elftoolchain @0.7.1: error: implicit declaration of function 'htole32' is invalid in C99
- #62443
- Cannot 'make check' in mesa @19.0.8 on Big Sur, macOS 11.2.2
- #62445
- hugin-app @2019.2.0_3 fails to build due to implicit declaration
- #62471
- kde4-kile @2.1.3_6: "replace" command not working
- #62520
- avrdude @6.3: won't build on 11.2.3
- #62537
- blueutil @2.8.0: Undefined symbols for architecture x86_64
- #62539
- git-2.31.0_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_30 fails to build credential_osxkeychain
- #62567
- scalapack @2.1.0 build failure due to implicit declaration
- #62569
- ossp-uuid @1.6.2: fatal error: 'sys/types.h' file not found
- #62594
- yydecode @0.2.10: error: implicitly declaring library function 'strcmp'
- #62615
- rpm: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99
- #62626
- R @4.0.5 compile failure due to implicit declarations
- #62631
- fuzz @0.6_1: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
- #62632
- grok @1.20110708.1_2 : implicit declaration of function 'yylex' is invalid in C99
- #62633
- mcrypt @2.6.8_1 : implicit declaration of function 'mcrypt_license' is invalid in C99
- #62634
- mmencode @2.7_0 : implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))'
- #62636
- tightvnc @1.3.10_2 : implicit declaration of function 'vncDecryptPasswdFromFile2' is invalid in C99
- #62637
- creduce @2.10.0 : depends on clang-8.0 which doesn't work on Big Sur
- #62659
- pspp @1.4.1, pspp-devel @1.5.3_1: undefined symbols
- #62701
- python3_select cannot select python38-apple on macOS BigSur
- #62719
- arm-none-eabi-gcc fails to build on M1
- #61445
- Java version not detected on macOS Big Sur 11.0.1
- #61471
- virt-manager fails to load shared library on Big Sur
- #61546
- avr-gdb fails to build on macOS 11 Big Sur
- #61612
- xorg-libx11 @1.7.0 variant +docs does not build on El Capitan, OK on Big Sur (Java problem?)
- #61755
- auto-multiple choice fails to build on Big Sur
- #61789
- qt4-mac @4.8.7_10 (aqua): Fails to build on Big Sur w/ arm64 architecture
- #61896
- emacs{-app,}-devel +nativecomp: runtime native compilation fails on Big Sur 11.1
- #61933
- wxmaxima crashes on macOS Big Sur v11k - conflicting wxWidget libs
- #61996
- qemu hvf support on Big Sur requires signing security entitlement
- #62018
- fltk-config --cxxflags returns invalid value on macOS Big Sur 11.1
- #62123
- bind9 @9.16.11 compile errors on Big Sur and El Capitan
- #62131
- py38-tensorflow does not build on big sur
- #62184
- gcc-devel on big sur Apple Silicon w/ xcode 12.4 fails to assemble pc-relative literal loads
- #62226
- osxfuse fails to build on Big Sur: Assertion 'common_is_variable DEFAULT_SDK_11_1_ARCHITECURES' failed
- #62234
- cloog fails to build on MacOS Big Sur
- #62259
- ninja @1.10.2_0+universal build issues on Big Sur Intel
- #62312
- Big Sur 11.2 - vtk does not configure
- #62376
- texlive-bin tries to install stuff in system space even when macports is confihgured to put everything in home dir. [universal, Big Sur]
- #62406
- labgtk2 Big Sur
- #62473
- Build htcondor failed on macOS Big Sur 11.2.3
- #62503
- macOS 11.0.1 Big Sur failing to build GNU Radio
- #62547
- py27-pygtksourceview fail to build on macOS 11.2.3 Big Sur