Oops, sorry, replied only to Andrew... :)
-------- Original Message --------
On 7/19/12 1:15 PM, Andrew Bradford wrote:
On Thu, 19 Jul 2012 12:38:36 -0500 Ron McDowell<[email protected]> wrote:
#
# binutils-2.21 no longer available, used 2.21.1, which changed several
lines.
# also added AR and AS declarations
# and --host
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...
I was casting straws by this point. :) They seemed logical, and [I'm
assuming] don't hurt...
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]:http://git.cross-lfs.org/?p=abradford/clfs-embedded.git;a=summary
I'll throw 2.22 in next pass...
#
# 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
#
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).
andrew@bradford:~/Downloads/gcc-4.6.0$ 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
# 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]
I don't think they're *needed* but if you like them...
In my case it WAS needed. gcc was failing configure with
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
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.
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
<snip>
/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
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]:http://git.uclibc.org/uClibc/commit/?id=3e68c52b941636714d2599ea8adda9520ec2de23
[3]: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
Regards,
Andrew
Thanks, I'll update those packages this evening and try again.
--
Ron McDowell
San Antonio TX
_______________________________________________
Clfs-support mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org