<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Oops, sorry, replied only to Andrew... :)</tt><br>
    <br>
    -------- Original Message --------<br>
    <br>
    <br>
    On 7/19/12 1:15 PM, Andrew Bradford wrote:
    <blockquote
      cite="mid:20120719141535.5339b109.andrew@bradfordembedded.com"
      type="cite">
      <pre wrap="">On Thu, 19 Jul 2012 12:38:36 -0500 Ron McDowell <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:rcm@fuzzwad.org"><rcm@fuzzwad.org></a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">#
# binutils-2.21 no longer available, used 2.21.1, which changed several 
lines.
# also added AR and AS declarations
# and --host

</pre>
      </blockquote>
      <pre wrap="">Did you find that not having --host, setting AR & AS, and using
binutils 2.21 wouldn't work?  I hadn't seen that before and I believe
I've always built binutils without --host, AR, and AS...
</pre>
    </blockquote>
    <br>
    I was casting straws by this point.  :)  They seemed logical, and
    [I'm assuming] don't hurt...<br>
    <br>
    <blockquote
      cite="mid:20120719141535.5339b109.andrew@bradfordembedded.com"
      type="cite">
      <pre wrap="">I didn't realize 2.21 went away, to be replaced by 2.21.1...
2.22 should work as well. Eventually the online book will get updated...

[1]: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://git.cross-lfs.org/?p=abradford/clfs-embedded.git;a=summary">http://git.cross-lfs.org/?p=abradford/clfs-embedded.git;a=summary</a>
</pre>
    </blockquote>
    <br>
    I'll throw 2.22 in next pass...<br>
    <br>
    <blockquote
      cite="mid:20120719141535.5339b109.andrew@bradfordembedded.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">#
# ch 6.10
#
tar xof Archives/gcc-4.6.0.tar || exit 1
cd gcc-4.6.0/ || exit 1
#
#next 6 lines brought forward from CLFS-1.2.0
patch -Np1 -i ../Archives/gcc-4.6.0-branch_update-1.patch || exit 1
patch -Np1 -i ../Archives/gcc-4.6.0-specs-1.patch || exit 1
echo -en '#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR 
"/tools/include/"\n\n' >> gcc/config/rs6000/sysv4.h || exit 1
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_1\n#define 
STANDARD_STARTFILE_PREFIX_1 "/tools/lib/"\n' >> 
gcc/config/rs6000/sysv4.h || exit 1
echo -en '\n#undef STANDARD_STARTFILE_PREFIX_2\n#define 
STANDARD_STARTFILE_PREFIX_2 ""\n' >> gcc/config/rs6000/sysv4.h || exit 1
touch ${CLFS}/tools/include/limits.h || exit 1
#
# following patch had to be applied by hand...the patch looks fine but 
won't 'patch'...
# patch -Np1 -i ../Local/gcc-4.6.0-uclibc-arm-softfloat.patch || exit 1
#
</pre>
      </blockquote>
      <pre wrap="">Possibly the branch_update and specs patches you applied previously
caused the softfloat patch to not apply cleanly.  It applies cleanly
for me following the embedded book (which doesn't apply the
branch_update or specs patches).

<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:andrew@bradford:%7E/Downloads/gcc-4.6.0$">andrew@bradford:~/Downloads/gcc-4.6.0$</a> patch -Np1 -i ../gcc-4.6.0-uclibc-arm-softfloat-2.patch 
patching file gcc/config/arm/linux-elf.h
patching file gcc/config/arm/t-linux

</pre>
      <blockquote type="cite">
        <pre wrap=""># a combo of the above echos and hints from codemonkey's msg 001246, Aug 
2011
# gave rise to the following 8 lines.
# currently a shotgun approach, see what hits if anything...
# [it does compile thru this way, but several of these probably aren't 
needed]
</pre>
      </blockquote>
      <pre wrap="">I don't think they're *needed* but if you like them...
