Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev mipsel-r3000-linux-uclibc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Fri Jun 10, 2011 10:56 am    Post subject: crossdev mipsel-r3000-linux-uclibc Reply with quote

I'm trying to cross compile python but with no success yet.
Code:
#ls -l /usr/mipsel-r3000-linux-uclibc/etc/make.profile
lrwxrwxrwx 1 root root 33 Jun 10 09:33 /usr/mipsel-r3000-linux-uclibc/etc/make.profile -> /usr/portage/profiles/uclibc/mips

# grep OVERLAY /etc/make.conf
PORTDIR_OVERLAY="/usr/local/portage"

#ls -l
/usr/local/portage/cross-mipsel-r3000-linux-uclibc
lrwxrwxrwx 1 root root 31 Jun  7 10:36 binutils -> /usr/portage/sys-devel/binutils
lrwxrwxrwx 1 root root 26 Jun  7 10:36 gcc -> /usr/portage/sys-devel/gcc
lrwxrwxrwx 1 root root 26 Jun  7 10:36 gdb -> /usr/portage/sys-devel/gdb
lrwxrwxrwx 1 root root 29 Jun  7 10:36 insight -> /usr/portage/dev-util/insight
lrwxrwxrwx 1 root root 37 Jun  7 10:36 linux-headers -> /usr/portage/sys-kernel/linux-headers
lrwxrwxrwx 1 root root 28 Jun  7 10:36 uclibc -> /usr/portage/sys-libs/uclibc

# cat /usr/mipsel-r3000-linux-uclibc/etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -mips32 -pipe -Wa"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="mipsel-r3000-linux-uclibc"
#ARCH="mipsel"
#CROSS_COMPILE="mipsel-r3000-linux-uclibc-"
EMERGE_DEFAULT_OPTS="--nospinner"
AUTOCLEAN="yes"
MAKEOPTS="-j3"
USE="-ipv6 -nls -X"


I masked the python packages 2.8 and above

Now the problem I get when I compile 2.7.1-r1

Code:

# NOCOLOR="y" MAKEOPTS="-j1" CFLAGS="-O2 -mips32 -pipe" CXXFLAGS="${CFLAGS}" USE="-X -nls -xml -ipv6" mipsel-r3000-linux-uclibc-emerge python

 * Package:    dev-lang/python-2.7.1-r1
 * Repository: gentoo
 * Maintainer: python@gentoo.org
 * USE:        elibc_uclibc kernel_linux mips ncurses readline ssl threads userland_GNU wide-unicode
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking Python-2.7.1.tar.bz2 to /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work
>>> Unpacking python-gentoo-patches-2.7.1-r1.tar.bz2 to /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work
>>> Source unpacked in /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work
>>> Preparing source in /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1 ...
 * Applying various patches (bugfixes/updates) ...
 *   01_all_static_library_location.patch ...
 [ ok ]
 *   02_all_disable_modules_and_ssl.patch ...
 [ ok ]
 *   03_all_add_portage_search_path.patch ...
 [ ok ]
 *   04_all_libdir.patch ...
 [ ok ]
 *   05_all_verbose_building_of_extensions.patch ...
 [ ok ]
 *   06_all_non-zero_exit_status_on_failure.patch ...
 [ ok ]
 *   07_all_loadable_sqlite_extensions.patch ...
 [ ok ]
 *   21_all_distutils_c++.patch ...
 [ ok ]
 *   22_all_turkish_locale.patch ...
 [ ok ]
 *   23_all_arm_OABI.patch ...
 [ ok ]
 *   24_all_xmlrpclib.patch ...
 [ ok ]
 *   25_all_unicodedata.patch ...
 [ ok ]
 *   41_all_crosscompile.patch ...
 [ ok ]
 *   61_all_process_data.patch ...
 [ ok ]
 * Done with patching
 * Running eautoreconf in '/usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1' ...
 * Running aclocal ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
 * Running autoheader ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1 ...
 * You have configured Python without XML support.
 * This is NOT a recommended configuration as you
 * may face problems parsing any XML documents.
 * Disabled modules:  dbm _bsddb gdbm _sqlite3 _tkinter _elementtree pyexpat
.
.
.

configure: creating ./config.status
config.status: creating Makefile.pre
config.status: creating Modules/Setup.config
config.status: creating Misc/python.pc
config.status: creating Modules/ld_so_aix
config.status: creating pyconfig.h
creating Modules/Setup
creating Modules/Setup.local
creating Makefile
>>> Source configured.
>>> Compiling source in /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1 ...
make -j1 EPYTHON=python2
mipsel-r3000-linux-uclibc-gcc -c -fno-strict-aliasing -O2 -mips32 -pipe -DNDEBUG   -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -o Modules/python.o ./Modules/python.c
In file included from Include/Python.h:58,
                 from ./Modules/python.c:3:
Include/pyport.h:243:13: #error "This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG"
make: *** [Modules/python.o] Error 1
emake failed
 * ERROR: dev-lang/python-2.7.1-r1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  56:  Called src_compile
 *   environment, line 5476:  Called die
 * The specific snippet of code:
 *       emake EPYTHON="python${PV%%.*}" || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/python-2.7.1-r1',
 * the complete build log and the output of 'emerge -pqv =dev-lang/python-2.7.1-r1'.
 * The complete build log is located at '/usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/temp/environment'.
 * S: '/usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1'


I require assistance to complete the cross compilation for mipsel-r3000-linux-uclibc.
Back to top
View user's profile Send private message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Fri Jun 10, 2011 12:19 pm    Post subject: Reply with quote

http://www.gossamer-threads.com/lists/python/bugs/887292

I tried the suggestion by ctrl+z the job and inserting a config.cache in the work directory
Code:
# cat /usr/mipsel-r3000-linux-uclibc/tmp/portage/dev-lang/python-2.7.1-r1/work/Python-2.7.1/config.cache
: ${ac_cv_have_long_long_format='yes'}

I get the same error :(
Back to top
View user's profile Send private message
mattst88
Developer
Developer


Joined: 28 Oct 2004
Posts: 422

PostPosted: Thu Jun 23, 2011 3:54 am    Post subject: Reply with quote

Are you seriously installing this package on an R3000 system? Or is it just some 32-bit embedded MIPS core?

Either way, what kind of system is this?
_________________
My Wiki page
Back to top
View user's profile Send private message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Thu Jun 23, 2011 12:43 pm    Post subject: Reply with quote

from your response I probably got it wrong.

it runs a mipsel processor media player I take it my vendor name should have been realtek or rtd1283 (which is the cpu model).

I can post the cpuinfo and file information later if needed. I got "around" this problem my installing embedded-cross overlay and building python-2.6.4 successfully.
Back to top
View user's profile Send private message
chub
n00b
n00b


Joined: 21 Feb 2008
Posts: 23
Location: Cape Town, South Africa

PostPosted: Fri Jun 24, 2011 7:44 am    Post subject: Reply with quote

Code:
# uname -a
Linux xtreamer 2.6.12.6-VENUS #74 Fri Jan 21 10:23:19 KST 2011 mips unknown

# cat /proc/cpuinfo
system type             : Realtek Venus
processor               : 0
cpu model               : MIPS 24K V7.8
BogoMIPS                : 269.51
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes
ASEs implemented        : mips16
VCED exceptions         : not available
VCEI exceptions         : not available

Code:
$ file DvdPlayer
DvdPlayer: ELF 32-bit LSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), statically linked, stripped

$ readelf -h DvdPlayer
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x400140
  Start of program headers:          52 (bytes into file)
  Start of section headers:          16971852 (bytes into file)
  Flags:                             0x70001007, noreorder, pic, cpic, o32, mips32r2
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         3
  Size of section headers:           40 (bytes)
  Number of section headers:         22
  Section header string table index: 21
Back to top
View user's profile Send private message
manaru
n00b
n00b


Joined: 07 Jan 2008
Posts: 26

PostPosted: Thu Nov 24, 2011 10:40 pm    Post subject: Reply with quote

Hi,

Its
https://bugs.gentoo.org/show_bug.cgi?id=362945

Solution:

Code:
# cat /usr/i586-alix-linux-gnu/etc/portage/env/dev-lang/python
export ac_cv_have_long_long_format=yes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum