This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Always create target tools in the gcc directory, take 6 (Re:[PATCH] gcc configure's determination of ld and as)


On Fri, 3 Jun 2005, Paolo Bonzini wrote:
>
> > 	* configure.ac (gcc_cv_as, gcc_cv_ld): Examine MD_EXEC_PREFIX in
> > 	tm files to determine compiler search path.  Kill code duplication.
>
> I implemented this on top of the "always create gcc/as and friends"
> neverending stor^W^W patch.
>
> Here is the new version, tested while working on gcc in various kinds of
> trees.

(Not putting the patch and ChangeLog in-text causes quoting
problems now.  Perhaps I could have spotted the bug while
writing this reply!)

I have reason to believe that this patch causes the following
build error (cutandpasted):

rm -f include/limits.h
cp xlimits.h include/limits.h
chmod a+r include/limits.h
rm -f include/README
cp /home/hp/combined/combined/gcc/../fixincludes/README-fixinc
include/README
chmod a+r include/README
echo timestamp > stmp-int-hdrs
make[3]: *** No rule to make target
`/usr/local/mmix-knuth-mmixware-as', needed by `stamp-as'.
Stop.
make[3]: Leaving directory `/home/hp/combined/mmixware-sim/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory `/home/hp/combined/mmixware-sim'
make[1]: *** [mmixware-sim/built.stamp] Error 2
make[1]: Leaving directory `/home/hp/combined'

I presume this patch was not tested with a one-tree cross build,
without any installed target tools, and with configure earlier
yielding:

...
checking what assembler to use... "newly built gas"
checking what linker to use... "newly built ld"
checking what nm to use... "newly built nm"
checking what objdump to use... "newly built objdump"

You should be able to produce the error for any (cross) target
given those circumstances, but why not try
"/x/configure --target=mmix-knuth-mmixware"

Thanks.

brgds, H-P


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]