Bug 104104
Summary: | C++ compiler doesn't find libstdc++ headers | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Ulrich Drepper <drepper> |
Component: | gcc | Assignee: | Diego Novillo <dnovillo> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | bennet, dff |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-09-11 15:00:53 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 97942 |
Description
Ulrich Drepper
2003-09-09 21:33:27 UTC
Jakub suggested running this: $ g++-ssa -v -E -xc++ /dev/null 2>&1 | grep include ignoring nonexistent directory "/lib/include/c++/3.5-tree-ssa" ignoring nonexistent directory "/lib/include/c++/3.5-tree-ssa/ia64-redhat-linux-gnu" ignoring nonexistent directory "/lib/include/c++/3.5-tree-ssa/backward" ignoring nonexistent directory "/lib/ia64-redhat-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /lib/ssa/gcc-lib/ia64-redhat-linux-gnu/3.5-tree-ssa/include /usr/include I.e., it's "just" the wrong prefix with which gcc is compiled. This appears to be caused by cc1plus looking for its /usr/include/c++ headers by means of relative traversal from the gcc-lib directory: /lib/ssa/gcc-lib/i386-redhat-linux-gnu/3.5-tree-ssa/../../../../include/c++/3.5-tree-ssa If $libdir=/usr/lib, this works If $libdir=/lib/ssa, this works not I hacked the gcc-ssa.spec file to force g++ includes into /lib/ssa. The new .37 release should work. I tested .38 and it indeed works, at least for my test cases. |