LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2007, 06:55 AM   #1
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Python-2.5 Build Fails; Illegal Instruction Linking Modules


I'm trying to build Python-2.5 on a 32-bit CLFS-1.0.0 box. I'm having a time getting the modules to build. I'm configuring and building Python as
Code:
./configure --prefix=/usr --enable-shared &&
make EXTRA_CFLAGS="-fwrapv"
When linking the modules, the build fails with the last few lines of output.
Code:
gcc   -Xlinker -export-dynamic -o python \
                        Modules/python.o \
                        -L. -lpython2.5 -ldl  -lutil   -lm  
case $MAKEFLAGS in \
        *-s*) LD_LIBRARY_PATH=/usr/src/dev-lang/python/Python-2.5: CC='gcc ' LDSHARED='gcc  -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
        *) LD_LIBRARY_PATH=/usr/src/dev-lang/python/Python-2.5: CC='gcc ' LDSHARED='gcc  -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
        esac
/bin/sh: line 1:  5647 Illegal instruction     LD_LIBRARY_PATH=/usr/src/dev-lang/python/Python-2.5: CC='gcc ' LDSHARED='gcc  -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build
make: *** [sharedmods] Error 132
Simply issuing
./python -E ./setup.py build fails with an Illegal instruction so I'm suspecting it something wrong with the newly built Python itself. I haven't uncovered much from Google, just this thread which didn't help.
Executing the build command outside the make, but adding the -v switch (./python -E -v ./setup.py build) outputs the following...
Code:
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/src/dev-lang/python/Python-2.5/Lib/site.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/site.py
import site # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/site.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/os.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/os.py
import os # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/os.pyc
import posix # builtin
# /usr/src/dev-lang/python/Python-2.5/Lib/posixpath.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/posixpath.py
import posixpath # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/posixpath.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/stat.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/stat.py
import stat # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/stat.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/UserDict.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/UserDict.py
import UserDict # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/UserDict.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/copy_reg.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/copy_reg.py
import copy_reg # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/copy_reg.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/types.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/types.py
import types # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/types.pyc
import _types # builtin
import distutils # directory /usr/src/dev-lang/python/Python-2.5/Lib/distutils
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/__init__.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/__init__.py
import distutils # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/__init__.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/util.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/util.py
import distutils.util # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/util.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/string.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/string.py
import string # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/string.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/re.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/re.py
import re # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/re.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/sre_compile.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/sre_compile.py
import sre_compile # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/sre_compile.pyc
import _sre # builtin
# /usr/src/dev-lang/python/Python-2.5/Lib/sre_constants.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/sre_constants.py
import sre_constants # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/sre_constants.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/sre_parse.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/sre_parse.py
import sre_parse # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/sre_parse.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/errors.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/errors.py
import distutils.errors # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/errors.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/dep_util.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/dep_util.py
import distutils.dep_util # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/dep_util.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/spawn.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/spawn.py
import distutils.spawn # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/spawn.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/distutils/log.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/distutils/log.py
import distutils.log # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/distutils/log.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/warnings.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/warnings.py
import warnings # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/warnings.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/linecache.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/linecache.py
import linecache # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/linecache.pyc
import encodings # directory /usr/src/dev-lang/python/Python-2.5/Lib/encodings
# /usr/src/dev-lang/python/Python-2.5/Lib/encodings/__init__.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/encodings/__init__.py
import encodings # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/encodings/__init__.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/codecs.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/codecs.py
import codecs # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/codecs.pyc
import _codecs # builtin
# /usr/src/dev-lang/python/Python-2.5/Lib/encodings/aliases.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/encodings/aliases.py
import encodings.aliases # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/encodings/aliases.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/encodings/latin_1.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/encodings/latin_1.py
import encodings.latin_1 # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/encodings/latin_1.pyc
Python 2.5 (r25:51908, Oct 25 2007, 00:33:20) 
[GCC 4.1.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import imp # builtin
# /usr/src/dev-lang/python/Python-2.5/Lib/optparse.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/optparse.py
import optparse # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/optparse.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/textwrap.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/textwrap.py
import textwrap # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/textwrap.pyc
# /usr/src/dev-lang/python/Python-2.5/Lib/gettext.pyc matches /usr/src/dev-lang/python/Python-2.5/Lib/gettext.py
import gettext # precompiled from /usr/src/dev-lang/python/Python-2.5/Lib/gettext.pyc
Illegal instruction
I've also tried Python-2.5.1 on a whim with the same results.

Any hints?

Last edited by weibullguy; 10-25-2007 at 07:42 AM.
 
Old 10-30-2007, 02:46 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815

Original Poster
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
[solved]

My glibc was borked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Illegal instruction (core dumped) giancarlo76 Linux - Desktop 0 12-26-2006 10:06 AM
aticonfig illegal instruction tamtam Slackware 14 09-22-2006 09:27 PM
MPlex - Illegal Instruction RySk8er30 Linux - Software 1 01-22-2006 01:50 PM
Mplayer Illegal Instruction error visualnoise Linux - Software 4 02-28-2005 04:49 PM
Illegal instruction madsjakob Linux - Software 0 10-28-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration