tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems on macOS 11/aarch64 (was: freeze for 2020Q4 has started)



> Testing from everyone is also very much appreciated, especially on
> unusual platforms.
I guess my "Apple Silicon" MacBook Air qualifies as an unusual platfom.

Here's the list of failures for my usual set of packages (or dependencies 
thereof); the graphite2 one is particularily annoying since it indirectly 
break severything TeX-related; I also attach my set of pathes (the python26 
PLIST one is clearly a gross hack):

-- lang/ghostscript-gpl:
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/print/ghostscript-gpl/work/.buildlink/lib/libfontconfig.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/print/ghostscript-gpl/work/.buildlink/lib/libfontconfig.dylib (2 slices)
Undefined symbols for architecture arm64:
  "_FcFontList", referenced from:
      _gp_enumerate_fonts_init in gp_unix.o
[...]
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [base/unix-aux.mak:106: soobj/aux/mkromfs_1] Error 1

-- graphics/graphite2:
[  4%] Building CXX object src/CMakeFiles/graphite2.dir/direct_machine.cpp.o
error: unknown FP unit 'sse'

shells/dash:
exec.c:292:16: error: variable has incomplete type 'struct stat64'
        struct stat64 statb;
                      ^
exec.c:292:9: note: forward declaration of 'struct stat64'
        struct stat64 statb;
               ^
exec.c:301:11: warning: implicit declaration of function 'stat64' is invalid in C99
      [-Wimplicit-function-declaration]
                        while (stat64(name, &statb) < 0) {
                               ^
exec.c:390:10: warning: implicit declaration of function 'stat64' is invalid in C99
      [-Wimplicit-function-declaration]
                while (stat64(fullname, &statb) < 0) {
                       ^
2 warnings and 1 error generated.

-- devel/nss:
aes-armv8.c:18:2: error: "Compiler option is invalid"
#error "Compiler option is invalid"
 ^

-- x11/libXft:
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libfontconfig.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libfontconfig.dylib (2 slices)
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libX11.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libX11.dylib (2 slices)
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libXrender.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/x11/libXft/work/.buildlink/lib/libXrender.dylib (2 slices)
Undefined symbols for architecture arm64:
  "_FcCharSetCopy", referenced from:
      _XftFontOpenInfo in xftfreetype.o
[...]
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libXft.la] Error code 1

-- databases/shared-mime-info:
dyld: lazy symbol binding failed: Symbol not found: _XML_ParserCreate_MM
  Referenced from: /opt/pkg/lib/perl5/vendor_perl/5.32.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
  Expected in: flat namespace

dyld: Symbol not found: _XML_ParserCreate_MM
  Referenced from: /opt/pkg/lib/perl5/vendor_perl/5.32.0/darwin-thread-multi-2level/auto/XML/Parser/Expat/Expat.bundle
  Expected in: flat namespace

Abort trap 
gmake: *** [Makefile:1156: freedesktop.org.xml] Error 134
*** Error code 2

-- x11/tk:
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/x11/tk/work/.buildlink/lib/libX11.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/x11/tk/work/.buildlink/lib/libX11.dylib (2 slices)
Undefined symbols for architecture arm64:
  "_XAllocClassHint", referenced from:
      _TkWmSetClass in tkUnixWm.o
[...]
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [libtk86.dylib] Error code 1

bmake: stopped in /Users/ef/local/build/pkgsrc-current/x11/tk/work/tk8.6.10/unix
1 error

-- sysutils/dbus:
ld: warning: ignoring file /Users/ef/local/build/pkgsrc-current/sysutils/dbus/work/.buildlink/lib/libX11.dylib, missing required architecture arm64 in file /Users/ef/local/build/pkgsrc-current/sysutils/dbus/work/.buildlink/lib/libX11.dylib (2 slices)
Undefined symbols for architecture arm64:
  "_XChangeProperty", referenced from:
      _x11_save_address in dbus_launch-dbus-launch-x11.o
[...]
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [Makefile:728: dbus-launch] Error 1

-- cross/avr-gcc:
Undefined symbols for architecture arm64:
  "_host_hooks", referenced from:
      c_common_no_more_pch() in c-pch.o
      general_init(char const*) in libbackend.a(toplev.o)
      gt_pch_save(__sFILE*) in libbackend.a(ggc-common.o)
      gt_pch_restore(__sFILE*) in libbackend.a(ggc-common.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Index: lang/go/version.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/go/version.mk,v
retrieving revision 1.107
diff -u -r1.107 version.mk
--- lang/go/version.mk	19 Dec 2020 18:03:52 -0000	1.107
+++ lang/go/version.mk	21 Dec 2020 20:09:56 -0000
@@ -26,6 +26,8 @@
 # https://github.com/golang/go/issues/23122
 # darwin version 13.4 is osx 10.9.5
 GO_VERSION_DEFAULT?=	110
+.elif !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
+GO_VERSION_DEFAULT?=	-bin
 .else
 GO_VERSION_DEFAULT?=	115
 .endif
Index: lang/python27/PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python27/PLIST,v
retrieving revision 1.4
diff -u -r1.4 PLIST
--- lang/python27/PLIST	21 Oct 2019 09:40:35 -0000	1.4
+++ lang/python27/PLIST	21 Dec 2020 20:09:58 -0000
@@ -1923,7 +1923,7 @@
 lib/python${PY_VER_SUFFIX}/lib-dynload/array.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/audioop.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/binascii.so
-lib/python${PY_VER_SUFFIX}/lib-dynload/bz2.so
+@comment lib/python${PY_VER_SUFFIX}/lib-dynload/bz2.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/cPickle.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/cStringIO.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/cmath.so
@@ -1948,7 +1948,7 @@
 lib/python${PY_VER_SUFFIX}/lib-dynload/termios.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/time.so
 lib/python${PY_VER_SUFFIX}/lib-dynload/unicodedata.so
-lib/python${PY_VER_SUFFIX}/lib-dynload/zlib.so
+@comment lib/python${PY_VER_SUFFIX}/lib-dynload/zlib.so
 lib/python${PY_VER_SUFFIX}/lib-tk/Canvas.py
 lib/python${PY_VER_SUFFIX}/lib-tk/Canvas.pyc
 lib/python${PY_VER_SUFFIX}/lib-tk/Canvas.pyo
Index: lang/python27/patches/patch-configure
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python27/patches/patch-configure,v
retrieving revision 1.1
diff -u -r1.1 patch-configure
--- lang/python27/patches/patch-configure	17 Jun 2018 19:21:21 -0000	1.1
+++ lang/python27/patches/patch-configure	21 Dec 2020 20:09:58 -0000
@@ -6,8 +6,8 @@
 - honor pkgsrc LDFLAGS
 - other stuff not previously commented (XXX)
 
---- configure.orig	2018-04-29 22:47:33.000000000 +0000
-+++ configure
+--- configure.orig	2020-04-19 23:13:39.000000000 +0200
++++ configure	2020-12-09 17:03:36.000000000 +0100
 @@ -3356,7 +3356,7 @@ case $ac_sys_system/$ac_sys_release in
    # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
    # In addition, Stefan Krah confirms that issue #1244610 exists through
@@ -57,7 +57,17 @@
          then
              # OS X 10.3 through 10.5
              cur_target=10.3
-@@ -8617,9 +8615,9 @@ then
+@@ -8474,6 +8472,9 @@ fi
+     	ppc)
+     		MACOSX_DEFAULT_ARCH="ppc64"
+     		;;
++	arm64)
++		MACOSX_DEFAULT_ARCH="arm64"
++		;;
+     	*)
+     		as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
+     		;;
+@@ -8624,9 +8625,9 @@ then
  			LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
  		else
  			# No framework, use the Python app as bundle-loader
