[MacPorts] #61750: cmake port installation failure - Big Sur AArch64 (M1)

MacPorts noreply at macports.org
Sat Dec 5 22:17:21 UTC 2020


#61750: cmake port installation failure - Big Sur AArch64 (M1)
----------------------+--------------------
  Reporter:  raw-bin  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------

Comment (by raw-bin):

 Hi again. Thanks everyone for your prompt inputs. Appreciated!

 So I went ahead and installed XCode 12.3 Beta all the same. Then ran into
 a problem where '/Library/Developer/CommandLineTools/SDKs' didn't contain
 a symlink to MacOSX11.1sdk - something that I had to fix manually.

 That didn't help with the cmake situation with main.log still complaining
 about x86_64 specific libs getting pulled in.

 Given the multiple suggestions to use the '+universal' variant of all the
 dependent ports, I first uninstalled MacPorts completely using the
 documented procedure. Then re-installed it. Then attempted to install the
 fish shell (which was the original port I wanted to install and which had
 pulled in cmake) as follows:

 {{{
 $ sudo port install fish +universal
 }}}

 This chugged along for a bit installing many ports and ultimately bombing
 out at python38.

 So at present, I have the following ports installed:

 {{{
 $ port list installed
 Warning: The 'list' action only shows the currently available version of
 each port. To see installed versions, use the 'installed' action.
 autoconf                       @2.69           devel/autoconf
 automake                       @1.16.3         devel/automake
 bzip2                          @1.0.8          archivers/bzip2
 curl-ca-bundle                 @7.73.0         net/curl
 db48                           @4.8.30         databases/db48
 expat                          @2.2.10         textproc/expat
 gdbm                           @1.18.1         databases/gdbm
 gettext                        @0.19.8.1       devel/gettext
 glib2                          @2.58.3         devel/glib2
 help2man                       @1.47.16        textproc/help2man
 libedit                        @20191231-3.1   devel/libedit
 libevent                       @2.1.12         devel/libevent
 libffi                         @3.3            devel/libffi
 libiconv                       @1.16           textproc/libiconv
 libidn2                        @2.3.0          mail/libidn2
 libtool                        @2.4.6          devel/libtool
 libunistring                   @0.9.10         textproc/libunistring
 ncurses                        @6.2            devel/ncurses
 openssl                        @1.1.1h         devel/openssl
 p5.28-locale-gettext           @1.70.0         perl/p5-locale-gettext
 pcre                           @8.44           devel/pcre
 perl5.28                       @5.28.3         lang/perl5
 perl5.30                       @5.30.3         lang/perl5
 pkgconfig                      @0.29.2         devel/pkgconfig
 python3_select                 @0.0            sysutils/python3_select
 python_select                  @0.3            sysutils/python_select
 readline                       @8.0.000        devel/readline
 sqlite3                        @3.34.0         databases/sqlite3
 texinfo                        @6.7            textproc/texinfo
 tmux                           @3.1c           sysutils/tmux
 xz                             @5.2.5          archivers/xz
 zlib                           @1.2.11         archivers/zlib
 }}}

 The telling bit in the  python38 build log is this:

 {{{
 :info:build /usr/bin/clang -arch arm64 -arch x86_64 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -L/opt/local/lib
 -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
 -arch arm64 -arch x86_64    -Wl,-stack_size,1000000  -framework
 CoreFoundation Python.framework/Versions/3.8/Python -o Programs/_testembed
 Programs/_testembed.o  -lintl -ldl   -framework CoreFoundation
 :info:build DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build
 /_opt_mports_macports-ports_lang_python38/python38/work/Python-3.8.6
 ./python.exe -E -S -m sysconfig --generate-posix-vars ;\
 :info:build     if test $? -ne 0 ; then \
 :info:build             echo "generate-posix-vars failed" ; \
 :info:build             rm -f ./pybuilddir.txt ; \
 :info:build             exit 1 ; \
 :info:build     fi
 :info:build Traceback (most recent call last):
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/runpy.py", line 194, in
 _run_module_as_main
 :info:build     return _run_code(code, main_globals, None,
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/runpy.py", line 87, in
 _run_code
 :info:build     exec(code, run_globals)
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/sysconfig.py", line
 711, in <module>
 :info:build     _main()
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/sysconfig.py", line
 699, in _main
 :info:build     _generate_posix_vars()
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/sysconfig.py", line
 402, in _generate_posix_vars
 :info:build     pybuilddir = 'build/lib.%s-%s' % (get_platform(),
 _PY_VERSION_SHORT)
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/sysconfig.py", line
 678, in get_platform
 :info:build     osname, release, machine = _osx_support.get_platform_osx(
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_lang_python38/python38/work/Python-3.8.6/Lib/_osx_support.py", line
 495, in get_platform_osx
 :info:build     raise ValueError(
 :info:build ValueError: Don't know machine value for archs=('arm64',
 'x86_64')
 :info:build generate-posix-vars failed
 :info:build make: *** [pybuilddir.txt] Error 1
 :info:build make: Leaving directory `/opt/local/var/macports/build
 /_opt_mports_macports-ports_lang_python38/python38/work/Python-3.8.6'
 :info:build Command failed:  cd "/opt/local/var/macports/build
 /_opt_mports_macports-ports_lang_python38/python38/work/Python-3.8.6" &&
 /usr/bin/make -j8 -w all
 :info:build Exit code: 2
 :error:build Failed to build python38: command execution failed
 :debug:build Error code: CHILDSTATUS 22643 2
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 }}}

 The whole python38/main.log is attached.

 Thanks!

-- 
Ticket URL: <https://trac.macports.org/ticket/61750#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list