https://sourceware.org/bugzilla/show_bug.cgi?id=30072

--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
> It looks like the other way around (but the test-suite.log is confusing).
> Could you check whether configure detected DEMANGLE support?
> 
>     libstdc++ demangle support         : yes

Yes, I really miss it:

configure:8679: checking for __cxa_demangle in -lstdc++
configure:8702: gcc -o conftest -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects
-Werror=date-time -g  -flto=auto -ffat-lto-objects conftest.c -lstdc++   >&5
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
configure:8702: $? = 1
configure: failed program was:

Oh, apparently my spec file has not BuildRequires of the gcc-c++ package.
Adding that, all is green.

> 
> If not, then the fix would be:
> 
> diff --git a/tests/run-addr2line-C-test.sh b/tests/run-addr2line-C-test.sh
> index 8c63d78d..1780157d 100755
> --- a/tests/run-addr2line-C-test.sh
> +++ b/tests/run-addr2line-C-test.sh
> @@ -18,6 +18,11 @@
>  
>  . $srcdir/test-subr.sh
>  
> +if test -n "$ELFUTILS_DISABLE_DEMANGLE"; then
> +  echo "demangler unsupported"
> +  exit 77
> +fi
> +
>  # See run-addr2line-i-test.sh
>  testfiles testfile-inlines

This would fix it as well..

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to