This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/1793: gcc/gcc/cp/decl.c won't make - lvalue not modifiable
Nix wrote:
>
> 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'?)
>
Nik!
You're correct, I forgot to use make bootstrap, and I'm
incredibly sorry for that pathetic mistake. This issue needs
to be closed, as make bootstrap worked to get me past decl.c.
I now have a different make failure much farther along and will
post to GNATS about that in a minute.
Thanks for that quick response!
Matthew