This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fatal error: gnu/stubs-32.h: No such file
- From: Bruce Korb <bruce dot korb at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Andrew Pinski <pinskia at gmail dot com>, Gabriel Dos Reis <gdr at integrable-solutions dot net>, Jonathan Wakely <jwakely dot gcc at gmail dot com>, Andreas Schwab <schwab at linux-m68k dot org>, GCC <gcc at gcc dot gnu dot org>
- Date: Mon, 8 Jul 2013 08:39:30 -0700
- Subject: Re: fatal error: gnu/stubs-32.h: No such file
- References: <51D83AAC dot 4080200 at gmail dot com> <87y59jo6yq dot fsf at igel dot home> <51D97472 dot 8010704 at gmail dot com> <CAH6eHdSzVcjpVzktBfi6n0cNq=DfBOADAP3BpvTqydmzCFwbCQ at mail dot gmail dot com> <CAAiZkiB0W3Lbv63eXcpP6EYhbj-t4DJ=zvFEsSfer_n6nKM_wA at mail dot gmail dot com> <CAH6eHdS9v+GyLvVYEjVDbuFtGxwn27-VhqEofykYMe0C_tv9aA at mail dot gmail dot com> <CAAiZkiBjh3iR+Gsh2etKRnzO2q=N5iBnXQgwwod4vOELSsbLRA at mail dot gmail dot com> <CA+=Sn1=M9_uUHxEV6r0b-0AQE73v=Lv=AgbWwT9nAMuZ=_M7xQ at mail dot gmail dot com> <CAKRnqNJa840OJfszZPQm7vhfedbTo4XkVVx1ZHz8ybFMxzx_dw at mail dot gmail dot com> <20130708152427 dot GQ2336 at tucnak dot redhat dot com>
On Mon, Jul 8, 2013 at 8:24 AM, Jakub Jelinek <jakub@redhat.com> wrote:
> Far easier would be if not inhibit_libc to try to compile some trivial
> program using say stdlib.h include in libgcc configure and error out there,
> if it isn't for the primary multilib hint that either development support
> for the non-primary multilib needs to be installed or --disable-multilib
> used in configure. That would have the disadvantage that the error would
> show up only after at least first stage of gcc has been built, but would be
> more reliable.
Any solution other than an explanation-less "fatal error:
gnu/stubs-32.h: No such file"
is fine. There is no way to translate that message into
"Either --disable-multilib or else install glibc 32 bit development"
without coming up with the right Googling terms. I managed to futz around
until I figured out the missing package. It was a day later that I found out
it was all about multilib. Putting people through such a gauntlet just because
you think a distro ought to have included glibc 32 bit development as part of
a development package is not appropriate.
So I see several choices. Primarily, assume that more often than not, builds
are not cross builds, thus if multi-lib is not supported, likely the
build will fail
on the multilib part. Therefore, disable it _by default_. The user
has to override,
even if they are doing a cross build for a platform with multi-lib.
The user alters
the default if the host platform does not support it. But anything at
all, as long
as the way forward is explicit and does not involve Google.