public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: David Starner <prosfilaes@gmail.com>
Cc: gcc@gcc.gnu.org
Subject: Re: fatal error: gnu/stubs-32.h: No such file
Date: Wed, 24 Jul 2013 11:14:00 -0000	[thread overview]
Message-ID: <51EFB70C.3050309@redhat.com> (raw)
In-Reply-To: <CAMZ=zj67PA=yYGnkCZmG3Yet45r5=f=HvWcu6p_v2VgNfo--4w@mail.gmail.com>

On 07/24/2013 11:32 AM, David Starner wrote:
> On Wed, Jul 24, 2013 at 1:17 AM, Andrew Haley <aph@redhat.com> wrote:
>> On 07/24/2013 01:48 AM, David Starner wrote:
>>> I'd like to mention that I too was bit by this one on Debian. I don't
>>> have a 32-bit development environment installed; why would I? I'm
>>> building primarily for myself, and if I did have to target a 32-bit
>>> environment, I'd likely have to mess with more stuff then just the
>>> compiler.
>>
>> No, you probably wouldn't.  Just use -m32 and you'd be fine.
> 
> That's assuming that the hypothetical 32-bit x86 system I was
> targeting was running GNU libc6 2.17 (as well as whatever libraries
> I need, with version numbers apropos of Debian Unstable.)
> Conceivable, but not something I'd bet on. I've got 3 ARM (Android)
> computers around, and 3 AMD-64 computers, and I can't imagine why
> I'd need an x86 computer. There is one x86 program I run (zsnes),
> but if Debian stopped carrying it, it probably wouldn't be worth the
> time to compile it myself.

No, I'm assuming you want to build and run an x86 program on your own
system.  -32 is not in any sense a cross-compiler.

>>> If you can't find a way to detect this error, I can't
>>> imagine many people would have a problem with turning off multilibs on
>>> x86-64; it's something of a minority setup.
>>
>> I don't think it is, really.
> 
> Really?

Really.

> Because my impression is that on Unix, the primary use of the
> C compiler has always been to compile programs for the system the
> compiler is running on.

So, use the system's C compiler.

> And x86-32 is a slow, largely obsolete chip; it's certainly useful
> to emulate, but I suspect any developer who needs to build for it
> knows that up-front and is prepared to deal for it in the same way
> that someone who needs an ARM or MIPS compiler is.
> 
>> Anyone building GCC for themself has a reason for doing so.
> 
> At the current time, Debian's version of GNAT is built from older
> sources then the rest of GCC; if I want a 4.8 version of GNAT, I have
> to build it myself.

So you have a specialized use.  Fair enough; you can disable multilib.
I would just install GCC's build dependencies and build with the
defaults.

>> Right, so it should be built the right way.
> 
> The right way?

The default way, then.

> If I don't want to build support for obsolete systems I don't use,
> I'm building it the wrong way? If I were building ia64-linux-gnu, I
> wouldn't have to enable support for x86-linux-gnu, but because I'm
> building amd64-linux-gnu, if I don't, I'm building it the wrong way?
> 
> I don't see this resistance to making it work with real systems and
> real workloads. This feature is not useful to many of us, and fails
> the GCC build in the middle. That's not really acceptable.

There is no resistance whatsoever to making it work with real systems
and real workloads.  The problem is that you don't know that people
running on 64-bit hardware often choose to compile -32 and run -32
locally.

Andrew.


  reply	other threads:[~2013-07-24 11:14 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24  0:48 David Starner
2013-07-24  8:17 ` Andrew Haley
2013-07-24  8:36   ` Florian Weimer
2013-07-24  8:39     ` Andrew Haley
2013-07-24  9:05       ` Florian Weimer
2013-07-24  9:18         ` Andrew Haley
2013-07-24 10:32   ` David Starner
2013-07-24 11:14     ` Andrew Haley [this message]
2013-07-24 12:26       ` David Starner
2013-07-24 13:44         ` Andrew Haley
2013-07-24 12:37       ` Gabriel Dos Reis
2013-07-24 13:45         ` Andrew Haley
2013-07-24 15:38           ` Gabriel Dos Reis
2013-07-24 15:50             ` Andrew Haley
2013-07-24 22:52               ` David Starner
2013-07-25  8:17                 ` Andrew Haley
2013-07-26  0:00                   ` David Starner
2013-07-26  9:01                     ` Andrew Haley
2013-07-27 13:56                       ` David Starner
2013-07-27 19:23                         ` Jonathan Wakely
2013-07-27 22:54                           ` Gabriel Dos Reis
2013-07-27 23:10                           ` David Starner
2013-07-27 23:53                             ` Gabriel Dos Reis
  -- strict thread matches above, loose matches on Subject: below --
2013-07-28 13:24 FX
2013-07-29 13:06 ` FX
2013-07-29 13:23   ` Andrew Haley
2013-07-29 13:55     ` Bruce Korb
2013-07-29 14:20       ` Andrew Haley
2013-07-30  4:28         ` David Starner
2013-07-30  4:50         ` David Starner
2013-07-30  4:58           ` Andrew Pinski
2013-07-30 13:13             ` David Starner
2013-07-30  7:56           ` Andrew Haley
2013-07-30 12:52             ` David Starner
2013-07-30 14:34               ` Andrew Haley
2013-07-30 11:06           ` Michael Veksler
2013-07-30 13:54             ` FX
2013-07-31 19:44   ` Matthias Klose
2013-07-31 20:14     ` Jonathan Wakely
2013-07-31 20:23       ` Russ Allbery
2013-07-06 15:41 Bruce Korb
2013-07-06 16:02 ` Andrew Haley
2013-07-06 16:09   ` Bruce Korb
2013-07-06 18:53 ` Andreas Schwab
2013-07-07 14:00   ` Bruce Korb
2013-07-07 17:44     ` Jonathan Wakely
2013-07-07 20:33       ` Gabriel Dos Reis
2013-07-07 23:02         ` Jonathan Wakely
2013-07-08  5:17           ` Gabriel Dos Reis
2013-07-08  5:19             ` Andrew Pinski
2013-07-08  5:55               ` Gabriel Dos Reis
2013-07-08  5:59                 ` Andrew Pinski
2013-07-08  6:33                   ` Gabriel Dos Reis
2013-07-08  8:43                     ` Andrew Haley
2013-07-08  9:00                       ` Gabriel Dos Reis
2013-07-08  7:13                 ` Jakub Jelinek
2013-07-08  7:18                   ` Gabriel Dos Reis
2013-08-14  8:53                 ` Alexandre Oliva
2013-08-14 16:39                   ` Andreas Schwab
2013-08-14 19:01                     ` Gabriel Dos Reis
2013-07-08 15:11               ` Bruce Korb
2013-07-08 15:24                 ` Jakub Jelinek
2013-07-08 15:39                   ` Bruce Korb
2013-07-08 17:27                     ` Jonathan Wakely
2013-07-08 18:08                       ` Bruce Korb
2013-07-16  9:40                     ` Florian Weimer
2013-07-16 12:46                       ` Gabriel Dos Reis
2013-07-16 13:24                         ` Jonathan Wakely
2013-07-16 14:26                           ` Andrew Pinski
2013-07-16 14:35                             ` Bruce Korb
2013-07-16 15:04                               ` Gabriel Dos Reis
2013-07-16 15:11                                 ` Jonathan Wakely
2013-07-16 15:13                                   ` Gabriel Dos Reis
2013-07-16 15:40                                   ` Bruce Korb
2013-07-08  8:42             ` Andrew Haley
2013-07-07 20:31     ` Gabriel Dos Reis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51EFB70C.3050309@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=prosfilaes@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).