c/1793: gcc/gcc/cp/decl.c won't make - lvalue not modifiable
Nix
nix@esperi.demon.co.uk
Sat Jan 27 17:03:00 GMT 2001
On 27 Jan 2001, mschalit@pacbell.net uttered the following:
> CC="/bin/cc -Kalloca -Kno_host" ../gcc/configure --enable-threads --enable-shared --enable-languages=c++
>
> /usr/local/bin/make
This is not a bug (however, I haven't got GNATS write access; someone
who has may want to change the status of this PR appropriately, if they
agree with me.)
`make' without a target assumes GCC is the C compiler being used to
bootstrap; GCC frontend languages other than C can (and do) depend upon
GCC being used to compile them.
Use `make bootstrap' or `make bootstrap-lean' instead, as the install
docs say; that builds the C compiler with the native compiler, and then
builds the compiler again, including all the other languages you asked
for, with that freshly built GCC.
> /bin/cc -Kalloca -Kno_host -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -Icp -I../../gcc/gcc -I../../gcc/gcc/cp -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/cp/decl.c -o cp/decl.o
> UX:acomp: ERROR: "../../gcc/gcc/cp/decl.c", line 527: left operand must be modifiable lvalue: op "="
Use `make bootstrap'.
Perhaps make-without-a-target should complain if $CC is not GCC. (Or
perhaps the makefiles should be remodelled to let the users type `make'
and to make one-stage bootstraps use something else; `make quick'?)
--
`Anyhow, that pipe dream doesn't say anything about the question you
asked. (I am planning for a career in politics.)' --- Mark Mitchell
on the GCC list
More information about the Gcc-bugs
mailing list