Bug#898323: g++-8 -m32 do not find bits/c++config.h

2018-05-11 Thread Matthias Klose
On 11.05.2018 04:51, James Cowgill wrote:
> Hi,
> 
> On 11/05/18 00:55, Matthias Klose wrote:
>> On 10.05.2018 11:24, Bill Allombert wrote:
>>> Package: g++-8
>>> Version: 8.1.0-1
>>> Severity: normal
>>>
>>> Hello GCC maintainers,
>>>
>>> trying to the attached dummy file with g++-8 fails:
>>>
>>> g++-8 -m32 hello.c
>>> In file included from /usr/include/c++/8/stdlib.h:36,
>>>  from hello.c:1:
>>> /usr/include/c++/8/cstdlib:41:10: fatal error: bits/c++config.h: No such 
>>> file or directory
>>>  #include 
>>>   ^~
>>> compilation terminated.
>>>
>>> g++-8-multilib is installed.
>>> This work with g++-7 and g++-6
>>> Maybe this is related to
>>>  "* Stop providing the 8.x.y symlinks in gcc_lib_dir and incluce/c++.  "
>>
>> works for me.
> 
> I get the same error in a clean sid chroot. I've attached the whole log
> which may be useful.

found the issue. pending.



Bug#898323: g++-8 -m32 do not find bits/c++config.h

2018-05-11 Thread James Cowgill
Hi,

On 11/05/18 00:55, Matthias Klose wrote:
> On 10.05.2018 11:24, Bill Allombert wrote:
>> Package: g++-8
>> Version: 8.1.0-1
>> Severity: normal
>>
>> Hello GCC maintainers,
>>
>> trying to the attached dummy file with g++-8 fails:
>>
>> g++-8 -m32 hello.c
>> In file included from /usr/include/c++/8/stdlib.h:36,
>>  from hello.c:1:
>> /usr/include/c++/8/cstdlib:41:10: fatal error: bits/c++config.h: No such 
>> file or directory
>>  #include 
>>   ^~
>> compilation terminated.
>>
>> g++-8-multilib is installed.
>> This work with g++-7 and g++-6
>> Maybe this is related to
>>  "* Stop providing the 8.x.y symlinks in gcc_lib_dir and incluce/c++.  "
> 
> works for me.

I get the same error in a clean sid chroot. I've attached the whole log
which may be useful.

Neither of these directories are in the include path:
 /usr/include/x86_64-linux-gnu/c++/8/
 /usr/include/x86_64-linux-gnu/c++/8/x32/
