Debian Bug report logs - #637218
[i386] cannot use gnu/stubs.h with multiarch-unaware toolchain (fatal error: gnu/stubs-32.h: No such file or directory)

version graph

Package: libc6-dev; Maintainer for libc6-dev is GNU Libc Maintainers <>; Source for libc6-dev is src:eglibc.

Reported by:

Date: Tue, 9 Aug 2011 15:33:05 UTC

Severity: normal

Merged with 629819

Found in versions eglibc/2.13-10, eglibc/2.13-5

Fixed in version eglibc/2.13-11

Done: Aurelien Jarno <>

Bug is archived. No further changes may be made.

Full log

Message #85 received at (full text, mbox):

Received: (at 637218) by; 10 Aug 2011 03:15:53 +0000
From Wed Aug 10 03:15:53 2011
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
	(2010-03-16) on
X-Spam-Status: No, score=-3.8 required=4.0 tests=BAYES_00,DKIM_SIGNED,
X-Spam-Bayes: score:0.0000 Tokens: new, 16; hammy, 142; neutral, 38; spammy,
	1. spammytokens:0.948-+--weekly hammytokens:0.000-+--H*u:1.5.21,
	0.000-+--H*UA:1.5.21, 0.000-+--H*f:sk:2011080, 0.000-+--tarballs,
Return-path: <>
Received: from ([])
	by with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16)
	(Exim 4.72)
	(envelope-from <>)
	id 1QqzGq-0000Dc-VG
	for; Wed, 10 Aug 2011 03:15:53 +0000
Received: by yxi11 with SMTP id 11so655773yxi.11
        for <>; Tue, 09 Aug 2011 20:15:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma;
Received: by with SMTP id p5mr1068299age.40.1312946146018;
        Tue, 09 Aug 2011 20:15:46 -0700 (PDT)
Received: from ( [])
        by with ESMTPS id j3sm472648anm.47.2011.
        (version=SSLv3 cipher=OTHER);
        Tue, 09 Aug 2011 20:15:44 -0700 (PDT)
Date: Tue, 9 Aug 2011 22:15:29 -0500
From: Jonathan Nieder <>
Subject: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No
 such file or directory
Message-ID: <>
References: <>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <>
User-Agent: Mutt/1.5.21+46 (b01d63af6fea) (2011-07-01)

Sedat Dilek wrote:

> Do I need additional patches to gcc trunk (I am using the weekly
> gcc-4.7 snapshot tarballs)?

No need for patches.  My build of gcc trunk finally finished:

	$ ./configure --prefix=$HOME/opt/gcc \
		CFLAGS_FOR_TARGET="-g -O2 -B/usr/lib/x86_64-linux-gnu" \
		CXXFLAGS_FOR_TARGET="-g -O2 -B/usr/lib/x86_64-linux-gnu"
	$ make FLAGS_FOR_TARGET='-B$(build_tooldir)/bin/ '\
'-B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include '\
'-isystem $(build_tooldir)/sys-include '\
'-B/usr/lib/x86_64-linux-gnu' \
		BOOT_CFLAGS="-g -O2 -B/usr/lib/x86_64-linux-gnu"
	$ make FLAGS_FOR_TARGET='-B$(build_tooldir)/bin/ '\
'-B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include '\
'-isystem $(build_tooldir)/sys-include '\
'-B/usr/lib/x86_64-linux-gnu' \
		BOOT_CFLAGS="-g -O2 -B/usr/lib/x86_64-linux-gnu" \

The resulting compiler even seems to work, as long as you pass
-B/usr/lib/x86_64-linux-gnu to it.

Yes, it ought to be easier.  Maybe FLAGS_FOR_TARGET does everything we
need.  I'd be happy to review a patch that teaches to
handle something like

	$ ./configure --prefix=$HOME/opt/gcc \
		--extra-flags-for-target=-B/usr/lib/x86_64-linux-gnu \
		BOOT_FLAGS='-g -O2 -B/usr/lib/x86_64-linux-gnu'
	$ make
	$ make install

> I heard of a gcc multiarch patchset sent to upstream from debian-gcc
> team - you have an URL?

I'd be interested in the answer to this if there is one, too.

Thanks, Sedat.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Sat Apr 19 15:39:43 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.