Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'compiler': 0.07; 'error:': 0.07; 'purpose.': 0.07; 'appropriate.': 0.09; 'exit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'report,': 0.09; 'testing,': 0.09; 'bug': 0.12; '2.7': 0.14; 'fitness': 0.14; "'gcc'": 0.16; '-o2': 0.16; 'assembler': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'received:80.91.229.3': 0.16; 'received:mediaways.net': 0.16; 'received:plane.gmane.org': 0.16; 'received:pool.mediaways.net': 0.16; 'software;': 0.16; 'url:bugzilla': 0.16; 'url:redhat': 0.16; 'utc': 0.16; 'warranty;': 0.16; 'x86_64': 0.16; 'extensions': 0.16; 'trying': 0.19; 'stefan': 0.19; 'foundation,': 0.20; 'command': 0.22; 'memory': 0.22; 'aug': 0.22; 'creating': 0.23; 'header:User-Agent:1': 0.23; 'environment': 0.24; 'source': 0.25; 'extension': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'idea': 0.28; '(c)': 0.29; "i'm": 0.30; 'bunch': 0.31; 'gcc': 0.31; 'though.': 0.31; 'anyone': 0.31; 'compatible': 0.32; 'another': 0.32; 'quite': 0.32; 'linux': 0.33; 'entirely': 0.33; 'skip:b 30': 0.33; 'copying': 0.34; 'something': 0.35; 'building': 0.35; 'there': 0.35; 'ram': 0.36; 'possible': 0.36; 'virtual': 0.37; 'skip:- 20': 0.37; 'system,': 0.38; 'conditions.': 0.38; 'hat': 0.38; 'to:addr :python-list': 0.38; 'skip:- 10': 0.38; 'skip:b 40': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'skip:- 60': 0.39; 'received:org': 0.40; 'even': 0.60; 'most': 0.60; 'free': 0.61; 'full': 0.61; 'new': 0.61; 'more': 0.64; 'production': 0.68; 'received:93': 0.72; 'wheel': 0.84; 'killed': 0.91; 'messages:': 0.91; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: error building lxml.etree Date: Fri, 22 Aug 2014 19:53:45 +0200 References: <53F766C3.1040103@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: mnch-5d857f34.pool.mediaways.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <53F766C3.1040103@chamonix.reportlab.co.uk> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408730117 news.xs4all.nl 2850 [2001:888:2000:d::a6]:48888 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76804 Robin Becker schrieb am 22.08.2014 um 17:50: > I'm trying to build a bunch of extensions in a 2.7 virtual environment on a > centos 7 VM. I don't know centos very well and I understand centos 7 is > quite new > >> building 'lxml.etree' extension >> >> creating build/temp.linux-x86_64-2.7 >> >> creating build/temp.linux-x86_64-2.7/src >> >> creating build/temp.linux-x86_64-2.7/src/lxml >> >> gcc -pthread -fno-strict-aliasing -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 -DNDEBUG -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 -fPIC -I/usr/include/libxml2 >> -I/home/rptlab/website/xxx/xxx_0/build/lxml/src/lxml/includes >> -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o >> build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w >> >> {standard input}: Assembler messages: >> >> {standard input}:1858223: Error: unknown pseudo-op: `.' >> >> gcc: internal compiler error: Killed (program cc1) >> >> Please submit a full bug report, >> >> with preprocessed source if appropriate. >> >> See for instructions. >> >> error: command 'gcc' failed with exit status 4 > > > uname -a >> Linux localhost.localdomain 3.10.0-123.6.3.el7.x86_64 #1 SMP Wed Aug 6 >> 21:12:36 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > > > gcc --version >> gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16) >> Copyright (C) 2013 Free Software Foundation, Inc. >> This is free software; see the source for copying conditions. There is NO >> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > I do have the various devel rpms installed so far as I can tell. > > Has anyone else seen this error? It's entirely possible that it might be I > don't have enough memory or something Yes, that's most likely it. Having 500MB+ of free(!) RAM is a good idea for the build. > lxml builds almost always take a long time. For testing, you can speed things up quite substantially by using "-O0" as your CFLAGS. Not a good idea for a production system, though. You might also get away with building a (static?) wheel on another compatible Linux system that has more RAM. Stefan