But this one (which doesn't exist) is:
 /usr/include/i386-linux-gnu/c++/8

James
root@LDT-J-COWGILL:~# schroot -c sid-amd64-sbuild
(sid-amd64-sbuild)root@LDT-J-COWGILL:~# apt-get install g++-8-multilib
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following additional packages will be installed:
  cpp-8 g++-8 gcc-7-multilib gcc-8 gcc-8-multilib gcc-multilib lib32asan4 lib32asan5 lib32atomic1 lib32cilkrts5 lib32gcc-7-dev lib32gcc-8-dev lib32gcc1 lib32gomp1 lib32itm1 lib32mpx2 lib32quadmath0
  lib32stdc++-8-dev lib32stdc++6 lib32ubsan0 lib32ubsan1 libasan5 libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32 libgcc-8-dev libstdc++-8-dev libubsan1 libx32asan4 libx32asan5 libx32atomic1 libx32cilkrts5
  libx32gcc-7-dev libx32gcc-8-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++-8-dev libx32stdc++6 libx32ubsan0 libx32ubsan1
Suggested packages:
  gcc-8-locales gcc-8-doc libstdc++6-8-dbg lib32stdc++6-8-dbg libx32stdc++6-8-dbg libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan5-dbg liblsan0-dbg libtsan0-dbg libubsan1-dbg libmpx2-dbg
  libquadmath0-dbg libstdc++-8-doc
The following NEW packages will be installed:
  cpp-8 g++-8 g++-8-multilib gcc-7-multilib gcc-8 gcc-8-multilib gcc-multilib lib32asan4 lib32asan5 lib32atomic1 lib32cilkrts5 lib32gcc-7-dev lib32gcc-8-dev lib32gcc1 lib32gomp1 lib32itm1 lib32mpx2
  lib32quadmath0 lib32stdc++-8-dev lib32stdc++6 lib32ubsan0 lib32ubsan1 libasan5 libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32 libgcc-8-dev libstdc++-8-dev libubsan1 libx32asan4 libx32asan5 libx32atomic1
  libx32cilkrts5 libx32gcc-7-dev libx32gcc-8-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++-8-dev libx32stdc++6 libx32ubsan0 libx32ubsan1
0 upgraded, 44 newly installed, 0 to remove and 0 not upgraded.
Need to get 149 MB of archives.
After this operation, 691 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://deb.debian.org/debian sid/main amd64 cpp-8 amd64 8.1.0-1 [39.9 MB]
Get:2 http://deb.debian.org/debian sid/main amd64 libasan5 amd64 8.1.0-1 [360 kB]
Get:3 http://deb.debian.org/debian sid/main amd64 libubsan1 amd64 8.1.0-1 [119 kB]
Get:4 http://deb.debian.org/debian sid/main amd64 libgcc-8-dev amd64 8.1.0-1 [2295 kB]
Get:5 http://deb.debian.org/debian sid/main amd64 gcc-8 amd64 8.1.0-1 [39.3 MB]
Get:6 http://deb.debian.org/debian sid/main amd64 libstdc++-8-dev amd64 8.1.0-1 [1525 kB]
Get:7 http://deb.debian.org/debian sid/main amd64 g++-8 amd64 8.1.0-1 [42.5 MB]
Get:8 http://deb.debian.org/debian sid/main amd64 libc6-i386 amd64 2.27-3 [2855 kB]
Get:9 http://deb.debian.org/debian sid/main amd64 libc6-dev-i386 amd64 2.27-3 [2020 kB]
Get:10 http://deb.debian.org/debian sid/main amd64 libc6-x32 amd64 2.27-3 [3053 kB]
Get:11 http://deb.debian.org/debian sid/main amd64 libc6-dev-x32 amd64 2.27-3 [ kB]
Get:12 http://deb.debian.org/debian sid/main amd64 lib32gcc1 amd64 1:8.1.0-1 [47.8 kB]
Get:13 http://deb.debian.org/debian sid/main amd64 libx32gcc1 amd64 1:8.1.0-1 [40.5 kB]
Get:14 http://deb.debian.org/debian sid/main amd64 lib32gomp1 amd64 8.1.0-1 [82.1 kB]
Get:15 http://deb.debian.org/debian sid/main amd64 libx32gomp1 amd64 8.1.0-1 [77.2 kB]
Get:16 http://deb.debian.org/debian sid/main amd64 lib32itm1 amd64 8.1.0-1 [29.7 kB]
Get:17 http://deb.debian.org/debian sid/main amd64 libx32itm1 amd64 8.1.0-1 [27.9 kB]
Get:18 http://deb.debian.org/debian sid/main amd64 lib32atomic1 amd64 8.1.0-1 [8356 B]
Get:19 http://deb.debian.org/debian sid/main amd64 libx32atomic1 amd64 8.1.0-1 [ B]
Get:20 http://deb.debian.org/debian sid/main amd64 lib32stdc++6 amd64 8.1.0-1 [407 kB]
Get:21 http://deb.debian.org/debian sid/main amd64 lib32asan5 amd64 8.1.0-1 [368 kB]
Get:22 http://deb.debian.org/debian sid/main amd64 libx32stdc++6 amd64 8.1.0-1 [381 kB]
Get:23 http://deb.debian.org/debian sid/main amd64 libx32asan5 amd64 8.1.0-1 [353 kB]
Get:24 http://deb.debian.org/debian sid/main amd64 lib32ubsan1 amd64 8.1.0-1 [134 kB]
Get:25 http://deb.debian.org/debian 

Bug#898323: g++-8 -m32 do not find bits/c++config.h

2018-05-10 Thread Matthias Klose
On 10.05.2018 11:24, Bill Allombert wrote:
> Package: g++-8
> Version: 8.1.0-1
> Severity: normal
> 
> Hello GCC maintainers,
> 
> trying to the attached dummy file with g++-8 fails:
> 
> g++-8 -m32 hello.c
> In file included from /usr/include/c++/8/stdlib.h:36,
>  from hello.c:1:
> /usr/include/c++/8/cstdlib:41:10: fatal error: bits/c++config.h: No such file 
> or directory
>  #include 
>   ^~
> compilation terminated.
> 
> g++-8-multilib is installed.
> This work with g++-7 and g++-6
> Maybe this is related to
>  "* Stop providing the 8.x.y symlinks in gcc_lib_dir and incluce/c++.  "

works for me.



Bug#898323: g++-8 -m32 do not find bits/c++config.h

2018-05-10 Thread Bill Allombert
Package: g++-8
Version: 8.1.0-1
Severity: normal

Hello GCC maintainers,

trying to the attached dummy file with g++-8 fails:

g++-8 -m32 hello.c
In file included from /usr/include/c++/8/stdlib.h:36,
 from hello.c:1:
/usr/include/c++/8/cstdlib:41:10: fatal error: bits/c++config.h: No such file 
or directory
 #include 
  ^~
compilation terminated.

g++-8-multilib is installed.
This work with g++-7 and g++-6
Maybe this is related to
 "* Stop providing the 8.x.y symlinks in gcc_lib_dir and incluce/c++.  "

ii  g++-8  8.1.0-1amd64  GNU C++ compiler
ii  g++-8-multilib 8.1.0-1amd64  GNU C++ compiler (multilib 
support)
ii  lib32stdc++-8-dev  8.1.0-1amd64  GNU Standard C++ Library 
v3 (development

Cheers,
Bill.
#include 
int main(void)
{
  return 1;
}