public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
From: Ben Peters <powderskier@gmail.com>
To: crossgcc@sourceware.org
Subject: Problem building ARM Linux cross toolchain on OS X
Date: Thu, 17 Nov 2011 00:25:00 -0000	[thread overview]
Message-ID: <CAPigshA-L1hfJG=jz74Az=ZgXHmBqm-2VX4xewnz3E-vS0E=3g@mail.gmail.com> (raw)

Hi all,
I'm attempting to build a cross toolchain for a Debian embedded ARM
chip on OS X. I've tried several configurations, and gotten close, but
I'm having trouble with the last step. I found with newer versions of
GCC (4.4.x), the PPL build was failing due to some problem with shared
libraries. I was able to get PPL to build by adding the flag
--enable-interfaces='c,c++', but then the initial GCC compiler failed
with some kind of library issue. I decided to try building with GCC
4.3.5 instead to see if that would fix the issue, since some digging
led me to believe it was related to GCC > 4.4.

Anyway, with 4.3.5 I was able to get all the way to the final compiler
stage. At this point, I get the following error (from build.log):
[ALL  ]    ld: duplicate symbol _insert_decl_map in
libbackend.a(tree-inline.o) and tree-inline.o
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[3]: *** [cc1plus-dummy] Error 1
[ALL  ]    make[3]: *** Waiting for unfinished jobs....
[ERROR]    make[2]: *** [all-gcc] Error 2
[ERROR]    make[1]: *** [all] Error 2
[ERROR]    Build failed in step 'Installing final compiler'
[ERROR]    Error happened in
'/Volumes/DiskImage/crosstool-ng-1.9.3/scripts/functions' in function
'CT_DoExecLog' (line unknown, sorry)
[ERROR]          called from
'/Volumes/DiskImage/crosstool-ng-1.9.3/scripts/build/cc/gcc.sh' at
line # 470 in function 'do_cc'
[ERROR]          called from
'/Volumes/DiskImage/crosstool-ng-1.9.3/scripts/crosstool-NG.sh' at
line # 597 in function 'main'

I've done a good amount of internet searching, and as far as I can
tell, it's the same basic issue as this GCC bug report:
http://gcc.gnu.org/ml/gcc-patches/2009-08/msg01583.html. Basically
something (ranlib?) is inserting is putting common symbols in these
two library tables.
Unfortunately, I'm still a little new to this stuff, and I have no
idea how to fix this. Can anyone go off this information and advise me
how to try to fix it?
Thanks!

--
For unsubscribe information see http://sourceware.org/lists.html#faq

             reply	other threads:[~2011-11-17  0:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17  0:25 Ben Peters [this message]
2011-11-17  7:10 ` Titus von Boxberg
2011-11-17 15:19   ` Ben Peters
2011-11-18 11:28     ` Titus von Boxberg

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='CAPigshA-L1hfJG=jz74Az=ZgXHmBqm-2VX4xewnz3E-vS0E=3g@mail.gmail.com' \
    --to=powderskier@gmail.com \
    --cc=crossgcc@sourceware.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).