Bug 43615 - [4.5 Regression] bootstrap fails: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
Summary: [4.5 Regression] bootstrap fails: /usr/include/gnu/stubs.h:7:27: fatal error:...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 4.5.0
: P1 normal
Target Milestone: 4.5.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 43625 (view as bug list)
Depends on: 43328
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-01 07:03 UTC by Joost VandeVondele
Modified: 2010-04-02 07:32 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-04-01 13:15:04


Attachments
log of the build (57.54 KB, text/plain)
2010-04-01 12:41 UTC, Joost VandeVondele
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joost VandeVondele 2010-04-01 07:03:18 UTC
My usual routine to build gcc-trunk started failing yesterday (or the day before)?

The configure has remained unchanged (notice --disable-multilib --disable-bootstrap):

/data/vondele/gcc_bench/gcc_trunk/gcc/configure --prefix=/data/vondele/gcc_bench/gcc_trunk/build --enable-languages=c,c++,fortran --program-suffix=-trunk --disable-multilib --disable-bootstrap --with-gmp=/data/vondele/gcc_bench/libs/ --with-mpfr=/data/vondele/gcc_bench/libs/ --with-mpc=/data/vondele/gcc_bench/libs/

The error seems to be:

          -fvisibility=hidden -DHIDE_EXPORTS
/data/vondele/gcc_bench/gcc_trunk/obj/./gcc/xgcc -B/data/vondele/gcc_bench/gcc_trunk/obj/./gcc/ -B/data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/bin/ -B/data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/lib/ -isystem /data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/include -isystem /data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/sys-include    -g -O2 -m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../../.././gcc -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/. -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../include -I/data/vondele/gcc_bench/gcc_trunk/gcc/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 /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/features.h:354:0,
                 from /usr/include/stdio.h:28,
                 from /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/tsystem.h:87,
                 from /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/libgcc2.c:29:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.
