public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Cyd Haselton <chaselton@gmail.com>
To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
Subject: Re: gcc-help Digest 27 Sep 2014 11:46:57 -0000 Issue 4675
Date: Sat, 27 Sep 2014 22:05:00 -0000	[thread overview]
Message-ID: <CAHu5PrZ8bcDwe+LOZyyBdYtDXPPccar+B-Gvx-iX3SrusUZi3A@mail.gmail.com> (raw)
In-Reply-To: <CAHu5PrYwqgJJWMqXFhaba4zBPe0wkGM6YfufaApve7wo7mZCKw@mail.gmail.com>

On Sat, Sep 27, 2014 at 5:03 PM, Cyd Haselton <chaselton@gmail.com> wrote:
> On Sat, Sep 27, 2014 at 6:46 AM, <gcc-help-digest-help@gcc.gnu.org> wrote:
>>
>>
>> gcc-help Digest 27 Sep 2014 11:46:57 -0000 Issue 4675
>>
>> Topics (messages 55889 through 55890):
>>
>> GCC 4.7 on Android G++ Compiler Build Fail "This Linker Not Config To Use Sysroots"
>>         55889 by: Cyd Haselton
>>         55890 by: Brian Drummond
>>
>> Administrivia:
>>
>> To subscribe to the digest, e-mail:
>>         gcc-help-digest-subscribe@gcc.gnu.org
>>
>> To unsubscribe from the digest, e-mail:
>>         gcc-help-digest-unsubscribe@gcc.gnu.org
>>
>> To post to the list, e-mail:
>>         gcc-help@gcc.gnu.org
>>
>>
>> ----------------------------------------------------------------------
>>
>>
>> ---------- Forwarded message ----------
>> From: Cyd Haselton <chaselton@gmail.com>
>> To: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
>> Cc:
>> Date: Sat, 27 Sep 2014 06:00:43 -0500
>> Subject: GCC 4.7 on Android G++ Compiler Build Fail "This Linker Not Config To Use Sysroots"
>> Background:
>> I'm using GCC 4.7.0 (without a c++ compiler)  on an Android device in
>> an emulated Linux environment (KBOX) to build a C++ compiler.  My goal
>> is to build a 4.7.0 C++ compiler, then build a 4.8.0 C++ compiler.
>>
>> No matter which config flags I use, the build keeps failing with
>> "/usr/local/bin/ld" this linker is not configured touse sysroots"
>> I've checked the specs for the ld at that location, and it does
>> support sysroot.
>>
>> What am I doing wrong?
>>
>> Please let me know what logs, env vars, etc. I should send to aid in
>> troubleshooting...
>>
>> Thanks,
>> Cyd
>>
>>
>> ---------- Forwarded message ----------
>> From: Brian Drummond <brian@shapes.demon.co.uk>
>> To: gcc-help@gcc.gnu.org
>> Cc:
>> Date: Sat, 27 Sep 2014 12:46:49 +0100
>> Subject: Re: GCC 4.7 on Android G++ Compiler Build Fail "This Linker Not Config To Use Sysroots"
>> On Sat, 2014-09-27 at 06:00 -0500, Cyd Haselton wrote:
>> > Background:
>> > I'm using GCC 4.7.0 (without a c++ compiler)  on an Android device in
>> > an emulated Linux environment (KBOX) to build a C++ compiler.  My goal
>> > is to build a 4.7.0 C++ compiler, then build a 4.8.0 C++ compiler.
>> >
>> > No matter which config flags I use, the build keeps failing with
>> > "/usr/local/bin/ld" this linker is not configured touse sysroots"
>> > I've checked the specs for the ld at that location, and it does
>> > support sysroot.
>> >
>> > What am I doing wrong?
>> >
>> > Please let me know what logs, env vars, etc. I should send to aid in
>> > troubleshooting...
>> >
>> First question would be : are you using those config flags to build
>> binutils (to support sysroots) and install it, then build gcc?
>>
>> That's not entirely clear from the question
>>
>> - Brian
>>
>>
>
Apologies.  I'm using the config flags to build GCC with mpc/mpfr/gmp.
I am not building binutils.
I am using the installed GCC's sysroot in the --sysroot option.

The config flags for the current run (which just failed) are:

 ../gcc-4.7.0/configure --prefix=/usr/gcc --host=arm-linux-androideabi
--build=arm-linux-androideabi --target=arm-linux-androideabi
--enable-ppl=no --enable-ld=no --enable-libquadmath=no
--enable-libada=no --enable-cloog=no --disable-bootstrap
--enable-multilib=no --enable-multiarch=no --enable-nls=no
--disable-dependency-tracking --enable-languages=c,c++
--with-sysroot=/usr/local/sysroot --with-ld=/usr/local/bin/ld
--with-build-time-tools=/usr/local/bin --enable-languages=c,c++
"LIBS=-lc -ldl -lm -lgcc -lstdc++" "CFLAGS=-marm -mandroid -mbionic"
"CXXFLAGS=-mandroid -mbionic" "CPPFLAGS=-mandroid -mbionic"
LDFLAGS=-Wl,--dynamic-linker=/system/bin/linker "LIB_PATHS=/lib
/usr/lib" "SHELL=/system/bin/sh" "CONFIG_SHELL=/system/bin/sh"

Do I need to download the source for binutils and build it as well?

           reply	other threads:[~2014-09-27 22:05 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAHu5PrYwqgJJWMqXFhaba4zBPe0wkGM6YfufaApve7wo7mZCKw@mail.gmail.com>]

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=CAHu5PrZ8bcDwe+LOZyyBdYtDXPPccar+B-Gvx-iX3SrusUZi3A@mail.gmail.com \
    --to=chaselton@gmail.com \
    --cc=gcc-help@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).