Skip to content

Compile error on Python/ceval.c without threads #75037

Closed

Description

@ma8ma
mannequin
BPO 30854
Nosy @pitrou, @vstinner, @ma8ma
PRs
  • bpo-30854: Fix compile error when --without-threads #2581
  • [3.6] bpo-30854: Fix compile error when --without-threads (GH-2581) #2583
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-07-05.09:25:12.100>
    created_at = <Date 2017-07-05.07:53:20.494>
    labels = ['build', '3.7']
    title = 'Compile error on Python/ceval.c without threads'
    updated_at = <Date 2017-07-05.13:44:55.781>
    user = 'https://github.com/ma8ma'

    bugs.python.org fields:

    activity = <Date 2017-07-05.13:44:55.781>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-07-05.09:25:12.100>
    closer = 'vstinner'
    components = ['Build']
    creation = <Date 2017-07-05.07:53:20.494>
    creator = 'masamoto'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30854
    keywords = []
    message_count = 5.0
    messages = ['297711', '297716', '297723', '297724', '297742']
    nosy_count = 3.0
    nosy_names = ['pitrou', 'vstinner', 'masamoto']
    pr_nums = ['2581', '2583']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue30854'
    versions = ['Python 3.6', 'Python 3.7']

    Activity

    1. ma8ma commented on Jul 5, 2017

      ma8mamannequin
      MannequinAuthor

      I found a syntax error when compiling without threads.
      In that place, the colon has been used instead of semicolon at end of statement.

      build commands and error log:
      $ uname -a
      Linux masayuki-P35-DS3 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:25 UTC 2017 i686 i686 i686 GNU/Linux
      $ git checkout master
      $ ./configure --without-threads && LC_ALL=C make -j2
      (snip)
      gcc -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include -DPy_BUILD_CORE -o Python/ceval.o Python/ceval.c
      Python/ceval.c: In function 'Py_MakePendingCalls':
      Python/ceval.c:551:23: error: expected ';' before ':' token
      goto error:
      ^
      Makefile:1551: recipe for target 'Python/ceval.o' failed
      make: *** [Python/ceval.o] Error 1

      related changeset:
      3024c05 [3.6] bpo-30703: Improve signal delivery (GH-2415) (bpo-2527)
      c08177a bpo-30703: Improve signal delivery (bpo-2415)

      I open one line change PR that replaces colon with semicolon for master branch right away.

    2. added
      buildThe build process and cross-build
      on Jul 5, 2017
    3. vstinner commented on Jul 5, 2017

      @vstinner
      Member

      New changeset 0c31163 by Victor Stinner (Masayuki Yamamoto) in branch 'master':
      bpo-30854: Fix compile error when --without-threads (bpo-2581)
      0c31163

    4. changed the title [-]Compile error on Python/ceval.c[/-] [+]Compile error on Python/ceval.c without threads[/+] on Jul 5, 2017
    5. vstinner commented on Jul 5, 2017

      @vstinner
      Member

      New changeset e3a0ff0 by Victor Stinner (Masayuki Yamamoto) in branch '3.6':
      [3.6] bpo-30854: Fix compile error when --without-threads (GH-2581) (bpo-2583)
      e3a0ff0

    6. vstinner commented on Jul 5, 2017

      @vstinner
      Member

      Thanks Masayuki Yamamoto for your fixes!

    7. vstinner commented on Jul 5, 2017

      @vstinner
      Member

      New changeset 8207c17 by Victor Stinner in branch 'master':
      Revert "bpo-30822: Fix testing of datetime module." (bpo-2588)
      8207c17

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifebuildThe build process and cross-build

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions