public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* fatal error: gnu/stubs-32.h: No such file
@ 2013-07-06 15:41 Bruce Korb
  2013-07-06 16:02 ` Andrew Haley
  2013-07-06 18:53 ` Andreas Schwab
  0 siblings, 2 replies; 76+ messages in thread
From: Bruce Korb @ 2013-07-06 15:41 UTC (permalink / raw)
  To: GCC

> make[5]: Entering directory `/u/gnu/proj/gcc-bld/x86_64-unknown-linux-gnu/32/libgcc'
> # If this is the top-level multilib, build all the other
> # multilibs.
> DEFINES='' HEADERS='../../../../gcc-svn/libgcc/config/i386/value-unwind.h' \
>         ../../../../gcc-svn/libgcc/mkheader.sh > tmp-libgcc_tm.h
> /bin/sh ../../../../gcc-svn/libgcc/../move-if-change tmp-libgcc_tm.h libgcc_tm.h
> echo timestamp > libgcc_tm.stamp
> /u/gnu/proj/gcc-bld/./gcc/xgcc -B/u/gnu/proj/gcc-bld/./gcc/ -B/u/gnu/inst/x86_64-unknown-linux-gnu/bin/ -B/u/gnu/inst/x86_64-unknown-linux-gnu/lib/ -isystem /u/gnu/inst/x86_64-unknown-linux-gnu/include -isystem /u/gnu/inst/x86_64-unknown-linux-gnu/sys-include    -g -O2 -m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector   -fpic -mlong-double-80 -I. -I. -I../../.././gcc -I../../../../gcc-svn/libgcc -I../../../../gcc-svn/libgcc/. -I../../../../gcc-svn/libgcc/../gcc -I../../../../gcc-svn/libgcc/../include -I../../../../gcc-svn/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS  -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../../gcc-svn/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
> In file included from /usr/include/features.h:399:0,
>                  from /usr/include/stdio.h:27,
>                  from ../../../../gcc-svn/libgcc/../gcc/tsystem.h:87,
>                  from ../../../../gcc-svn/libgcc/libgcc2.c:27:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
>  # include <gnu/stubs-32.h>
>                            ^
> compilation terminated.
> make[5]: *** [_muldi3.o] Error 1
> make[5]: Leaving directory `/u/gnu/proj/gcc-bld/x86_64-unknown-linux-gnu/32/libgcc'
> make[4]: *** [multi-do] Error 1

The above was preceded by:

> $ ../gcc-svn/configure --enable-languages=c,c++,java,objc,go --prefix=/u/gnu/inst
> configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
> checking build system type... x86_64-unknown-linux-gnu
> [...]
> checking for version 0.11 of ISL... no
>  'c++' language required by 'go' in stage 1; enabling
> The following languages will be built: c,c++,go,java,lto,objc
> *** This configuration is not supported in the following subdirectories:
>      gnattools target-libada target-libgfortran
>     (Any other directories should still work fine.)
> checking for default BUILD_CONFIG... bootstrap-debug
> checking for bison... bison -y
> [...]
> checking whether to enable maintainer-specific portions of Makefiles... no
> configure: creating ./config.status
> config.status: creating Makefile
> $ make

Why is it that configure worked but stubs-32.h was not found?
Googling leads me to:
> You're missing the 32 bit libc dev package:

but the configure step should detect that and object before
this otherwise obscure message comes up.  Since one has to find
and select this stuff from an extensive list of packages
every time there is a new distribution, it is easy to overlook....

Thanks!

^ permalink raw reply	[flat|nested] 76+ messages in thread
* Re: fatal error: gnu/stubs-32.h: No such file
@ 2013-07-24  0:48 David Starner
  2013-07-24  8:17 ` Andrew Haley
  0 siblings, 1 reply; 76+ messages in thread
From: David Starner @ 2013-07-24  0:48 UTC (permalink / raw)
  To: gcc

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. 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.

-- 
Kie ekzistas vivo, ekzistas espero.

^ permalink raw reply	[flat|nested] 76+ messages in thread
* Re: fatal error: gnu/stubs-32.h: No such file
@ 2013-07-28 13:24 FX
  2013-07-29 13:06 ` FX
  0 siblings, 1 reply; 76+ messages in thread
From: FX @ 2013-07-28 13:24 UTC (permalink / raw)
  To: gcc; +Cc: prosfilaes, jwakely.gcc

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]

> The fact it's not listed as a prerequesite has already been pointed
> out as a problem with the docs.

As a consensual first step toward addressing this issue, I suggest the following patch to the doc. I hope it is clear enough, but suggestions are obviously welcome. (I haven't even compiled the docs with it, as I'm on my laptop with little battery.)

FX



[-- Attachment #2: multilib_patch.txt --]
[-- Type: text/plain, Size: 1280 bytes --]

Index: install.texi
===================================================================
--- install.texi	(revision 201292)
+++ install.texi	(working copy)
@@ -255,6 +255,26 @@ may need to use @option{--disable-stage1
 bootstrapping the compiler with such earlier compilers is strongly
 discouraged.
 
+@item C standard library and headers
+
+In order to build GCC, the C standard library and headers must be present
+for all target variants for which target libraries will be built (and not
+only the variant of the host C++ compiler).
+
+This affects the popular @samp{x86_64-unknown-linux-gnu} platform (among
+other multilib targets), for which 64-bit (@samp{x86_64}) and 32-bit
+(@samp{i386}) libc headers are usually packaged separately. If you do a
+build of a native compiler on @samp{x86_64-unknown-linux-gnu}, beware of
+either:
+
+@itemize @bullet
+@item having 32-bit libc developer package properly installed (the exact
+name of the package depends on your distro); otherwise, you may encounter an
+error such as @samp{fatal error: gnu/stubs-32.h: No such file}
+@item building GCC as a 64-bit only compiler, by configuring with the
+option @option{--disable-multilib}
+@end itemize
+
 @item GNAT
 
 In order to build the Ada compiler (GNAT) you must already have GNAT

^ permalink raw reply	[flat|nested] 76+ messages in thread

end of thread, other threads:[~2013-08-14 16:39 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-06 15:41 fatal error: gnu/stubs-32.h: No such file 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
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
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
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

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).