Debian Bug report logs - #682678
/usr/include/features.h referes to bits/predefs.h, but no "bits" link or dir in /usr/include

Package: general; Maintainer for general is debian-devel@lists.debian.org;

Reported by: Alex Adam <lexaia@gmail.com>

Date: Tue, 24 Jul 2012 14:45:01 UTC

Severity: important

Merged with 637232, 639214, 644986, 648889

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#682678; Package libc6-dev. (Tue, 24 Jul 2012 14:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Adam <lexaia@gmail.com>:
New Bug report received and forwarded. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (Tue, 24 Jul 2012 14:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Alex Adam <lexaia@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: /usr/include/features.h referes to bits/predefs.h, but no "bits" link or dir in /usr/include
Date: Tue, 24 Jul 2012 18:44:17 +0400
[Message part 1 (text/plain, inline)]
Package: libc6-dev
Version: 2.13-33
Severity: important

Dear Maintainer,
I've tried to build GCC-4.6.2 on my system from sources.
I've got compilation failed with the following error message:
In file included from /usr/include/stdio.h:28:0,
                 from
/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/tsystem.h:87,
                 from
/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file
or directory

So I checked it and found that neither "bits" dir presents in /usr/include
nor
 a link with this name (to x86_64-linux-gnu/bits/ since there is predefs.h
 in the /usr/include/x86_64-linux-gnu/bits/ dir)

Is creating the correspondent link -- during libc6-dev installation-- a
solution?

gcc version detected and used for the compilation:
  /usr/bin/x86_64-linux-gnu-gcc -> gcc-4.7

The context (from logfile):
make[2]: Entering directory
`/home/lexa/tmb/gcc-4.6.2-build/x86_64-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/home/lexa/tmb/gcc-4.6.2-build/./gcc/xgcc
-B/home/lexa/tmb/gcc-4.6.2-build/./gcc/ \
   -B/home/lexa/.cmd/x86_64-linux-gnu/bin/
-B/home/lexa/.cmd/x86_64-linux-gnu/lib/ \
   -isystem /home/lexa/.cmd/x86_64-linux-gnu/include \
   -isystem /home/lexa/.cmd/x86_64-linux-gnu/sys-include \
   -O2 -O0 -g -O2  -O2 -O0 -g -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
-fno-stack-protector \
   -I. -I. -I../.././gcc -I/home/lexa/arena/cT/search/gcc-4.6.2/libgcc \
   -I/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/. \
   -I/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc \
   -I/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../include \
   -I/home/lexa/arena/cT/search/gcc-4.6.2/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 /home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/libgcc2.c \
          -fvisibility=hidden -DHIDE_EXPORTS
In file included from /usr/include/stdio.h:28:0,
                 from
/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/tsystem.h:87,
                 from
/home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file
or directory
compilation terminated.
make[2]: *** [_muldi3.o] Error 1
make[2]: Leaving directory
`/home/lexa/tmb/gcc-4.6.2-build/x86_64-linux-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/lexa/tmb/gcc-4.6.2-build'
make: *** [all] Error 2

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6-dev depends on:
ii  libc-dev-bin    2.13-33
ii  libc6           2.13-33
ii  linux-libc-dev  3.2.21-3

Versions of packages libc6-dev recommends:
ii  gcc [c-compiler]      4:4.7.1-1
ii  gcc-4.4 [c-compiler]  4.4.7-1
ii  gcc-4.6 [c-compiler]  4.6.3-8
ii  gcc-4.7 [c-compiler]  4.7.1-2

Versions of packages libc6-dev suggests:
pn  glibc-doc     <none>
ii  manpages-dev  3.40-0.1

-- no debconf information
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, GNU Libc Maintainers <debian-glibc@lists.debian.org>:
Bug#682678; Package libc6-dev. (Tue, 24 Jul 2012 16:42:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to GNU Libc Maintainers <debian-glibc@lists.debian.org>. (Tue, 24 Jul 2012 16:42:03 GMT) Full text and rfc822 format available.

Message #10 received at 682678@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Alex Adam <lexaia@gmail.com>
Cc: 682678@bugs.debian.org
Subject: Re: /usr/include/features.h referes to bits/predefs.h, but no "bits" link or dir in /usr/include
Date: Tue, 24 Jul 2012 11:38:48 -0500
# affects many libraries, not just libc
reassign 682678 general
merge 637232 682678
quit

Hi Alex,

Alex Adam wrote:

> I've tried to build GCC-4.6.2 on my system from sources.
> I've got compilation failed with the following error message:
> In file included from /usr/include/stdio.h:28:0,
>                  from
> /home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/tsystem.h:87,
>                  from
> /home/lexa/arena/cT/search/gcc-4.6.2/libgcc/../gcc/libgcc2.c:29:
> /usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory

This is http://gcc.gnu.org/PR53468

As mentioned in /usr/share/doc/libc6/NEWS.Debian.gz, using

	LIBRARY_PATH=/usr/lib/$(gcc -print-multiarch)
	CPATH=/usr/include/$(gcc -print-multiarch)
	export LIBRARY_PATH CPATH

before the usual

	./configure <configure args>
	make

is supposed to work around it.  Does it work for you?

Curious,
Jonathan



Bug reassigned from package 'libc6-dev' to 'general'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 24 Jul 2012 16:42:04 GMT) Full text and rfc822 format available.

No longer marked as found in versions eglibc/2.13-33. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 24 Jul 2012 16:42:05 GMT) Full text and rfc822 format available.

Added indication that 682678 affects release-notes,libc6-dev Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 24 Jul 2012 16:51:05 GMT) Full text and rfc822 format available.

Merged 637232 639214 644986 648889 682678 Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Tue, 24 Jul 2012 16:51:07 GMT) Full text and rfc822 format available.

Merged 637232 639214 644986 648889 682678 Request was from Aurelien Jarno <aurel32@debian.org> to control@bugs.debian.org. (Wed, 25 Jul 2012 07:15:04 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Apr 17 11:03:20 2014; Machine Name: beach.debian.org

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