[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#635685: general: gcc -m32 has no access to system-specific includes in multiarch world



On 2011-07-29 09:58 +0200, Sven Joachim wrote:

On 2011-07-29 09:58 +0200, Sven Joachim wrote:

> On 2011-07-28 23:53 +0200, Steve Langasek wrote:
>
>> On Thu, Jul 28, 2011 at 11:39:50AM +0200, Sven Joachim wrote:
>>> ,----
>>> | $ LANG=C debian/rules build-64
>>> | [...]
>>> | make[2]: Entering directory `/usr/local/src/deb-src/ncurses/ncurses/obj-64/ncurses'
>>> | gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses
>>> | -I/usr/local/src/deb-src/ncurses/ncurses/ncurses
>>> | -I/usr/local/src/deb-src/ncurses/ncurses/ncurses/../include
>>> | -I../include -DUSE_BUILD_CC
>>> | /usr/local/src/deb-src/ncurses/ncurses/ncurses/tinfo/make_hash.c
>>> | In file included from /usr/include/stdlib.h:320:0,
>>> |                  from /usr/local/src/deb-src/ncurses/ncurses/ncurses/build.priv.h:61,
>>> |                  from /usr/local/src/deb-src/ncurses/ncurses/ncurses/tinfo/make_hash.c:40:
>>> | /usr/include/i386-linux-gnu/sys/types.h:99:17: error: two or more data types in declaration specifiers
>>> | make[2]: *** [make_hash] Error 1
>>> | make[2]: Leaving directory `/usr/local/src/deb-src/ncurses/ncurses/obj-64/ncurses'
>>> | make[1]: *** [all] Error 2
>>> | make[1]: Leaving directory `/usr/local/src/deb-src/ncurses/ncurses/obj-64'
>>> | make: *** [build-64] Error 2
>>> `----
>>
>>> It seems libc6-dev multiarch support needs to go back to the drawing
>>> board again.
>>
>> Sven, please file a separate bug report for this issue.
>
> Will do so soon.

On closer examination, this is probably such not a different issue after
all.  The output of `configure' is not quite what it should be:

,----
| checking for sys/types.h... no
| checking for sys/stat.h... no
| checking for stdlib.h... no
| checking for string.h... no
| checking for memory.h... no
| checking for strings.h... no
| checking for inttypes.h... no
| checking for stdint.h... no
| checking for unistd.h... no
`----

In config.log I find 106 occurrences of

/usr/include/gnu/stubs.h:9:27: fatal error: gnu/stubs-64.h: No such file or directory

All are similar to this one:

configure:7051: gcc -m64 -c -g -O2  -D_GNU_SOURCE conftest.c >&5
In file included from /usr/include/features.h:388:0,
                 from /usr/include/sys/types.h:26,
                 from configure:7037:
/usr/include/gnu/stubs.h:9:27: fatal error: gnu/stubs-64.h: No such file or directory

Cheers,
       Sven



Reply to: