wiki:BigSurProblems

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'
#58883
dsniff @2.4: error: Berkeley DB with 1.85 compatibility not found
#59316
osxfuse @3.8.3: Assertion 'common_is_variable DEFAULT_SDK_10_15_ARCHITECURES' failed
#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
#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
#61570
ifeffit @1.2.13: error: implicit declaration of function 'ioctl' is invalid in C99
#61588
p5.28-wx: Build error on MacPorts 2.6.4 on Big Sur
#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
#61606
mozjs60: ERROR: virtualenv is not compatible with this system or executable
#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
#61631
torsocks: error: implicit declaration of gethostbyaddr_r is invalid in C99
#61696
transcode: error: implicit declaration of function 'audio_resample_close' is invalid in C99
#61710
gtk2-murrine @0.98.2: error: implicit declaration of function 'murrine_rc_style_register_types' is invalid in C99
#61744
bacula @9.4.4 +console_bat : does not build on macOS 11.4 (bigsur)
#61765
gwenhywfar4 @4.20.2 does not build on Big Sur
#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
#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
#62234
cloog: error: implicit declaration of function 'isl_set_copy_basic_set' is invalid in C99
#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
#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
#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
#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
#62804
emacs-devel @20210430: error: "Please include config.h first."
#62820
bmon build fails on clean bigsur
#62853
dash @0.5.11.3: error: variable has incomplete type 'struct stat64'
#62874
octave @6.2.0+accelerate+app+docs+gfortran+graphicsmagick+qt5+sound+sundials can't find libgfortran.5.dylib
#62889
mpv check version error: ValueError: invalid version number '11'
#62917
h4h5tools @2.2.3_10: error: implicit declaration of function 'close' is invalid in C99
#62919
pamtester @0.1.2: error: implicitly declaring library function 'sprintf' with type 'int (char *, const char *, ...)'
#62953
echoping @6.0.2_5+gnutls fails to build
#62967
oftpd @0.3.7_2 fails to build due to implicit declarations
#62998
gmt6: build failure on Apple Silicon
#63020
xephem @4.0.1: install fails with "ld: library not found for -lXp"
#63115
gcc11 is built for macOS 11.3 deployment target
#63144
cryptlib @3.4.5: error: use of undeclared identifier 'GPROF_COUNT'
#63221
cctools @949.0.1+llvm10: error: implicit declaration of function 'CLS_GETINFO' is invalid in C99
#63280
xfractint @20.04p14_0: build error: implicit declaration of function 'xpopup' is invalid in C99
#63332
scotty @3.0.0_9: error: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)'
#63374
xfig: Cannot install xfig for the arch 'arm64' because its dependency libpng is only installed for the arch 'x86_64' and the configured universal_archs 'x86_64 i386' are not sufficient
#63452
gst @3.2.5: getopt.c:576:30: error: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Werror,-Wimplicit-function-declaration]
#63491
libopenshot: error: use of undeclared identifier 'zmq_ctx_shutdown'
#63514
android @23: Could not open /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit: Error opening or reading file
#63538
xastir @2.0.8_7: error: implicit declaration of function 'XmGetDestination' is invalid in C99
#63620
rpm @4.4.9: error: implicit declaration of function '__dbsrv_timeout' is invalid in C99
#63678
mdbtools @1.0.0: error: implicit declaration of function 'mdb_set_repid_fmt' is invalid in C99
#63681
poppler: ccache: error: Failed to create temporary file: Permission denied
#63861
screen @4.8.0_1: Configuration logfiles contain indications of -Wimplicit-function-declaration
#63884
mariadb-10.6 @10.6: Configuration logfiles contain indications of -Wimplicit-function-declaration
#63928
xcb @2.4_3 configure fails
#63967
gmpc @11.8.16_5: error: implicit declaration of function 'main_window_add_status_icon' is invalid in C99
#63994
emacs-app-devel: The installed libgccjit failed to compile and run a test program using the libgccjit library
#64046
py27-ngl @1.3.0b1_2: error: implicit declaration of function 'c_cssgrid' is invalid in C99
#64131
podman/qemu: "podman machine start" fails with "Could not open 'edk2-aarch64-code.fd'"

#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
#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
#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
#62995
restore_ports fails during migration to macOS 11.[34] (Big Sur) with "requested variants do not match" and also complains "macOS 11 SDK does not appear to be installed"
#63090
Cannot build gcc7 on Big Sur
#63251
GILDAS build fail on Big Sur / arm64
#63513
xorg-server crashes on Big Sur 11.6
#63669
rsync-hfscomp: fix compile error on Big Sur, due to gettimeofday() detection in configure script
#63877
qt5-qtwebkit fails to build with Xcode 13.1 Big Sur and Monterey 12.0.1

Last modified 11 months ago Last modified on Jan 21, 2021, 12:07:58 AM

Attachments (1)

Download all attachments as: .zip