ts-7000
[Top] [All Lists]

[ts-7000] New problem (Re: Cross-tool script error)

To:
Subject: [ts-7000] New problem (Re: Cross-tool script error)
From: "naturalwatt" <>
Date: Thu, 27 Aug 2009 08:56:36 -0000
--- In  "bburtan65" <> wrote:
>
> Okay so I watched the build progress and it's dying during binutils.
> It built libiberty, intl, bfd, and opcodes no problem.  Then binutils dies.  
> The log file looks like this:
> 
> configure:2375: gcc -o conftest.dSYM -g -O2    conftest.c  1>&5
> ld: can't open output file for writing: conftest.dSYM, errno=21
> collect2: ld returned 1 exit status
> configure: failed program was:
> 
> #line 2370 "configure"
> #include "confdefs.h"
> 
> main(){return(0);}
>

I think you are compiling on a Mac, so I have seen this problem.

The problem is that the gcc supplied with a mac, when given the -g option, 
produces a directory called in your case conftest.dSYM as well as the object 
file normally called conftest.o.  This is why earlier the script complained 
'can't produce an executable' as the script noticed it had produced 
conftest.dSym and that this wasn't executable.

I think you have somehow overriden or got past that 'can't produce executables' 
are now hitting problems when it really is trying to compile something.

Find in the Makefiles where it sets CFLAGS to '-g -O2' and change it to '-O2'.

I *finally* got a toolchain built for the 2.4 kernels using gcc 3.3.4 
andglibc-2.3.2.  I can dig  out my notes if that would help.

However, for the 2.6 line, I completely failed to get a gcc 4.0 to build.  
There were just too many problems.  

As I recall, early on in the process it tries to build a binutils for the host 
architecture and it got into a terrible mess with incorrect opcodes and such 
for the PPC architecture.  Come to think of it, that was on a G5 Mac - now I've 
got an Intel, I wonder if I could get further?

Did I see a reference to a CYGWIN variable in the stuff I cut out?  If so, you 
aren't on a Mac - but the comment about -g still holds.

Martin



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU