From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by ozlabs.org (Postfix) with ESMTP id 4846ADE075 for ; Wed, 9 Jan 2008 08:39:09 +1100 (EST) Received: by fg-out-1718.google.com with SMTP id 16so3922133fgg.39 for ; Tue, 08 Jan 2008 13:39:08 -0800 (PST) Message-ID: <464e946e0801081339o2585362ci5b209154a8526089@mail.gmail.com> Date: Tue, 8 Jan 2008 15:39:07 -0600 From: "Jeff Parent" To: linuxppc-embedded@ozlabs.org Subject: PowerPC Cross Compiler's Arch doesnt match MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19757_29496859.1199828348011" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_19757_29496859.1199828348011 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm building a linux distro for work, that runs on embedded systems with either and ARM 9 or a PowerPC 603. I've had great luck building a cross compiler w/ crosstools and using them in the compiler jail created by Scratchbox. Now I am working on porting all my work to the PowerPC. When I build the cross compilers I have selected GCC-4.0.1 and GLIBC-2.3.5 for both setups. I create my jail in Scratchbox for the PowerPC and try compiling any of the GNU applications and when running the configure script I get: <./configure for sed-4.1.5> checking build system type... config/config.guess: unable to guess system type This script, last modified 2008-01-08, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess and http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub If the version you run (./config.guess.old) is already up to date, please send the following data and any information you think might be pertinent to in order to provide the needed information to handle your system. config.guess timestamp = 2008-01-08 uname -m = powerpc uname -r = 2.6.18-5-686 uname -s = Linux uname -v = #1 SMP Fri Jun 1 00:47:00 UTC 2007 /usr/bin/uname -p = /bin/uname -X = hostinfo = /bin/universe = /usr/bin/arch -k = powerpc /bin/arch = powerpc /usr/bin/oslevel = /usr/convex/getsysinfo = UNAME_MACHINE = powerpc UNAME_RELEASE = 2.6.18-5-686 UNAME_SYSTEM = Linux UNAME_VERSION = #1 SMP Fri Jun 1 00:47:00 UTC 2007 configure: error: cannot guess build type; you must specify one [sbox-PPC: ~/devel/packages/sed/sed-4.1.5] > So I looked into configure.guess and I find: UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; However I do not see a case where the UNAME_MACHINE is set to powerpc, other than for the Machten. Is there something I did wrong when creating my cross-compiler? -- ------------------------------------------------------------------ Jeff Parent Computer Engineer ------=_Part_19757_29496859.1199828348011 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm building a linux distro for work, that runs on embedded systems with either and ARM 9 or a PowerPC 603.  I've had great luck building a cross compiler w/ crosstools and using them in the compiler jail created by Scratchbox.  Now I am working on porting all my work to the PowerPC.  When I build the cross compilers I have selected GCC-4.0.1 and GLIBC-2.3.5 for both setups.  I create my jail in Scratchbox for the PowerPC and try compiling any of the GNU applications and when running the configure script I get:

<./configure for sed-4.1.5>
checking build system type... config/config.guess: unable to guess system type

This script, last modified 2008-01-08, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

 
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (./config.guess.old) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2008-01-08

uname -m = powerpc
uname -r = 2.6.18-5-686
uname -s = Linux
uname -v = #1 SMP Fri Jun 1 00:47:00 UTC 2007

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       = powerpc
/bin/arch              = powerpc
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = powerpc
UNAME_RELEASE = 2.6.18-5-686
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP Fri Jun 1 00:47:00 UTC 2007
configure: error: cannot guess build type; you must specify one
[sbox-PPC: ~/devel/packages/sed/sed-4.1.5] >


So I looked into configure.guess and I find:

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
<A bunch of Case Statements>
ppc:Linux:*:*)
echo powerpc-unknown-linux-gnu
exit ;;
<More Case Statements.>
However I do not see a case where the UNAME_MACHINE is set to powerpc, other than for the Machten.  Is there something I did wrong when creating my cross-compiler?


--
------------------------------------------------------------------
Jeff Parent
Computer Engineer ------=_Part_19757_29496859.1199828348011--