[MacPorts] #68280: py311-gnureadline error: use of undeclared identifier 'VFunction'

MacPorts noreply at macports.org
Fri Sep 29 09:55:16 UTC 2023


#68280: py311-gnureadline  error: use of undeclared identifier 'VFunction'
--------------------------------+--------------------------
  Reporter:  wyuenho            |      Owner:  (none)
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.8.1
Resolution:                     |   Keywords:  sonoma arm64
      Port:  py311-gnureadline  |
--------------------------------+--------------------------
Description changed by wyuenho:

Old description:

> --->  Fetching archive for py311-gnureadline
> --->  py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2 doesn't seem to
> exist in /opt/local/var/macports/incoming/verified
> --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
> from https://packages.macports.org/py311-gnureadline
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
>   0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
> 0
> --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
> from https://ema.uk.packages.macports.org/py311-gnureadline
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
>   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
> 0
> --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
> from https://mse.uk.packages.macports.org/py311-gnureadline
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time
> Current
>                                  Dload  Upload   Total   Spent    Left
> Speed
>   0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
> 0
> --->  Building py311-gnureadline
> Executing:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_python_py-
> gnureadline/py311-gnureadline/work/gnureadline-8.1.2" &&
> /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
> -m build --no-isolation --wheel --outdir
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_python_py-
> gnureadline/py311-gnureadline/work
> * Getting build dependencies for wheel...
> running egg_info
> writing gnureadline.egg-info/PKG-INFO
> writing dependency_links to gnureadline.egg-info/dependency_links.txt
> writing top-level names to gnureadline.egg-info/top_level.txt
> listing git files failed - pretending there aren't any
> reading manifest file 'gnureadline.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'gnureadline.egg-info/SOURCES.txt'
> * Building wheel...
> running bdist_wheel
> running build
> running build_py
> running egg_info
> writing gnureadline.egg-info/PKG-INFO
> writing dependency_links to gnureadline.egg-info/dependency_links.txt
> writing top-level names to gnureadline.egg-info/top_level.txt
> listing git files failed - pretending there aren't any
> reading manifest file 'gnureadline.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'gnureadline.egg-info/SOURCES.txt'
> running build_ext
> building 'gnureadline' extension
> /usr/bin/clang -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
> -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch
> arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
> -DHAVE_RL_APPEND_HISTORY -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL
> -DHAVE_RL_COMPLETION_APPEND_CHARACTER
> -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES
> -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK
> -DHAVE_RL_RESIZE_TERMINAL -I. -IModules/3.x
> -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
> -c Modules/3.x/readline.c -o
> build/temp.macosx-14.0-arm64-cpython-311/Modules/3.x/readline.o
> Modules/3.x/readline.c:446:21: error: expected expression
>         (VFunction *)on_completion_display_matches_hook : 0;
>                     ^
> Modules/3.x/readline.c:446:10: error: use of undeclared identifier
> 'VFunction'; did you mean 'function'?
>         (VFunction *)on_completion_display_matches_hook : 0;
>          ^~~~~~~~~
>          function
> Modules/3.x/readline.c:432:61: note: 'function' declared here
>                                                   PyObject *function)
>                                                             ^
> Modules/3.x/readline.c:446:22: error: expected ':'
>         (VFunction *)on_completion_display_matches_hook : 0;
>                      ^
>                      :
> Modules/3.x/readline.c:442:63: note: to match this '?'
>         readlinestate_global->completion_display_matches_hook ?
>                                                               ^
> 3 errors generated.
> error: command '/usr/bin/clang' failed with exit code 1
>
> ERROR Backend subprocess exited when trying to invoke build_wheel
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_python_py-
> gnureadline/py311-gnureadline/work/gnureadline-8.1.2" &&
> /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
> -m build --no-isolation --wheel --outdir
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_python_py-
> gnureadline/py311-gnureadline/work
> Exit code: 1
> Error: Failed to build py311-gnureadline: command execution failed
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
> .org_macports_release_tarballs_ports_python_py-
> gnureadline/py311-gnureadline/main.log for details.
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug.
> Error: Processing of port mercurial failed

New description:

 {{{
 --->  Fetching archive for py311-gnureadline
 --->  py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2 doesn't seem to exist
 in /opt/local/var/macports/incoming/verified
 --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
 from https://packages.macports.org/py311-gnureadline
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
   0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
 from https://ema.uk.packages.macports.org/py311-gnureadline
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Attempting to fetch py311-gnureadline-8.1.2_0.darwin_23.arm64.tbz2
 from https://mse.uk.packages.macports.org/py311-gnureadline
   % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                  Dload  Upload   Total   Spent    Left
 Speed
   0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
 0
 --->  Building py311-gnureadline
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 gnureadline/py311-gnureadline/work/gnureadline-8.1.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 gnureadline/py311-gnureadline/work
 * Getting build dependencies for wheel...
 running egg_info
 writing gnureadline.egg-info/PKG-INFO
 writing dependency_links to gnureadline.egg-info/dependency_links.txt
 writing top-level names to gnureadline.egg-info/top_level.txt
 listing git files failed - pretending there aren't any
 reading manifest file 'gnureadline.egg-info/SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 adding license file 'LICENSE'
 writing manifest file 'gnureadline.egg-info/SOURCES.txt'
 * Building wheel...
 running bdist_wheel
 running build
 running build_py
 running egg_info
 writing gnureadline.egg-info/PKG-INFO
 writing dependency_links to gnureadline.egg-info/dependency_links.txt
 writing top-level names to gnureadline.egg-info/top_level.txt
 listing git files failed - pretending there aren't any
 reading manifest file 'gnureadline.egg-info/SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 adding license file 'LICENSE'
 writing manifest file 'gnureadline.egg-info/SOURCES.txt'
 running build_ext
 building 'gnureadline' extension
 /usr/bin/clang -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe
 -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch
 arm64 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -DHAVE_RL_APPEND_HISTORY -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL
 -DHAVE_RL_COMPLETION_APPEND_CHARACTER
 -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES
 -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK
 -DHAVE_RL_RESIZE_TERMINAL -I. -IModules/3.x
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11
 -c Modules/3.x/readline.c -o
 build/temp.macosx-14.0-arm64-cpython-311/Modules/3.x/readline.o
 Modules/3.x/readline.c:446:21: error: expected expression
         (VFunction *)on_completion_display_matches_hook : 0;
                     ^
 Modules/3.x/readline.c:446:10: error: use of undeclared identifier
 'VFunction'; did you mean 'function'?
         (VFunction *)on_completion_display_matches_hook : 0;
          ^~~~~~~~~
          function
 Modules/3.x/readline.c:432:61: note: 'function' declared here
                                                   PyObject *function)
                                                             ^
 Modules/3.x/readline.c:446:22: error: expected ':'
         (VFunction *)on_completion_display_matches_hook : 0;
                      ^
                      :
 Modules/3.x/readline.c:442:63: note: to match this '?'
         readlinestate_global->completion_display_matches_hook ?
                                                               ^
 3 errors generated.
 error: command '/usr/bin/clang' failed with exit code 1

 ERROR Backend subprocess exited when trying to invoke build_wheel
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 gnureadline/py311-gnureadline/work/gnureadline-8.1.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 gnureadline/py311-gnureadline/work
 Exit code: 1
 Error: Failed to build py311-gnureadline: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 gnureadline/py311-gnureadline/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port mercurial failed

 }}}

--

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


More information about the macports-tickets mailing list