Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host
Date: Sat, 5 Jun 2010 22:40:19 +0200	[thread overview]
Message-ID: <20100605204019.GA1403@jama> (raw)

FYI:

If you run into issue
ar: can't set BFD default target to `x86_64-pc-linux-gnu': Invalid bfd target

Like I did in:
http://tinderbox.openembedded.net/packages/601631/

Then here is what I used as workarround/hack:
enabled multitarget USE

unmasked and added keywords for 2.20.51.0.8 version

added --enable-plugins --enable-threads to eclass (as noted in changelog
http://gcc.gnu.org/ml/gcc/2010-05/msg00632.html)

jama portage # diff -uNr eclass/toolchain-binutils.eclass
~/toolchain-binutils.eclass 
--- eclass/toolchain-binutils.eclass    2010-04-20 01:08:10.000000000
+0200
+++ /root/toolchain-binutils.eclass     2010-06-05 22:36:36.000000000
+0200
@@ -223,6 +223,8 @@
                --includedir=${INCPATH} \
                --enable-64-bit-bfd \
                --enable-shared \
+               --enable-plugins \
+               --enable-threads \
                --disable-werror \
                ${myconf} ${EXTRA_ECONF}"
        echo ./configure ${myconf}

applied small patch to binutils
diff -uNr binutils-2.20.51.0.8.orig//bfd/elf32-tic6x.c binutils-2.20.51.0.8/bfd/elf32-tic6x.c
--- binutils-2.20.51.0.8.orig//bfd/elf32-tic6x.c        2010-04-13 15:26:40.000000000 +0200
+++ binutils-2.20.51.0.8/bfd/elf32-tic6x.c      2010-06-05 21:35:36.000000000 +0200
@@ -787,11 +787,12 @@
       else
        {
          bfd_boolean warned;
+         bfd_boolean ignored = FALSE;
 
          RELOC_FOR_GLOBAL_SYMBOL (info, input_bfd, input_section, rel,
                                   r_symndx, symtab_hdr, sym_hashes,
                                   h, sec, relocation,
-                                  unresolved_reloc, warned);
+                                  unresolved_reloc, warned, ignored);
        }
 
       if (sec != NULL && elf_discarded_section (sec))

and now binutils-cross compiled fine for me..

Regards,
-- 
Jansa 'JaMa' Martin     jabber: Martin.Jansa@gmail.com



             reply	other threads:[~2010-06-05 20:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-05 20:40 Martin Jansa [this message]
2010-06-07 21:14 ` Latest binutils-cross-2.20.1-r10.0 build issue with binutils-2.20.1 on gentoo host Martin Jansa
2010-06-08 17:20   ` Dmitry Artamonow
2010-06-08 18:13     ` Khem Raj
2010-06-08 20:05       ` Dmitry Artamonow
2010-06-08 21:15         ` Khem Raj
2010-06-29 21:59           ` Martin Jansa

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=20100605204019.GA1403@jama \
    --to=martin.jansa@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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