@@ -70,7 +80,7 @@
  		fi ;;
  	Darwin/*)
  		# Use -undefined dynamic_lookup whenever possible (10.3 and later).
-@@ -8642,9 +8640,9 @@ then
+@@ -8649,9 +8650,9 @@ then
  				LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
  			else
  				# No framework, use the Python app as bundle-loader
@@ -83,7 +93,7 @@
  			fi
  		else
  			# building for OS X 10.3 and later
-@@ -8655,7 +8653,7 @@ then
+@@ -8662,7 +8663,7 @@ then
  		;;
  	Linux*|GNU*|QNX*)
  		LDSHARED='$(CC) -shared'
@@ -92,7 +102,7 @@
  	BSD/OS*/4*)
  		LDSHARED="gcc -shared"
  		LDCXXSHARED="g++ -shared";;
-@@ -8683,6 +8681,9 @@ then
+@@ -8690,6 +8691,9 @@ then
  				   ;;
  				esac
  		fi;;
@@ -102,7 +112,7 @@
  	NetBSD*|DragonFly*)
  		LDSHARED='$(CC) -shared'
  		LDCXXSHARED='$(CXX) -shared';;
-@@ -8729,7 +8730,8 @@ then
+@@ -8736,7 +8740,8 @@ then
  		 fi;;
  	Linux*|GNU*) CCSHARED="-fPIC";;
  	BSD/OS*/4*) CCSHARED="-fpic";;
@@ -112,7 +122,7 @@
  	OpenUNIX*|UnixWare*)
  		if test "$GCC" = "yes"
  		then CCSHARED="-fPIC"
-@@ -8781,11 +8783,12 @@ then
+@@ -8788,11 +8793,12 @@ then
  	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
  	SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
  	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
@@ -126,7 +136,7 @@
  	SunOS/5*) case $CC in
  		  *gcc*)
  		    if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
-@@ -10798,6 +10801,10 @@ int
+@@ -10883,6 +10889,10 @@ int
  main ()
  {
  int x=kqueue()
Index: multimedia/libaom/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/libaom/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- multimedia/libaom/Makefile	31 Aug 2020 18:10:29 -0000	1.8
+++ multimedia/libaom/Makefile	21 Dec 2020 20:10:01 -0000
@@ -38,7 +38,8 @@
 .include "../../mk/bsd.prefs.mk"
 
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) \
-  || !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64)
+  || !empty(MACHINE_PLATFORM:MNetBSD-*-aarch64) \
+  || !empty(MACHINE_PLATFORM:MDarwin-*-aarch64)
 CMAKE_ARGS+=	-DCONFIG_RUNTIME_CPU_DETECT=0
 .endif
 


Home | Main Index | Thread Index | Old Index