</pre>
    </blockquote>
    <br>
    In my case it WAS needed.  gcc was failing configure with<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    checking for suffix of object files... configure: error: cannot
    compute<br>
    suffix of object files: cannot compile <br>
    <br>
    and one or more of the following fixed that completely. By that
    point I was tired of seeing that particular error :) so just
    shotgunned them all.  I'm sure only one or two of them are needed.<br>
    <br>
    <blockquote
      cite="mid:20120719141535.5339b109.andrew@bradfordembedded.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">echo -en '\n#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR 
"/tools/include/"\n' >> gcc/config/arm/linux-eabi.h || exit 1
echo -en "\n#undef STARTFILE_PREFIX_SPEC\n#define STARTFILE_PREFIX_SPEC 
\"/tools/lib/\"\n" >> gcc/config/arm/linux-eabi.h || exit 1
echo -en "\n#undef STANDARD_STARTFILE_PREFIX_1\n#define 
STANDARD_STARTFILE_PREFIX_1 \"/tools/lib/\"\n" >> 
gcc/config/arm/linux-eabi.h || exit 1
echo -en "\n#undef STANDARD_STARTFILE_PREFIX_2\n#define 
STANDARD_STARTFILE_PREFIX_2 \"/tools/lib/\"\n" >> 
gcc/config/arm/linux-eabi.h || exit 1
echo -en '\n#undef STANDARD_INCLUDE_DIR\n#define STANDARD_INCLUDE_DIR 
"/tools/include/"\n\n' >> gcc/config/arm/linux-eabi.h || exit 1
echo -en "\n#undef STARTFILE_PREFIX_SPEC\n#define STARTFILE_PREFIX_SPEC 
\"/tools/lib/\"\n" >> gcc/config/arm/linux-elf.h || exit 1
echo -en "\n#undef STANDARD_STARTFILE_PREFIX_1\n#define 
STANDARD_STARTFILE_PREFIX_1 \"/tools/lib/\"\n" >> 
gcc/config/arm/linux-elf.h || exit 1
echo -en "\n#undef STANDARD_STARTFILE_PREFIX_2\n#define 
STANDARD_STARTFILE_PREFIX_2 \"/tools/lib/\"\n" >> 
gcc/config/arm/linux-elf.h || exit 1
</pre>
      </blockquote>
      <pre wrap=""><snip>

</pre>
      <blockquote type="cite">
        <pre wrap="">/tmp/cchgc7oK.s: Assembler messages:
/tmp/cchgc7oK.s: Error: .size expression for _init does not evaluate to 
a constant
/tmp/cchgc7oK.s: Error: .size expression for _fini does not evaluate to 
a constant
make: *** [lib/crtn.o] Error 1
+ exit 1


</pre>
      </blockquote>
      <pre wrap="">uClibc 0.9.32 should fix this. See git commit [2].  Use the
0.9.32-configs-1.patch [3] for it, I think there were a few small changes,
but maybe not... It's been a while. :)

[2]: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://git.uclibc.org/uClibc/commit/?id=3e68c52b941636714d2599ea8adda9520ec2de23">http://git.uclibc.org/uClibc/commit/?id=3e68c52b941636714d2599ea8adda9520ec2de23</a>
[3]: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://git.cross-lfs.org/?p=abradford/clfs-embedded.git;a=blob;f=patches/uClibc-0.9.32-configs-1.patch;h=59b639b1aef7bcb9cd03b2f89778493e25015958;hb=HEAD">http://git.cross-lfs.org/?p=abradford/clfs-embedded.git;a=blob;f=patches/uClibc-0.9.32-configs-1.patch;h=59b639b1aef7bcb9cd03b2f89778493e25015958;hb=HEAD</a>

Regards,
Andrew
</pre>
    </blockquote>
    <br>
    Thanks, I'll update those packages this evening and try again.<br>
    <pre class="moz-signature" cols="72">-- 
Ron McDowell
San Antonio TX
</pre>
  </body>
</html>