NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
toolchain/57321: ATF test case usr.bin/cc/t_hello:hello_profile fails on RPI02W/evbarm only
>Number: 57321
>Category: toolchain
>Synopsis: ATF test case usr.bin/cc/t_hello:hello_profile fails on RPI02W/evbarm only
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 03 23:00:01 +0000 2023
>Originator: Jim Spath
>Release: 10.0_BETA
>Organization:
>Environment:
NetBSD apie 10.0_BETA NetBSD 10.0_BETA (GENERIC) #0: Fri Jan 13 19:15:32 UTC 2023 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC evbarm
>Description:
Automated test framework test case hello_profile failed on a Raspberry Pi Zero 2W. The other tests passed, and this case passes on other architectures I have tried.
tc-end: 1680560733.140145, hello_profile, failed, atf-check failed; see the output of the test for details
tp-end: 1680560733.159462, usr.bin/cc/t_hello
CC version:
$ cc --version
cc (nb1 20220722) 10.4.0
>How-To-Repeat:
$ atf-run usr.bin/cc/t_hello:hello_profile
Results on failing system:
tp-start: 1680560730.920274, usr.bin/cc/t_hello, 1
tc-start: 1680560730.920346, 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//ccMzpBuD.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(atomic_init_cas.po): in function `__libc_atomic_init':
tc-se:atomic_init_cas.c:(.text.startup+0x4): 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):tls.c:(.text+0xcc): more undefined references to `__gnu_mcount_nc' follow
tc-se:
tc-end: 1680560733.140145, hello_profile, failed, atf-check failed; see the output of the test for details
tp-end: 1680560733.159462, usr.bin/cc/t_hello
info: time.end, Mon Apr 3 22:25:33 UTC 2023
Using the cc command line "cc -o testcase_pg -pg testcase.c" generates errors outside the test framework with the same hello.c code.
$ cc -o testcase_pg -pg testcase.c
ld: /tmp//ccxyF2mE.o: in function `main':
testcase.c:(.text+0xc): undefined reference to `__gnu_mcount_nc'
ld: /usr/lib/libc_p.a(initfini.po): in function `_dlauxinfo':
initfini.c:(.text+0x4): undefined reference to `__gnu_mcount_nc'
ld: /usr/lib/libc_p.a(initfini.po): in function `_libc_init':
initfini.c:(.text.startup+0x8): undefined reference to `__gnu_mcount_nc'
ld: /usr/lib/libc_p.a(atomic_init_cas.po): in function `__libc_atomic_init':
atomic_init_cas.c:(.text.startup+0x4): undefined reference to `__gnu_mcount_nc'
ld: /usr/lib/libc_p.a(tls.po): in function `_rtld_tls_allocate':
tls.c:(.text+0xc): undefined reference to `__gnu_mcount_nc'
ld: /usr/lib/libc_p.a(tls.po):tls.c:(.text+0xcc): more undefined references to `__gnu_mcount_nc' follow
>Fix:
Unknown.
Home |
Main Index |
Thread Index |
Old Index