tech-pkg archive

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

Re: Problems on macOS 11/aarch64



Edgar Fuß <ef%math.uni-bonn.de@localhost> writes:

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

It does, but I was thinking "less common platforms where things are
thought to work ok".  Macs with arm64 are brand new and a lot of
upstream software doesn't support them yet, partly because a lot of
software is not portable, and I am guessing but don't know because apple
tends to differ from the normal way more often than one would think.  So
a big point is that upstream problems should be fixed upstream.

not directed  at you in particular:

I feel like making everything work on mac arm64 this week is pushing a
wet noodle uphill.  I don't personally want to do that, and with freeze
leader hat on, I don't want to negatively impact platforms that worked
last quarter.  But safe fixes are ok.    My guess is that by next
quarter things will be in very good shape.

For all of these, I would ask: if you follow the upstream build
instructions and build manually, does it work?  If not, try to fix
upstream.  If so, then there's a actual pkgsrc bug.

That said, we do carry fixes that belong upstream.  But there is a
requirement that they be filed in the upstream bugtracker and a URL to
that placed in the patch.

> 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):

Thanks for sending the list.  I hope that's helpful for others with mac
arm64 to help them figure out what's wrong.   I don't understand what's
going on; it looks like a lot of things are different that I wouldn't
have expected.

> -- 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)

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index