[lsb-discuss] Strange include bug /opt/lsb/include/c++/backward not working

Mats Wichmann mats at wichmann.us
Thu Feb 6 13:53:58 UTC 2014


On 02/06/2014 06:48 AM, Mats Wichmann wrote:
> On 02/06/2014 06:21 AM, Klug, Stefan wrote:
>> Hi everybody,
>>
>> I have a rather strange bug, where /opt/lsb/include/c++/backward is not correctly added to the system include paths.
>> I'm on Ubuntu 13.10, gcc 4.8.1, lsb sdk 4.1.7-1.x86_64
>>
>> To reproduce the bug, simply execute the following:
>> touch test.cpp
>> lsbc++ -v --lsb-verbose test.cpp
>>
>> I've added the output of this command to the bottom of the email. The interesting this is the message:
>> ignoring nonexistent directory " /opt/lsb/include/c++/backward"
>> Note the space at the beginning of the path name. I've no idea how this space made its way into the pathname, but it prevents gcc from adding the path to the system includes.
>>
>> Can anyone confirm this bug?
> 
>> ignoring nonexistent directory " /opt/lsb/include/c++/backward"
> 
> sheesh, it's just been a couple of bad weeks for poor lsbcc :)
> 
> yes, I see the same output, and it makes no sense at all, since the path
> looks fine in the verbose line.
> 
> however, I don't like how this argument is being added, and "fixing" it
> to look like how the main C++ path is added makes the complaint go away
> (also don't quite know why yet).  Would you be able to put your report
> into a bug?  bugs.linuxbase.org

fwiw, after a minor tweak the output for me looks like this, which is
healthier looking:

GNU C++ (GCC) version 4.8.2 20131212 (Red Hat 4.8.2-7) (x86_64-redhat-linux)
        compiled by GNU C version 4.8.2 20131212 (Red Hat 4.8.2-7), GMP
version 5.1.1, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.8.2/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/lsb/include/libpng15
 /opt/lsb/include
 /opt/lsb/include/c++
 /opt/lsb/include/c++/backward
 /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2
 /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/x86_64-redhat-linux
 /usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../include/c++/4.8.2/backward
 /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include
 /usr/local/include
 /usr/include
End of search list.


More information about the lsb-discuss mailing list