Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
issue building a cross development toolchain
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
voidengineer
n00b
n00b


Joined: 11 Feb 2005
Posts: 54

PostPosted: Thu Jun 23, 2005 9:58 pm    Post subject: issue building a cross development toolchain Reply with quote

I've been attempting to learn powerpc64 assembly language, and have found numerous recommendations that that state that I should use gcc -S to produce assembly code for study, along side my dead tree documentation studies. So naturally i'm not interested in using this toolchain to build packages etc, therefore I'm not to interested in having the perfect compiler (3.4.4, 3.3.6, ...) but rather one that produces assembly via the nifty new autovectorization code in gcc-4. I've also been told that gcc-4 is all in all a very good compiler for the powerpc arch. So after speaking with corsair in #gentoo-ppc64 I decided that crossdev would be a good choice to start with instead of crosstool (the script) or manually building the toolchain (yuck). So here is the command I've been running which results in an error on building gcc.

Code:

crossdev -v -b --binutils 2.16.1 --gcc 4.0.1_pre20050616 --libc 2.3.5 --kernel 2.6.8.1-r4 --target powerpc64-unknown-linux-gnu


I've tried both --kernel 2.6.8.1-r4 and 2.6.11-r2. I've not tried another version of gcc as of yet, because I run a PIII 600MHz, and I'd prefer to avoid building a 3.4 or 3.3 version of gcc if I can, as these builds take a lot of time. Here is a snip of the log files . . .

from cross-powerpc64-unknown-linux-gnu-gcc-stage1.log.gz
Code:

...
checking for unistd.h... (cached) no
checking for int... no
checking size of int... 0
checking for uintptr_t... no
checking for a 64-bit type... unsigned long
checking for pid_t... no
checking for library containing strerror... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make: *** [configure-target-libiberty] Error 1


and from cross-powerpc64-unknown-linux-gnu-info.log.gz
Code:

-----------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   ppc64
 * Target System:         powerpc64-unknown-linux-gnu
 * Stage:                 3 (C/C++ compiler)

 * binutils:              binutils-2.16.1
 * gcc:                   gcc-4.0.1_pre20050616
 * headers:               linux-headers-2.6.8.1-r4
 * libc:                  glibc-2.3.5

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/powerpc64-unknown-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/powerpc64-unknown-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _ 
Gentoo Base System version 1.6.12
Portage 2.0.51.19 (!/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.4.20040808-r1,glibc-2.3.4.20050125-r0, 2.6.11-cko5-ck9 i686)
=================================================================
System uname: 2.6.11-cko5-ck9 i686 Pentium III (Coppermine)
Python:              dev-lang/python-2.3.4-r1,dev-lang/python-2.3.5 [2.3.5 (#1, Jun  6 2005, 11:50:31)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1, 2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10, 2.15.92.0.2-r1, 2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4, 1.5.14, 1.5.16
virtual/os-headers:  2.6.8.1-r2, 2.6.8.1-r4
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CFLAGS="-O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/cursors/xorg-x11/default /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -mtune=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks fixpackages noinfo notitles sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://cs.ubishops.ca/pub/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://gentoo.mirrored.ca/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/cross/powerpc64-unknown-linux-gnu"
PORTAGE_TMPDIR="/var/tmp/cross/powerpc64-unknown-linux-gnu"
PORTDIR="/other/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts cdr crypt cscope cups curl directfb emboss encode fam flac foomaticdb fortran gd gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 jack java jpeg libg++ libwww mad maildir mikmod mmx mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png python quicktime readline ruby sdl silc slang smime spell sse ssl svga tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LINGUAS


The entirety of the gcc stage1 log can be viewed here . . .
http://www.nwinternet.com/~pfhorner/cross-powerpc64-unknown-linux-gnu-gcc-stage1.log.gz
NOTE: I have removed this file. I can still provide it if required.

I do appreciate any suggestions at all.

Stephen


Last edited by voidengineer on Sun Aug 07, 2005 8:43 am; edited 3 times in total
Back to top
View user's profile Send private message
appetitus
Apprentice
Apprentice


Joined: 28 Sep 2003
Posts: 210

PostPosted: Sat Aug 06, 2005 7:05 am    Post subject: Reply with quote

1- You decide to ignore crosstool, something in development and test for years and strike out on your own.

2- You run into brick wall. Flail around and post, still ignoring the well-beaten path.

3- You claim to be an engineer......
_________________
Being a Gentoo user means living in a house inhabited by a family of crazed carpenters. When you wake up, the house is different. Maybe there is a new turret, or some walls have moved, or perhaps someone has removed the floor under your bed.
Back to top
View user's profile Send private message
voidengineer
n00b
n00b


Joined: 11 Feb 2005
Posts: 54

PostPosted: Sun Aug 07, 2005 8:35 am    Post subject: ehh ? Did I miss something? Reply with quote

appetitus wrote:
1- You decide to ignore crosstool, something in development and test for years and strike out on your own.

2- You run into brick wall. Flail around and post, still ignoring the well-beaten path.

3- You claim to be an engineer......


On what knowledge to you claim to state that I've ignored crosstool? As a matter of fact I stated that I had considered (at that time) to use crossdev over crosstool. This choice was meant to keep things within the control of portage. As per the subject of crosstool, I am quite aware of it's developmental status; I have been actively lurking on the mailing list for quite a while. On the subject of brick walls I can assuredly state that there is not a brick within a good 100 metres of where I sit, so your statement is erroneous. This fact would also lead the the logical assumption that there was no flailing around on my part, and again no ignoring of the WELL_BEATEN_PATH. And I never claimed to be an engineer, although I'm a computer engineering, and mathematics major; however I did claim to be The Voidengineer.

Good, now I hope that clears things up for ya

Stephen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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