This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: How to get debug mode version of libstdc++ when compiling GCC
- From: "Pit Cuppens" <pcuppens at gmx dot net>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 23 Jul 2004 14:03:01 +0200 (MEST)
- Subject: Re: How to get debug mode version of libstdc++ when compiling GCC
Dear all,
Thanks so far for your help. However, I still do not
manage to get debug support with GCC 3.3.2 and libstdc++.
(GCC 3.4 is not an option because a library I use does
not compile under it.)
I downloaded GCC 3.3.2, created the objdir and configured
GCC using
../gcc-3.3.2/configure --enable-languages=c++ \
--enable-debug --enable-libstdcxx-debug
make bootstrap and make install work fine, but
strangely, the directory include/c++/3.3.2/
(i.e., the place where the std library is copied
to by 'make install') does not contain any source
file containing '_GLIBCXX_DEBUG'. In other words,
the debug code is not installed.
Does anybody know where the problem lies?
Note that the command
more sparc-sun-solaris2.9/libstdc++-v3/config.status
(within the objdir directory) really shows that
the configuration options '--enable-debug
--enable-libstdcxx-debug' were passed to libstdc++:
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host pipi:
#
# /home/pc/gcc-3.3.2/libstdc++-v3/configure --cache-file=../config.cache
--host=sparc-sun-solaris2.9 --build=sparc-sun-solaris2.9 --enable-multilib
--with-gcc-ve
rsion-trigger=/home/pc/gcc-3.3.2/gcc/version.c --prefix=/home/pc/software/
gcc-3.3.2/ --enable-languages=c++ --enable-debug --enable-libstdcxx-debug
--srcdir=.
./../../gcc-3.3.2/libstdc++-v3 --with-target-subdir=sparc-sun-solaris2.9
#
# Compiler output produced by configure, useful for debugging
...
After this, I felt somewhat nervous and did a
make CXXFLAGS='-g3 -O0' all
in the objdir, not really knowing what I do.
But still, the debug mode doesn't work.
Thanks in advance for any help!
Pit
--
+++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
Bis 24.000 MB oder 300 Freistunden inkl. http://www.gmx.net/de/go/dsl