Re: GCC 4.7.0 compiling problem Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



10.4.2012 12:44, Jonathan Wakely kirjoitti:
On 10 April 2012 09:23, Kai Ruottu wrote:
Knowing that eglibc for Ubuntu has those 'libc6-dbg_*.deb'
install packages, one can only wonder what are they for and
whether they would be required to be used with a debug-enabled
'libstdc++' ?

That they are obligatory if one wants a debug -enabled libstdc++
sounds quite obvious for me.

As someone who's never used Ubuntu it's not at all obvious to me.
What do those .deb files do and why are they needed to build libstdc++
with CXXFLAGS='-g3 -O0 -fno-inline' ?

For pure curiousity I looked inside one of the recent Ubuntu
'libc6-dbg_*' archives and saw :

drwxr-xr-x root/root         0 2012-03-07 04:20 ./
drwxr-xr-x root/root         0 2012-03-07 04:20 ./usr/
drwxr-xr-x root/root         0 2012-03-07 04:17 ./usr/lib/
drwxr-xr-x root/root         0 2012-03-07 04:19 ./usr/lib/debug/
drwxr-xr-x root/root         0 2012-03-07 04:17 ./usr/lib/debug/lib/
drwxr-xr-x root/root 0 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/ -rwxr-xr-x root/root 665826 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/ld-2.13.so -rw-r--r-- root/root 58503 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libanl-2.13.so -rw-r--r-- root/root 15325 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libBrokenLocale-2.13.so -rwxr-xr-x root/root 8121050 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libc-2.13.so -rw-r--r-- root/root 93608 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libcidn-2.13.so -rw-r--r-- root/root 123890 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libcrypt-2.13.so -rw-r--r-- root/root 92486 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.13.so -rw-r--r-- root/root 877763 2012-03-07 04:17 ./usr/lib/debug/lib/x86_64-linux-gnu/libm-2.13.so

etc...

So they include some substitutes for the usual shared and static
libraries put into the '/usr/lib/debug/lib/x86_64-linux-gnu'.
Maybe the '-g3' etc. will cause some extra option for the Ubuntu's
native linker to use only this stuff ?

Generally neither I am aware of all the odd things in Ubuntu, so
everything is pure guess...

Are you sure that the 'libc6-dbg_*.deb'
package(s) is/are installed?


With gcc 4.6.2 all works well.


Maybe with gcc-4.6.2 accepts the usual non-debug eglibc to be
linked with a debug-enabled libstdc++ ?

That's what I would expect.

The usual "look where did the smoke rise" methods should help also
in this case so looking at the 'config.log' in the :

$BUILD/$target/libstdc++-v3/src/debug

should tell where and when the smoke appeared...


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux