c++/9968: Problem with gxx-include-dir

raul@pleyades.net raul@pleyades.net
Wed Mar 5 17:58:00 GMT 2003


>Number:         9968
>Category:       c++
>Synopsis:       When gxx-include-dir contains 'include', its removed...
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 05 17:46:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        3.2.2
>Organization:
>Environment:
System: Linux DervishD 2.4.18 #1 Thu Jul 25 16:31:49 CEST 2002 i686 unknown
	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.2.2/configure --prefix=/user/gccfull/ --with-cpp-install-dir=lib --program-transform-name=s/^c++filt$/gcc-c++filt/ --disable-nls --enable-languages=c,c++ --disable-multilib --disable-version-specific-runtime-libs --with-gxx-include-dir=/user/gccfull/include/myg++ : (reconfigured) ../gcc-3.2.2/configure --prefix=/user/gccfull/ --with-cpp-install-dir=lib --program-transform-name=s/^c++filt$/gcc-c++filt/ --disable-nls --enable-languages=c,c++ --disable-multilib --disable-version-specific-runtime-libs --with-gxx-include-dir=/user/gccfull/include/myg++ : (reconfigured) ../gcc-3.2.2/configure --prefix=/user/gccfull/ --with-cpp-install-dir=lib --program-transform-name=s/^c++filt$/gcc-c++filt/ --disable-nls --enable-languages=c,c++ --disable-multilib --disable-version-specific-runtime-libs --with-gxx-include-dir=/user/gccfull/include/myg++ : (reconfigured) ../gcc-3.2.2/configure --prefix=/user/gccfull/ --with-cpp-install-dir=lib --program-transform-name=s/^!
c++filt$/gcc-c++filt/ --disable-nls --enable-languages=c,c++ --disable-multilib --disable-version-specific-runtime-libs --with-gxx-include-dir=/user/gccfull/include/myg++
>Description:
    When I configure my GCC I want the C++ header files in
/user/gccfull/include/myg++, since I'm doing a test building and I want the
entire GCC under prefix /user/gccfull. Well, if I provide the following flag
to configure: --with-gxx-include-dir=/user/gccfull/include/myg++, the headers
are correctly installed under /user/gccfull/include/myg++, but when compiling,
/user/gccfull//myg++ is searched for headers instead. The function
'update_path', contained in gcc/prefix.c, is removing the 'include' word, and
this makes compilation impossible...

>How-To-Repeat:
    Configure and build with:
    ../gcc-$gcc_version/configure --prefix=/user/gccfull/ --with-cpp-install-dir=lib --program-transform-name='s/^c++filt$/gcc-c++filt/' --disable-nls --enable-languages=c,c++ --disable-multilib --disable-version-specific-runtime-libs --with-gxx-include-dir=/user/gccfull/include/myg++
    make CFLAGS='-O2' BOOT_CFLAGS='-O2' LIBCFLAGS='-g -O2' bootstrap
    make install
>Fix:
    The problem seems to be in update_path, but don't know how it works...
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list