[build] Have s-macro_list depend on cc1
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri Mar 21 17:10:00 GMT 2014
While looking at an unrelated issue, I noticed that the gcc/macro_list
file is empty. In the build logs, I see
echo | /var/gcc/regression/trunk/10-gcc/build/./gcc/xgcc -B/var/gcc/regression/trunk/10-gcc/build/./gcc/ -E -dM - | \
sed -n -e 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p' \
-e 's/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
sort -u > tmp-macro_list
xgcc: error trying to exec 'cc1': execvp: No such file or directory
Unlike the other xgcc invocations, this one actually needs cc1 for gcc
-E to work, but lacks the appropriate dependency.
The following patch adds it and indeed macro_list now is non-empty, as
expected. I'm just not sure if cc1 is the correct one in
gcc/Makefile.in, or if it should rather be $(COMPILERS) instead.
Anyway, with that patch a i386-pc-solaris2.10 bootstrap completed and
the testsuite is now running.
Ok for mainline?
Rainer
2014-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* Makefile.in (s-macro_list): Depend on cc1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-macro_list.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140321/10d3c237/attachment.bin>
-------------- next part --------------
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list