[Clfs-support] Mini2440 W.I.P.

Andrew Bradford andrew at bradfordembedded.com
Fri Jul 20 12:43:22 PDT 2012


On Thu, 19 Jul 2012 14:07:13 -0500
Ron McDowell <rcm at fuzzwad.org> wrote:

> On 7/19/12 1:15 PM, Andrew Bradford wrote:
> > On Thu, 19 Jul 2012 12:38:36 -0500 Ron McDowell<rcm at fuzzwad.org>  wrote:
> >> #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 at 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.

You're right, even with gcc-4.6.1, at least some of this is needed
(assuming one of the two patches, at least). I'll work more on figuring
out which are and update the book.

checking for suffix of object files... configure: error: in
`/home/clfs-arm/sources/gcc-build/armv4-unknown-linux-uclibc/libgcc':
configure: error: cannot compute suffix of object files: cannot compile

-Andrew



More information about the Clfs-support mailing list