Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76685

Re: Test failure while building cpython

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'package,': 0.03; 'third- party': 0.04; 'bishop': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'setup.py': 0.09; 'subject:while': 0.09; 'variables.': 0.09; 'python': 0.11; 'skip:= 70': 0.12; '-o2': 0.16; 'adam': 0.16; "package's": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:" 70': 0.16; 'sysconfig': 0.16; 'variables,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'obviously': 0.18; 'module': 0.19; 'trying': 0.19; 'separate': 0.22; 'tests': 0.22; 'install': 0.23; 'header:User- Agent:1': 0.23; 'environment': 0.24; 'source': 0.25; 'extension': 0.26; 'certain': 0.27; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'point': 0.28; 'newer': 0.30; "i'm": 0.30; "skip:' 10": 0.31; 'disable': 0.31; 'skip:( 50': 0.31; 'anyone': 0.31; 'file': 0.32; 'critical': 0.32; 'skip:- 30': 0.32; '(most': 0.33; 'skip:d 20': 0.34; "i'd": 0.34; 'could': 0.34; 'skip:- 50': 0.35; 'skip:s 30': 0.35; 'test': 0.35; 'but': 0.35; 'version': 0.36; 'charset :us-ascii': 0.36; 'skip:- 20': 0.37; 'two': 0.37; 'hat': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'skip:- 10': 0.38; 'rather': 0.38; 'recent': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'how': 0.40; 'most': 0.60; 'world.': 0.61; 'simply': 0.61; 'results': 0.69; 'received:204': 0.75; 'article': 0.77; 'received:204.14': 0.84; 'subject:Test': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: Test failure while building cpython
Date Wed, 20 Aug 2014 17:25:05 -0700
References <09843563-B0FD-451B-BF66-0FB720CEC67A@ja.net>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 204.14.154.216
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13223.1408580714.18130.python-list@python.org> (permalink)
Lines 75
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408580714 news.xs4all.nl 2956 [2001:888:2000:d::a6]:34567
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76685

Show key headers only | View raw


In article <09843563-B0FD-451B-BF66-0FB720CEC67A@ja.net>,
 Adam Bishop <Adam.Bishop@ja.net> wrote:
> I'm trying to build python 3.3.2 from source packages provided by Red Hat 
> under mock.
> 
> The build itself works,but one specific test is failing:
>   
>    ======================================================================
>    FAIL: test_sysconfig_module 
>    (distutils.tests.test_sysconfig.SysconfigTestCase)
>    ----------------------------------------------------------------------
>    Traceback (most recent call last):
>      File 
>      "/builddir/build/BUILD/Python-3.3.2/Lib/distutils/tests/test_sysconfig.py
>      ", line 134, in test_sysconfig_module
>        self.assertEqual(global_sysconfig.get_config_var('CFLAGS'), 
>        sysconfig.get_config_var('CFLAGS'))
>    AssertionError: '-Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g 
>    -pipe -Wall -Wp,-D_FO [truncated]... != '-Wno-unused-result 
>    -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall -Wp,-D_FO 
>    [truncated]...
>    - -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv  -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv   -O1
>    ?                                                                          
>                                                                               
>                                                                               
>                                                                               
>                                                                               
>                                                     
>    ---------------------------------------------------------------------------
>    ---------------------------------------------------------------------------
>    --------------------------------------------------
>    + -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv -I/usr/include-O2 -g -pipe -Wall 
>    -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong 
>    --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic 
>    -D_GNU_SOURCE -fPIC -fwrapv
>    
>    
>    ----------------------------------------------------------------------
>    Ran 189 tests in 1.778s
> 
> Obviously I could simply disable the test[1], but this requires patching the 
> source package, which I'd rather avoid because I don't fully understand what 
> case this test is trying to detect.
> 
> Is anyone able to indicate what the test is looking for and what might cause 
> it to fail? I don't see how the CFLAGS used in the build process could change 
> during the test run.

The test is to check that the two separate implementations of sysconfig 
in the standard library (don't ask why!), the newer sysconfig and the 
legacy distutils.sysconfig, return the same results for certain key 
configuration variables, like CFLAGS.  It's not the most critical test 
in the world.  The important point is that the values from the 
distutils.sysconfig version are what will be used during C extension 
module builds when you install third-party packages and, if necessary, 
most of them can be overridden, either in the package's setup.py or by 
setting environment variables.  Also, be aware that Python 3.3.2 is 
obsolete.

-- 
 Ned Deily,
 nad@acm.org

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Test failure while building cpython Ned Deily <nad@acm.org> - 2014-08-20 17:25 -0700

csiph-web