Skip to content

build warning and test failed with --disable-gil #136957

@MengAiDev

Description

@MengAiDev

Bug report

Bug description:

When I clone cpython and use ./configure --disable-gil and make it, it got some warnings. After that I run make test, I found some test are failed. Here are two logs. (Does it means we should not use disable-gil??)
I noticed this at the beginning:

The necessary bits to build these optional modules were not found:
_dbm                  _decimal    

Core warnings:

Objects/typeobject.c:367:10: warning: ‘__atomic_load_4’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
Python/crossinterp.c:367:10: warning: ‘__atomic_load_4’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
Modules/_struct.c:367:10: warning: ‘__atomic_load_4’ writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
Python/ceval.c:1912:38: warning: ‘stack_array’ may be used uninitialized [-Wmaybe-uninitialized]
Modules/_functoolsmodule.c:1575:16: warning: ‘result’ may be used uninitialized [-Wmaybe-uninitialized]

make.txt

make_test.txt

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedtestsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy