public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Problem building ARM Linux cross toolchain on OS X
@ 2011-11-17  0:25 Ben Peters
  2011-11-17  7:10 ` Titus von Boxberg
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Peters @ 2011-11-17  0:25 UTC (permalink / raw)
  To: crossgcc

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building ARM Linux cross toolchain on OS X
  2011-11-17  0:25 Problem building ARM Linux cross toolchain on OS X Ben Peters
@ 2011-11-17  7:10 ` Titus von Boxberg
  2011-11-17 15:19   ` Ben Peters
  0 siblings, 1 reply; 4+ messages in thread
From: Titus von Boxberg @ 2011-11-17  7:10 UTC (permalink / raw)
  To: Ben Peters; +Cc: crossgcc

Am 17.11.2011 um 01:24 schrieb Ben Peters:
> 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


please be more specific:
- what is your osx version
- what is your xcode version
- what version of ct-ng are you using
- specify the cmd line for ct-ng configuration
- what is your intended host triple

regards
titus


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building ARM Linux cross toolchain on OS X
  2011-11-17  7:10 ` Titus von Boxberg
@ 2011-11-17 15:19   ` Ben Peters
  2011-11-18 11:28     ` Titus von Boxberg
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Peters @ 2011-11-17 15:19 UTC (permalink / raw)
  To: Titus von Boxberg; +Cc: crossgcc

Sorry, here are all the version numbers:
OS X 10.6.8
XCode 3.2.6
CT-ng 1.9.3

For the configuration I used ./ct-ng menuconfig and set the options
mostly as specified at:
http://homepage.mac.com/macg3/TS7390-OSX-crosstool-instructions.txt.
I'm using newer versions of the libraries though:

binutils 2.20.1
gcc 4.3.5
glibc 2.9

For the host triplet, it's arm-unknown-linux-gnu. The machine I'm
attempting to build to is a Technologic Systems TS7500, which has a
250 mhz Cavium ARM9 CPU (Faraday 526). I specified the architecture
level as armv4 in the menuconfig, based on what uname -a gives me on
the ARM board.

On Thu, Nov 17, 2011 at 00:09, Titus von Boxberg <titus@v9g.de> wrote:
> Am 17.11.2011 um 01:24 schrieb Ben Peters:
>> 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
>
>
> please be more specific:
> - what is your osx version
> - what is your xcode version
> - what version of ct-ng are you using
> - specify the cmd line for ct-ng configuration
> - what is your intended host triple
>
> regards
> titus
>
>

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem building ARM Linux cross toolchain on OS X
  2011-11-17 15:19   ` Ben Peters
@ 2011-11-18 11:28     ` Titus von Boxberg
  0 siblings, 0 replies; 4+ messages in thread
From: Titus von Boxberg @ 2011-11-18 11:28 UTC (permalink / raw)
  To: Ben Peters; +Cc: crossgcc

Hi,

I recommend to select newer versions of gcc, binutils, and ct-ng,
if possible in any way.
For ct-ng, best would be to clone the head of yann's
mercurial repository.

Then, for configuration of ct-ng on OSX, follow the steps
in the tutorial in docs/C*.txt

Also, have a look at the samples directory of ct-ng to see
what configuration is expected to work.

Hope that helps.

Regards
Titus

Am 17.11.2011 um 16:19 schrieb Ben Peters:

> Sorry, here are all the version numbers:
> OS X 10.6.8
> XCode 3.2.6
> CT-ng 1.9.3
> 
> For the configuration I used ./ct-ng menuconfig and set the options
> mostly as specified at:
> http://homepage.mac.com/macg3/TS7390-OSX-crosstool-instructions.txt.
> I'm using newer versions of the libraries though:
> 
> binutils 2.20.1
> gcc 4.3.5
> glibc 2.9
> 
> For the host triplet, it's arm-unknown-linux-gnu. The machine I'm
> attempting to build to is a Technologic Systems TS7500, which has a
> 250 mhz Cavium ARM9 CPU (Faraday 526). I specified the architecture
> level as armv4 in the menuconfig, based on what uname -a gives me on
> the ARM board.
> 
> On Thu, Nov 17, 2011 at 00:09, Titus von Boxberg <titus@v9g.de> wrote:
>> Am 17.11.2011 um 01:24 schrieb Ben Peters:
>>> 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
>> 
>> 
>> please be more specific:
>> - what is your osx version
>> - what is your xcode version
>> - what version of ct-ng are you using
>> - specify the cmd line for ct-ng configuration
>> - what is your intended host triple
>> 
>> regards
>> titus
>> 
>> 


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-18 11:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-17  0:25 Problem building ARM Linux cross toolchain on OS X Ben Peters
2011-11-17  7:10 ` Titus von Boxberg
2011-11-17 15:19   ` Ben Peters
2011-11-18 11:28     ` Titus von Boxberg

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).