Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev arm-unknown-linux-gnu failure
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
Sleep.Walker
n00b
n00b


Joined: 14 Apr 2006
Posts: 2

PostPosted: Fri Apr 14, 2006 9:20 pm    Post subject: crossdev arm-unknown-linux-gnu failure Reply with quote

Greetings!

I've got problems with crossdev. I tried to bulid C++ compiler for arm architecture. I looked for how-tos about this and I found none actual...

I tried two workarounds described here:
http://forums.gentoo.org/viewtopic-t-384664-highlight-crossdev+arm.html

It fails on glibc (it fails without workarounds on stage1). I can't recognize what I'm doing wrong...

I called:
Code:
crossdev --target arm


info:
Code:

----------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         arm-unknown-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/arm-unknown-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/arm-unknown-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _
Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-suspend2-r8gentoo4-T3 i686)
=================================================================
System uname: 2.6.15-suspend2-r8gentoo4-T3 i686 Intel(R) Celeron(R) CPU 2.53GHz
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/"
LANG="cs_CZ"
LC_ALL="cs_CZ"
LINGUAS="cs en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/cross/arm-unknown-linux-gnu"
PORTAGE_TMPDIR="/var/tmp/cross/arm-unknown-linux-gnu"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi afs alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bonobo bzip2 cdparanoia cdr cli crypt ctype cups curl dba dga dio dri dvd dvdread eds emboss encode esd ethereal exif expat fam fastbuild fbcon ffmpeg flac foomaticdb force-cgi-redirect fortran ftp gd gdbm ggi gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal icq idn imagemagick imap imlib ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal lcms libg++ libwww lua mad matroska memlimit mikmod mime mmx mng motif mozilla mp3 mpeg msn ncurses nhc98 nls nptl ogg openal opengl oscar oss pam pcre pda pdflib perl php png posix pppd python qt quicktime readline recode samba sdl session simplexml slang soap sockets speex spell spl sse sse2 ssl svga symlink tcltk tcpd test tetex threads tiff tokenizer truetype truetype-fonts trutype type1-fonts udev usb vcd videos vorbis win32codecs wmf wxwindows xml xml2 xmms xpm xsl xv xvid zlib linguas_cs linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS


glibc.log
Code:

checking installed Linux kernel header files... TOO OLD!
configure: error: GNU libc requires kernel header files from
Linux 2.0.10 or later to be installed before configuring.
The kernel header files are found usually in /usr/include/asm and
/usr/include/linux; make sure these directories use files from
Linux 2.0.10 or later.  This check uses <linux/version.h>, so
make sure that file was built correctly when installing the kernel header
files.  To use kernel headers not from /usr/include/linux, use the
configure option --with-headers.


Any ideas or suggestions?

Thanks...
Back to top
View user's profile Send private message
felicehome
Apprentice
Apprentice


Joined: 30 Sep 2004
Posts: 217

PostPosted: Fri Apr 14, 2006 10:41 pm    Post subject: Reply with quote

I've sent you a very good tutorial on that as pdf via email. I couldn't find out where I first downloaded it. So I can't send you a link.

cheers felice
Back to top
View user's profile Send private message
Sleep.Walker
n00b
n00b


Joined: 14 Apr 2006
Posts: 2

PostPosted: Sat Apr 15, 2006 12:21 pm    Post subject: Reply with quote

Thanks for nice document - now I'm sure I'm doing it right. So maybe a bug?
I will try it with uclibc.


------

I were not succesfull, I tried many things and I finally broke my own GCC. I'm going to make big coffee and try to repair...
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