Jump to content


Photo

Strange compilation error on Ubuntu 11.10 x86_64

ENIGMA2 DM8000 Python-2.6.6

  • Please log in to reply
3 replies to this topic

#1 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 16 October 2011 - 12:43

I tried to compile the OpenPli 2.1 (Master) for DM8000 last weekend, just after I had updated my Ubuntu from 9.10 64bit to 11.10 64bit (with some restarts of course).

I got makefile-2.1.tar_3.gz from the ubuntu quick setup thread, did the fresh build, no subdirectories except a few month old source directory (but no subdirs inside).

The first build failed with one error that the Python-2.6.6 failed to build. See the [attachment=44227:log.do_install.bad.txt] file. The crucial part of it follows.
*** WARNING: renaming "_struct" since importing it failed: build/lib.linux-x86_64-2.6/_struct.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_ctypes_test" since importing it failed: build/lib.linux-x86_64-2.6/_ctypes_test.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_weakref" since importing it failed: build/lib.linux-x86_64-2.6/_weakref.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "array" since importing it failed: build/lib.linux-x86_64-2.6/array.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "cmath" since importing it failed: build/lib.linux-x86_64-2.6/cmath.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "math" since importing it failed: build/lib.linux-x86_64-2.6/math.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "strop" since importing it failed: build/lib.linux-x86_64-2.6/strop.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "time" since importing it failed: build/lib.linux-x86_64-2.6/time.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "datetime" since importing it failed: build/lib.linux-x86_64-2.6/datetime.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "itertools" since importing it failed: build/lib.linux-x86_64-2.6/itertools.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "future_builtins" since importing it failed: build/lib.linux-x86_64-2.6/future_builtins.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_random" since importing it failed: build/lib.linux-x86_64-2.6/_random.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_collections" since importing it failed: build/lib.linux-x86_64-2.6/_collections.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_bisect" since importing it failed: build/lib.linux-x86_64-2.6/_bisect.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_heapq" since importing it failed: build/lib.linux-x86_64-2.6/_heapq.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "operator" since importing it failed: build/lib.linux-x86_64-2.6/operator.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_fileio" since importing it failed: build/lib.linux-x86_64-2.6/_fileio.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_bytesio" since importing it failed: build/lib.linux-x86_64-2.6/_bytesio.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_functools" since importing it failed: build/lib.linux-x86_64-2.6/_functools.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_json" since importing it failed: build/lib.linux-x86_64-2.6/_json.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_testcapi" since importing it failed: build/lib.linux-x86_64-2.6/_testcapi.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_hotshot" since importing it failed: build/lib.linux-x86_64-2.6/_hotshot.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_lsprof" since importing it failed: build/lib.linux-x86_64-2.6/_lsprof.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "unicodedata" since importing it failed: build/lib.linux-x86_64-2.6/unicodedata.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_locale" since importing it failed: build/lib.linux-x86_64-2.6/_locale.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "fcntl" since importing it failed: build/lib.linux-x86_64-2.6/fcntl.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "grp" since importing it failed: build/lib.linux-x86_64-2.6/grp.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "spwd" since importing it failed: build/lib.linux-x86_64-2.6/spwd.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "select" since importing it failed: build/lib.linux-x86_64-2.6/select.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "parser" since importing it failed: build/lib.linux-x86_64-2.6/parser.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "cStringIO" since importing it failed: build/lib.linux-x86_64-2.6/cStringIO.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "cPickle" since importing it failed: build/lib.linux-x86_64-2.6/cPickle.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "mmap" since importing it failed: build/lib.linux-x86_64-2.6/mmap.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "syslog" since importing it failed: build/lib.linux-x86_64-2.6/syslog.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "audioop" since importing it failed: build/lib.linux-x86_64-2.6/audioop.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "readline" since importing it failed: build/lib.linux-x86_64-2.6/readline.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "crypt" since importing it failed: build/lib.linux-x86_64-2.6/crypt.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_csv" since importing it failed: build/lib.linux-x86_64-2.6/_csv.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_socket" since importing it failed: build/lib.linux-x86_64-2.6/_socket.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_ssl" since importing it failed: build/lib.linux-x86_64-2.6/_ssl.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_hashlib" since importing it failed: build/lib.linux-x86_64-2.6/_hashlib.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_sqlite3" since importing it failed: build/lib.linux-x86_64-2.6/_sqlite3.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "gdbm" since importing it failed: build/lib.linux-x86_64-2.6/gdbm.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "termios" since importing it failed: build/lib.linux-x86_64-2.6/termios.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "resource" since importing it failed: build/lib.linux-x86_64-2.6/resource.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.6/nis.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_curses" since importing it failed: build/lib.linux-x86_64-2.6/_curses.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_curses_panel" since importing it failed: build/lib.linux-x86_64-2.6/_curses_panel.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "zlib" since importing it failed: build/lib.linux-x86_64-2.6/zlib.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "binascii" since importing it failed: build/lib.linux-x86_64-2.6/binascii.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "bz2" since importing it failed: build/lib.linux-x86_64-2.6/bz2.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "pyexpat" since importing it failed: build/lib.linux-x86_64-2.6/pyexpat.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_elementtree" since importing it failed: build/lib.linux-x86_64-2.6/_elementtree.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_multibytecodec" since importing it failed: build/lib.linux-x86_64-2.6/_multibytecodec.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_kr" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_kr.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_jp" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_jp.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_cn" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_cn.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_tw" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_tw.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_hk" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_hk.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_codecs_iso2022" since importing it failed: build/lib.linux-x86_64-2.6/_codecs_iso2022.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_multiprocessing" since importing it failed: build/lib.linux-x86_64-2.6/_multiprocessing.so: wrong ELF class: ELFCLASS32
*** WARNING: renaming "_ctypes" since importing it failed: build/lib.linux-x86_64-2.6/_ctypes.so: wrong ELF class: ELFCLASS32
Failed to find the necessary bits to build these modules:
_bsddb _tkinter bsddb185
dbm dl imageop
linuxaudiodev ossaudiodev sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
 
