Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25878 - glibc has strange remnants of creation path
Summary: glibc has strange remnants of creation path
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-04 08:41 UTC by Klaus-J. Wolf
Modified: 2003-10-21 01:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus-J. Wolf 2003-08-04 08:41:49 UTC
While trying to debug a small program with DDD, a popup dialog appeared:

DDD: No Source
/var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crti.S: No such
file or directory

I suppose since there should be no trace, nowhere, of this path, it's a problem
of the glibc ebuild.

I have compiled my small programm with: "cc -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -Wall ..."
I guess there should be no necessity to search for glibc sources in this case.

Proof:

kjwolf@golulu $ grep /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/ `grep
^obj /var/db/pkg/sys-libs/glibc-2.3.2-r1/CONTENTS |cut -d\  -f2`

Binary file /usr/lib/libpthread.a matches
Binary file /usr/lib/crt1.o matches
Binary file /usr/lib/crti.o matches
Binary file /usr/lib/crtn.o matches
Binary file /usr/lib/gcrt1.o matches
Binary file /usr/lib/libc.a matches
Binary file /usr/lib/libm.a matches


Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2003-08-04 15:27:33 UTC
i'm pretty sure this is a WONTFIX ... 
 
yeah, the binaries record where their source came from so that if you leave the 
src on your hd, gdb/whoever can locate it ... 
 
after all, what would you replace the path with ? 
/usr/src/glibc ? 
/usr/local/src/glibc ? 
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-08-04 21:12:53 UTC
Yep.
Comment 3 Klaus-J. Wolf 2003-08-13 19:03:10 UTC
To SpanKY:

A neutral path?

The remnants of something happening during build process somewhere in a local path is never a good choice...
Comment 4 SpanKY gentoo-dev 2003-08-13 20:06:37 UTC
how would you define a 'neutral path' ?  besides, if you wish to debug the library, 
in order to get the source, you just have to run `ebuild <ebuild> unpack` and 
*bam* the src is there for your debugging pleasure ... 
 
as for remnants of the build process, we didnt 'choose' it, the package does it 
automagically ... 
Comment 5 Benjamin Collins 2003-10-20 22:24:38 UTC
I've been having this problem recently too.  I startup gdb, and it says:

This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

Then, I type break main, and it reports a breakpoint at an address (instead
of at a file:line).  I compiled my code with -g and tried it, and then I
tried it with -ggdb, same results.  

Then, I type "run", and it does break at the address for main, but then when
I type "l", it says:

(gdb) l
1       /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crti.S:
No such file or directory.
        in /var/tmp/portage/glibc-2.3.2-r1/work/glibc-2.3.2/buildhere/csu/crti.S

I remerged gdb, but it didn't fix anything.  I don't see how this can be
a "WONTFIX".  There's clearly a problem somewhere, even if it's not really
in gdb.
Comment 6 SpanKY gentoo-dev 2003-10-20 23:03:04 UTC
this is not a bug

if you want the glibc source laying around on your hard drive to debug with,
then by all means, keep it there:

FEATURES="keepwork" emerge glibc

your 'problem' is that you're trying to break in the middle of a glibc routine
... in theory glibc shouldn't be breaking your application so you shouldn't
be breaking in the middle of said routine, but we know glibc aint perfect
:)
Comment 7 Benjamin Collins 2003-10-20 23:24:03 UTC
umm...I'm not breaking in the middle of a glibc routine.  I'm breaking main(),
as I said before.  I should be able to break main() in my own program regardless
of what parts of the glibc source are lying around.
Comment 8 Benjamin Collins 2003-10-21 01:59:35 UTC
Ummm....I feel very foolish now.  I actually *wasn't* compiling with '-g'.

Problem solved.  

/me slaps himself for programming this late at night