473,609 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem building python in virtual machine running centos

Hi,

I am trying to build python-2.4.5 on Centos 5.1, which is a virtual
machine running with xen.
I am not able to build python. The compilation crash with the following:
gcc -pthread -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o
Objects/unicodeobject.c
In file included from ./Include/Python.h:76,
from Objects/unicodeobject.c :39:
../Include/object.h:228: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat .com/bugzillafor instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
Any suggestion of what am I doing wrong?

Thanks
Alex

--
o Alexandre Gillet Ph.D. email: gi****@scripps. edu
/ The Scripps Research Institute,
o Dept. Molecular Biology, MB-5,
\ 10550 North Torrey Pines Road,
o La Jolla, CA 92037-1000, USA.
/ tel: (858) 784-2053
o fax: (858) 784-2860
web: http://mgl.scripps.edu/projects/tangible_models/
Jun 27 '08 #1
3 1911
On 25 Apr, 03:05, Alexandre Gillet <gil...@scripps .eduwrote:
>
I am trying to build python-2.4.5 on Centos 5.1, which is a virtual
machine running with xen.
I am not able to build python. The compilation crash with the following:
gcc -pthread -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o
Objects/unicodeobject.c
In file included from ./Include/Python.h:76,
from Objects/unicodeobject.c :39:
./Include/object.h:228: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat .com/bugzillafor instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

Any suggestion of what am I doing wrong?
You say that the bug is not reproducible, so that means that you can
sometimes compile Python, or does the crash always happen when
compiling some file (not necessarily the one mentioned above)? I think
I've only ever seen a reproducible gcc crash once, and that had
something to do with a C++ source file which I then split into two and
was able to compile as these two separate parts. You might want to
check the gcc version (gcc -v) and to look at bug fixes in any later
versions. Generally, if you get an internal error in gcc, you aren't
doing anything wrong yourself.

Paul
Jun 27 '08 #2
Paul Boddie wrote:
On 25 Apr, 03:05, Alexandre Gillet <gil...@scripps .eduwrote:
>>I am trying to build python-2.4.5 on Centos 5.1, which is a virtual
machine running with xen.
I am not able to build python. The compilation crash with the following:
gcc -pthread -c -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I.
-I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o
Objects/unicodeobject.c
In file included from ./Include/Python.h:76,
from Objects/unicodeobject.c :39:
./Include/object.h:228: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat .com/bugzillafor instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

Any suggestion of what am I doing wrong?


You say that the bug is not reproducible, so that means that you can
"The bug is not reproducible, so it is likely a hardware or OS problem."

This line is printed by GCC itself, not the OP

Paul
sometimes compile Python, or does the crash always happen when
compiling some file (not necessarily the one mentioned above)? I think
I've only ever seen a reproducible gcc crash once, and that had
something to do with a C++ source file which I then split into two and
was able to compile as these two separate parts. You might want to
check the gcc version (gcc -v) and to look at bug fixes in any later
versions. Generally, if you get an internal error in gcc, you aren't
doing anything wrong yourself.

Paul
Jun 27 '08 #3
On 25 Apr, 14:16, Paul Melis <p...@science.u va.nlwrote:
>
"The bug is not reproducible, so it is likely a hardware or OS problem."

This line is printed by GCC itself, not the OP
It's a strange thing for anyone to claim in an error message, though,
especially if it is reproducible. Perhaps some people have special
criteria for reproducibility .

Paul
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
3427
by: Maurice LING | last post by:
Hi, I remembered reading a MSc thesis about compiling Perl to Java bytecodes (as in java class files). At least, it seems that someone had compiled scheme to java class files quite successfully. I'm wondering if something of such had been attempted in python, as in compiling X language into .pyc. I do not understand the schematics of .pyc files but I assume that they are the so called python bytecode files. Or is there any...
2
1655
by: Helmut Jarausch | last post by:
Hi, I'd like to install SCons (http://www.scons.org) on my Linux box. There, the cvs version of Python is running. Doing as recommended in the README file export SCONS_LIB_DIR=`pwd`/src/engine python src/script/scons.py build/scons I get after some time
24
3429
by: Richard Blackwood | last post by:
Is it possible to prototype an operating system in Python? If so, what would such a task entail? (i.e. How would one write a boot-loader in Python?) - Richard B.
118
6689
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
2
1497
by: Chris Miles | last post by:
I have found that the sunfreeware.com build of Python 2.4.3 for Solaris 10 is faster than one I can build myself, on the same system. sunfreeware.com doesn't bother showing the options they used to configure and build the software, so does anyone know what the optimal build options are for Solaris 10 (x86)? Here are some pybench/pystone results, and I include the same comparison of Python2.4.3 running on CentOS 4.3 on the same hardware...
8
2767
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as 64-bit. MySQLdb installs with the usual warnings after applying the various patches I found here and there. These patches consist of altering _mysql.c and site.cfg.
1
1561
by: pradipbhosale | last post by:
Hi, I am have long running applications developed in python, linux, postgres (also used django framework to have web interface). I know Python has memory issues. But my applications are taking different memory on different machines. On 32 bit Centos (linux) machine these are starting with around 30-40 Mb of memory. On the other hand on 64 bit machine these are starting with 100-120 Mb of memory. Is there any particular reason behind...
0
918
by: Alexandre Gillet | last post by:
Thanks for your answers. I did solve my problem. I upgraded my glibc libraries and it seems to solve the problem. I was able to build python-2.4.5 using gcc 4.1.2 (glibc-2.5-18.el5_1.1) Alex On Thu, 2008-04-24 at 18:05 -0700, Alexandre Gillet wrote:
4
2000
by: Ognjen Bezanov | last post by:
Hello All, I am a third year computer science student and I'm the process of selection for my final year project. One option that was thought up was the idea of implement my own version of the python interpreter (I'm referring to CPython here). Either as a process running on another OS or as a process running directly on the CPU. Now, I can't seem to find a decent source of information on the python
0
8145
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8556
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8410
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6068
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
1690
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1407
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.