NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/46278: gcc -pg with pthread does not work on 6.0_BETA/i386
>Number: 46278
>Category: lib
>Synopsis: gcc -pg with pthread does not work on 6.0_BETA/i386
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 29 02:15:00 +0000 2012
>Originator: Tetsuya Isaki
>Release: NetBSD 6.0_BETA/i386
>Organization:
>Environment:
NetBSD xxxxxxxxxx 6.0_BETA NetBSD 6.0_BETA (GENERIC) i386
>Description:
Profile with pthread does not output gmon.out on 6.0_BETA/i386.
-----
% uname -srm
NetBSD 6.0_BETA i386
% cat tmp.c
#include <pthread.h>
void *run(void *arg)
{
pthread_detach(pthread_self());
}
int main(void)
{
int i;
pthread_t tid;
for (i = 0; i < 8; i++) {
pthread_create(&tid, NULL, &run, NULL);
}
pthread_exit(NULL);
}
% gcc -pg -g tmp.c -lpthread
/usr/lib/libc.so.12: warning: warning: this program uses xdr_peername(), which
is deprecated and buggy.
/usr/lib/libc.so.12: warning: warning: __findenv is an internal obsolete
function.
/usr/lib/libc.so.12: warning: warning: this program uses xdr_mapname(), which
is deprecated and buggy.
/usr/lib/libc.so.12: warning: warning: this program uses xdr_domainname(),
which is deprecated and buggy.
ld: warning: type and size of dynamic symbol `__stop_link_set_all_categories'
are not defined
ld: dynamic variable `__stop_link_set_all_categories' is zero size
ld: warning: type and size of dynamic symbol `__start_link_set_all_categories'
are not defined
ld: dynamic variable `__start_link_set_all_categories' is zero size
% ls
a.out tmp.c
% ./a.out
% ls
a.out tmp.c
%
-----
See also
http://mail-index.netbsd.org/netbsd-users/2011/03/06/msg007966.html
and
http://gnats.netbsd.org/39537
>How-To-Repeat:
see avobe.
>Fix:
N/A
Home |
Main Index |
Thread Index |
Old Index