--- 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/
|