[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

problem with Python 2.5.2 and gcc 4.3

David P. Riedel

3/12/2008 1:57:00 PM

Hi

I tried building Python 2.5.2 using gcc 4.3.0. The build completes with no problems but when I run 'make test', I get a
segfault part way through the test run.

here is the last part of the output from make test

test_softspace
test_sort
test_sqlite
test_sqlite skipped -- no sqlite available
test_startfile
test_startfile skipped -- cannot import name startfile
test_str
make: *** [test] Segmentation fault


Has anyone else seen this?

Thanks

Dave Riedel
2 Answers

Andrew MacIntyre

3/13/2008 10:18:00 AM

0

David P. Riedel wrote:

> I tried building Python 2.5.2 using gcc 4.3.0. The build completes with no problems but when I run 'make test', I get a
> segfault part way through the test run.
>
> here is the last part of the output from make test
>
> test_softspace
> test_sort
> test_sqlite
> test_sqlite skipped -- no sqlite available
> test_startfile
> test_startfile skipped -- cannot import name startfile
> test_str
> make: *** [test] Segmentation fault

You don't identify the platform or O/S, though I'd guess some Linux
distro on i386 or x86-64...

If you have gdb available, a backtrace might give a clue.

However, as this is a new major release of gcc I'm automatically going to
assume an optimisation issue. To test this I'd suggest doctoring the
makefile generated by configure to reduce the optimisation level - I'd
suggest trying -O instead of -O3. If that works, try -O2 or -Os.

If -O2 or -Os works, I'd be taking the matter up with the gcc team.

--
-------------------------------------------------------------------------
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: andymac@bullseye.apana.org.au (pref) | Snail: PO Box 370
andymac@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.an... | Australia

David P. Riedel

3/13/2008 12:53:00 PM

0

Andrew MacIntyre wrote:
> David P. Riedel wrote:
>
>> I tried building Python 2.5.2 using gcc 4.3.0. The build completes
>> with no problems but when I run 'make test', I get a segfault part
>> way through the test run.
>>
>> here is the last part of the output from make test
>>
>> test_softspace
>> test_sort
>> test_sqlite
>> test_sqlite skipped -- no sqlite available
>> test_startfile
>> test_startfile skipped -- cannot import name startfile
>> test_str
>> make: *** [test] Segmentation fault
>
> You don't identify the platform or O/S, though I'd guess some Linux
> distro on i386 or x86-64...
>
> If you have gdb available, a backtrace might give a clue.
>
> However, as this is a new major release of gcc I'm automatically going to
> assume an optimisation issue. To test this I'd suggest doctoring the
> makefile generated by configure to reduce the optimisation level - I'd
> suggest trying -O instead of -O3. If that works, try -O2 or -Os.
>
> If -O2 or -Os works, I'd be taking the matter up with the gcc team.
>
You are correct -- Mandriva Linux 2007. I will try varying the optimization level and see what happens.

Thanks