make[4]: *** [_muldi3.o] Error 1
make[4]: Leaving directory `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/32/libgcc'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-multi] Error 2
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/data/vondele/gcc_bench/gcc_trunk/obj'
make: *** [all] Error 2
Comment 1 Joost VandeVondele 2010-04-01 07:06:47 UTC
svn versions:
last known good: 157842
first known bad: 157896

CCing a RM
Comment 2 pinskia@gmail.com 2010-04-01 08:50:18 UTC
Subject: Re:   New: bootstrap fails: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory



Sent from my iPhone

On Apr 1, 2010, at 12:03 AM, "jv244 at cam dot ac dot uk" <gcc-bugzilla@gcc.gnu.org 
 > wrote:

> My usual routine to build gcc-trunk started failing yesterday (or  
> the day
> before)?
>
> The configure has remained unchanged (notice --disable-multilib
> --disable-bootstrap):

--disable-bootstrap is almost never a good idea for a native build.


>
> /data/vondele/gcc_bench/gcc_trunk/gcc/configure
> --prefix=/data/vondele/gcc_bench/gcc_trunk/build
> --enable-languages=c,c++,fortran --program-suffix=-trunk --disable- 
> multilib
> --disable-bootstrap --with-gmp=/data/vondele/gcc_bench/libs/
> --with-mpfr=/data/vondele/gcc_bench/libs/
> --with-mpc=/data/vondele/gcc_bench/libs/
>
> The error seems to be:
>
>          -fvisibility=hidden -DHIDE_EXPORTS
> /data/vondele/gcc_bench/gcc_trunk/obj/./gcc/xgcc
> -B/data/vondele/gcc_bench/gcc_trunk/obj/./gcc/
> -B/data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/ 
> bin/
> -B/data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/ 
> lib/
> -isystem
> /data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/ 
> include
> -isystem
> /data/vondele/gcc_bench/gcc_trunk/build/x86_64-unknown-linux-gnu/sys- 
> include
> -g -O2 -m32 -O2  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast- 
> qual
> -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  - 
> isystem
> ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 - 
> D__GCC_FLOAT_NOT_NEEDED
> -I. -I. -I../../.././gcc -I/data/vondele/gcc_bench/gcc_trunk/gcc/ 
> libgcc
> -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/.
> -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc
> -I/data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../include
> -I/data/vondele/gcc_bench/gcc_trunk/gcc/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
> /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/libgcc2.c \
>          -fvisibility=hidden -DHIDE_EXPORTS
> In file included from /usr/include/features.h:354:0,
>                 from /usr/include/stdio.h:28,
>                 from
> /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/tsystem.h:87,
>                 from
> /data/vondele/gcc_bench/gcc_trunk/gcc/libgcc/../gcc/libgcc2.c:29:
> /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such  
> file or
> directory
> compilation terminated.
> make[4]: *** [_muldi3.o] Error 1
> make[4]: Leaving directory
> `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/32/ 
> libgcc'
> make[3]: *** [multi-do] Error 1
> make[3]: Leaving directory
> `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/ 
> libgcc'
> make[2]: *** [all-multi] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory
> `/data/vondele/gcc_bench/gcc_trunk/obj/x86_64-unknown-linux-gnu/ 
> libgcc'
> make[1]: *** [all-target-libgcc] Error 2
> make[1]: Leaving directory `/data/vondele/gcc_bench/gcc_trunk/obj'
> make: *** [all] Error 2
>
>
> -- 
>           Summary: bootstrap fails: /usr/include/gnu/stubs.h:7:27:  
> fatal
>                    error: gnu/stubs-32.h: No such file or directory
>           Product: gcc
>           Version: 4.5.0
>            Status: UNCONFIRMED
>          Severity: normal
>          Priority: P3
>         Component: bootstrap
>        AssignedTo: unassigned at gcc dot gnu dot org
>        ReportedBy: jv244 at cam dot ac dot uk
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43615
>
Comment 3 Richard Biener 2010-04-01 12:11:44 UTC
It looks like you are missing 32bit multilib pieces of your target glibc
(thus an install problem) when building the 32bit libgcc multilib.

If you think not then check if any of the offending headers appear to be
fixincluded.
Comment 4 Mikael Pettersson 2010-04-01 12:35:17 UTC
The bug reporter explicitly specified --disable-multilib, yet gcc-4.5 apparently now tries to build libgcc with -m32.
Comment 5 Joost VandeVondele 2010-04-01 12:41:37 UTC
Created attachment 20273 [details]
log of the build
Comment 6 Joost VandeVondele 2010-04-01 12:42:13 UTC
(In reply to comment #4)
> The bug reporter explicitly specified --disable-multilib, yet gcc-4.5
> apparently now tries to build libgcc with -m32.

right... you've been faster. I've added the logs of the build. 

Comment 7 Richard Biener 2010-04-01 13:15:03 UTC
Obviously caused by

2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

        PR bootstrap/43328
        * configure.ac: Do not pass --enable-multilib nor
        --disable-multilib in baseargs.  Accept explicitly passed
        --enable_multilib.
        * configure: Regenerate.
Comment 8 Ralf Wildenhues 2010-04-01 16:32:55 UTC
Subject: Bug 43615

Author: rwild
Date: Thu Apr  1 16:32:38 2010
New Revision: 157916

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157916
Log:
/:
	PR bootstrap/43615
	PR bootstrap/43328

	Revert:

	2010-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* configure.ac: Do not pass --enable-multilib nor
	--disable-multilib in baseargs.  Accept explicitly passed
	--enable_multilib.
	* configure: Regenerate.

Modified:
    trunk/ChangeLog
    trunk/configure
    trunk/configure.ac

Comment 9 Ralf Wildenhues 2010-04-01 16:40:50 UTC
Fixed by reverting the offending patch.
Comment 10 Ralf Wildenhues 2010-04-02 07:32:32 UTC
*** Bug 43625 has been marked as a duplicate of this bug. ***