NetBSD Problem Report #56961
From martin@duskware.de Tue Aug 9 09:22:54 2022
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 5A74C1A921F
for <gnats-bugs@gnats.NetBSD.org>; Tue, 9 Aug 2022 09:22:54 +0000 (UTC)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: compiling profiled userland code (-static -pg) does not work evbarm
X-Send-Pr-Version: 3.95
>Number: 56961
>Category: toolchain
>Synopsis: compiling profiled userland code (-static -pg) does not work evbarm
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 09 09:25:00 +0000 2022
>Originator: Martin Husemann
>Release: NetBSD 9.99.99
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD unpluged.duskware.de 9.99.99 NetBSD 9.99.99 (UNPLUGED) #449: Tue Aug 9 09:35:45 CEST 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbarm/compile/UNPLUGED evbarm
Architecture: earmv5
Machine: evbarm
>Description:
Here is output from the t_hello test that tries to exercise -static -pg
compilation:
tc-start: 1660036664.722507, hello_profile
tc-so:Executing command [ cc -static -o hello -pg test.c ]
tc-se:Fail: incorrect exit status: 1, expected: 0
tc-se:stdout:
tc-se:
tc-se:stderr:
tc-se:ld: /tmp//ccHqUrbD.o: in function `main':
tc-se:test.c:(.text+0xc): undefined reference to `__gnu_mcount_nc'
tc-se:ld: /usr/lib/libc_p.a(initfini.po): in function `_dlauxinfo':
tc-se:initfini.c:(.text+0x4): undefined reference to `__gnu_mcount_nc'
tc-se:ld: /usr/lib/libc_p.a(initfini.po): in function `_libc_init':
tc-se:initfini.c:(.text.startup+0x8): undefined reference to `__gnu_mcount_nc'
tc-se:ld: /usr/lib/libc_p.a(tls.po): in function `_rtld_tls_allocate':
tc-se:tls.c:(.text+0xc): undefined reference to `__gnu_mcount_nc'
tc-se:ld: /usr/lib/libc_p.a(tls.po): in function `_rtld_tls_free':
tc-se:tls.c:(.text+0xd0): undefined reference to `__gnu_mcount_nc'
tc-se:ld: /usr/lib/libc_p.a(tls.po):tls.c:(.text+0x104): more undefined references to `__gnu_mcount_nc' follow
tc-se:
tc-end: 1660036667.364088, hello_profile, failed, atf-check failed; see the output of the test for details
tp-end: 1660036667.367092, t_hello
>How-To-Repeat:
cd /usr/tests/usr.bin/cc && atf-run t_hello
>Fix:
n/a
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.