public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joakim Tjernlund <joakim.tjernlund@transmode.se>
To: gentoo-embedded@lists.gentoo.org
Subject: [gentoo-embedded] crossdev-20100620 uses wrong gcc
Date: Thu, 23 Sep 2010 16:37:47 +0200	[thread overview]
Message-ID: <OFC962C986.500F58B7-ONC12577A7.004F830C-C12577A7.00505D60@transmode.se> (raw)


Trying to add support for e300c2 in glibc/ports I got another error.
when crossdev is building cross-glibc-headers it uses the hosts gcc
instead of the cross compiler and glibc configure fails:

configure:7498: checking for compiler option for CPU variant
configure:7506: gcc -march=e300c2 -xc /dev/null -S -o /dev/null
/dev/null:1: error: bad value (e300c2) for -march= switch
/dev/null:1: error: bad value (e300c2) for -mtune= switch
configure:7509: $? = 1
configure:7506: gcc -mcpu=e300c2 -xc /dev/null -S -o /dev/null
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
/dev/null:1: error: bad value (e300c2) for -mtune= switch
configure:7509: $? = 1
configure:7516: result: no
configure:7519: error: gcc does not support e300c2


Here is the configure log snippet when it finds the hosts gcc:

configure:2028: checking build system type
configure:2046: result: i686-pc-linux-gnu
configure:2068: checking host system type
configure:2083: result: powerpc-e300c2_softfloat-linux-gnu
configure:2114: checking for powerpc-e300c2_softfloat-linux-gnu-gcc
configure:2141: result: gcc
configure:2413: checking for C compiler version
configure:2421: gcc --version >&5
gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.




             reply	other threads:[~2010-09-23 15:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 14:37 Joakim Tjernlund [this message]
2010-09-23 15:27 ` [gentoo-embedded] crossdev-20100620 uses wrong gcc Peter Stuge
2010-09-23 17:12   ` Joakim Tjernlund
2010-09-24  2:33 ` Mike Frysinger
2010-09-24  8:55   ` Joakim Tjernlund
2010-09-24 14:30     ` Mike Frysinger
2010-09-24 15:48       ` Joakim Tjernlund
2010-09-24 16:58         ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFC962C986.500F58B7-ONC12577A7.004F830C-C12577A7.00505D60@transmode.se \
    --to=joakim.tjernlund@transmode.se \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox