Bug 46293 - ld hangs when linking to glibc-profile
ld hangs when linking to glibc-profile
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-06-27 14:27 EDT by roystgnr
Modified: 2007-04-18 12:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-06-27 14:27:11 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description roystgnr 2001-06-27 14:27:07 EDT
Description of Problem:
When using gcc (either 2.96-81 or 2.96-85) to compile even a simple C 
test program against glibc-profile (2.2.2-10), the command "gcc -o test 
test.c -lc_p" hangs, while the ld process consumes 99% CPU time.  Even 
the most simple "int main(void){return 0;}" test.c exhibits this 
behavior, and the presence or absence of the "-pg" flag (I admit, this is 
my first time using gprof in years) doesn't make a difference.

How Reproducible: Every time.

Steps to Reproduce:
1. echo "int main(void){return 0;}" > test.c
2. gcc -o test -pg test.c -lc_p &
3. top

Actual Results:

Expected Results:

Additional Information:
Comment 1 Jakub Jelinek 2001-08-09 09:29:21 EDT
You're trying to link in 2 different glibc's (one statical libc_p.a, one
shared library).
This cannot work.
Use gcc -o test -static -profile -pg test.c
(-profile will ensure libc_p.a is linked in).

Note You need to log in before you can comment on or make changes to this bug.