public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: ian.grant@cl.cam.ac.uk To: gcc-gnats@gcc.gnu.org Subject: c++/8477: autoconf script chooses wrong value for gcc_gxx_include_path Date: Wed, 06 Nov 2002 05:06:00 -0000 [thread overview] Message-ID: <20021106125829.17812.qmail@sources.redhat.com> (raw) >Number: 8477 >Category: c++ >Synopsis: autoconf script chooses wrong value for gcc_gxx_include_path >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Nov 06 05:06:04 PST 2002 >Closed-Date: >Last-Modified: >Originator: ian.grant@cl.cam.ac.uk >Release: gcc-3.1 >Organization: >Environment: >Description: When determining the default g++ include directory gcc/configure.in assumes that libdir=$(exec_prefix)/lib which is not always the case. in gcc/configure.in we have: if test x${gcc_gxx_include_dir} = x; then if test x${enable_version_specific_runtime_libs} = xyes; then gcc_gxx_include_dir='${libsubdir}/include/g++' else topsrcdir=${srcdir}/.. . ${srcdir}/../config.if changequote(<<, >>)dnl gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir} changequote([, ])dnl fi fi in libstdc++-v3/aclocal.m4 (in the definition of GLIBCPP_EXPORT_INSTALL_INFO used in libstdc++-v3/configure.in) we have # Default case for install directory for include files. if test $version_specific_libs = no && test $gxx_include_dir = no; then gxx_include_dir='$(prefix)'/include/g++-${libstdcxx_interface} fi So in the case where libdir=/usr/lib/gnu/gcc and prefix=/usr we get /usr/lib/gnu/gcc/gcc-lib/sparc-sun-solaris2.8/3.1/../../../../include/g++-v3 for the search path and /usr/include/g++-v3 for the install path. This is wrong. Workaround: Configure with --with-gxx-include-dir=/usr/include/g++-v3 >How-To-Repeat: ../gcc-3.1/configure --prefix=/usr \ --libdir=/usr/lib/gnu/gcc \ --enable-languages=c,c++ make bootstrap make install The resulting g++ will not find the c++ include files installed under /usr/include/g++-v3 >Fix: Use the same logic to determine both the installation and the search paths? :-) >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-11-06 13:06 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-11-06 5:06 ian.grant [this message] 2002-11-06 14:46 Phil Edwards 2003-01-08 2:42 bangerth 2003-01-13 3:26 John Tang Boyland 2003-05-12 11:28 steven
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20021106125829.17812.qmail@sources.redhat.com \ --to=ian.grant@cl.cam.ac.uk \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).