NetBSD Problem Report #56734

From martin@duskware.de  Mon Feb 28 19:13:56 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 9D93C1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 28 Feb 2022 19:13:56 +0000 (UTC)
Date: Mon, 28 Feb 2022 20:13:53 CET
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: something wrong with libstdc++ (symbol version issue?)
X-Send-Pr-Version: 3.95

>Number:         56734
>Category:       toolchain
>Synopsis:       something wrong with libstdc++ (symbol version issue?)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 28 19:15:00 +0000 2022
>Closed-Date:    Mon Feb 13 18:38:45 +0000 2023
>Last-Modified:  Mon Feb 13 18:38:45 +0000 2023
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.93
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD supremacy.duskware.de 9.99.93 NetBSD 9.99.93 (OCTEON) #12: Mon Feb 28 16:02:56 CET 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/evbmips/compile/OCTEON evbmips
Architecture: mipsn64eb
Machine: evbmips
>Description:

Trying to run some c++ programs on 64bit mips fails, example is atf-run(1):

[/tmp] martin@supremacy > atf-run
atf-run: Undefined symbol "_ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffElSt12_Ios_SeekdirSt13_Ios_Openmode" (symnum = 484)
[/tmp] martin@supremacy > echo "_ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffElSt12_Ios_SeekdirSt13_Ios_Openmode" | c++filt
_ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffElSt12_Ios_SeekdirSt13_Ios_Openmode
std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
[/tmp] martin@supremacy > nm -C /usr/lib/libstdc++.so.9.0 | fgrep basic_streambuf | fgrep ::seekoff
00000000001492c0 W std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
00000000001493c0 W std::basic_streambuf<wchar_t, std::char_traits<wchar_t> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
[/tmp] martin@supremacy >



>How-To-Repeat:
s/a

>Fix:
n/a

>Release-Note:

>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: toolchain-manager@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org
Subject: re: toolchain/56734: something wrong with libstdc++ (symbol version issue?)
Date: Tue, 01 Mar 2022 06:26:03 +1100

 > [/tmp] martin@supremacy > atf-run
 > atf-run: Undefined symbol "_ZNSt15basic_streambufIcSt11char_traitsIcEE7s=
 eekoffElSt12_Ios_SeekdirSt13_Ios_Openmode" (symnum =3D 484)
 > [/tmp] martin@supremacy > echo "_ZNSt15basic_streambufIcSt11char_traitsI=
 cEE7seekoffElSt12_Ios_SeekdirSt13_Ios_Openmode" | c++filt
 > _ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffElSt12_Ios_SeekdirSt1=
 3_Ios_Openmode
 > std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::=
 _Ios_Seekdir, std::_Ios_Openmode)
 > [/tmp] martin@supremacy > nm -C /usr/lib/libstdc++.so.9.0 | fgrep basic_=
 streambuf | fgrep ::seekoff
 > 00000000001492c0 W std::basic_streambuf<char, std::char_traits<char> >::=
 seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
 > 00000000001493c0 W std::basic_streambuf<wchar_t, std::char_traits<wchar_=
 t> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)
 > [/tmp] martin@supremacy >

 i suspect some weird bad build issue.  i don't see this on my
 4 weeks ago mips64eb build:

 transitions ~> echo _ZNSt15basic_streambufIcSt11char_traitsIcEE7seekoffElS=
 t12_Ios_SeekdirSt13_Ios_Openmode | c++filt
 std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_I=
 os_Seekdir, std::_Ios_Openmode)
 transitions ~> l /usr/bin/c++filt
 -r-xr-xr-x  1 root  wheel  198832 Jan 28 01:13 /usr/bin/c++filt*

 ie, the demangler seems busted..

 i'll update my er4 and see what happens.


 .mrg.

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Mon, 13 Feb 2023 18:38:45 +0000
State-Changed-Why:
Local issue (/usr/lib/64/ existed and had old content)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.