Failed to build these modules:
_bisect _bytesio _codecs_cn
_codecs_hk _codecs_iso2022 _codecs_jp
_codecs_kr _codecs_tw _collections
_csv _ctypes _ctypes_test
_curses _curses_panel _elementtree
_fileio _functools _hashlib
_heapq _hotshot _json
_locale _lsprof _multibytecodec
_multiprocessing _random _socket
_sqlite3 _ssl _struct
_testcapi _weakref array
audioop binascii bz2
cmath cPickle crypt
cStringIO datetime fcntl
future_builtins gdbm grp
itertools math mmap
nis operator parser
pyexpat readline resource
select spwd strop
syslog termios time
unicodedata zlib
mkdir ./Lib/plat-linux3
cp ./Lib/plat-generic/regen ./Lib/plat-linux3/regen
export PATH; PATH="`pwd`:$PATH"; \
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
export EXE; EXE=""; \
cd ./Lib/plat-linux3; ./regen
python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /usr/include/netinet/in.h
./regen: line 3: /home/maciek/openpli/build-dm8000/tmp/work/mipsel-oe-linux/python-2.6.6-ml12.3/Python-2.6.6/python: cannot execute binary file
make: *** [Lib/plat-linux3] Error 126
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1

Then I built the image again. I got no error that time, the image build succeeded. But I checked the new log file and found that the same warnings and info about modules that had failed to build. See the [attachment=44228:log.do_install.good.txt] file. Is this image OK with all those errors ? I am quite new to linux based development or crosscompiling, please forgive me if there is an obvious answer / solution to this issue.

Regards.

Re: Strange compilation error on Ubuntu 11.10 x86_64 #2 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 16 October 2011 - 18:16

This is a 32/64 bits problem OR the wrong tools (host vs. oe) are used.

Please check your path or unset the path and run env.source before building.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Strange compilation error on Ubuntu 11.10 x86_64 #3 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 31 October 2011 - 12:34

Discussion moved to http://openpli.org/f...post__p__227509

Re: Strange compilation error on Ubuntu 11.10 x86_64 #4 goldsheep2012

  • Member
  • 1 posts

0
Neutral

Posted 16 April 2012 - 23:06

this is due to the host python version different from your oe version.
you can change /usr/bin/python to python2.6. the problem was solved.

rm -f /usr/bin/python
ln -s /usr/bin/python2.6 /usr/bin/python

then recompile your python 2.6.6.bb



Also tagged with one or more of these keywords: ENIGMA2, DM8000, Python-2.6.6

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users