Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2018 00:33:23 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Jan Beich <jbeich@FreeBSD.org>
Cc:        Mark Millard <marklmi@yahoo.com>, FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>
Subject:   Re: On a powerpc64, system-clang crashes on audio/alsa-lib 's control.lo : "error in backend: A @@ version cannot be undefined"
Message-ID:  <B00CE5BA-452A-4752-8168-A87DDD5FC3C9@FreeBSD.org>
In-Reply-To: <8t33-9v5q-wny@FreeBSD.org>
References:  <1B7575F6-ED4D-42FE-BD51-B976F21B7CA6@yahoo.com> <8t33-9v5q-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 12 Oct 2018, at 15:00, Jan Beich <jbeich@FreeBSD.org> wrote:
> 
> Mark Millard <marklmi@yahoo.com> writes:
>> The following is on a powerpc64 machine (old PowerMac G5 so-called
>> "Quad Core") running a personal build of head -r339076 that was
>> built via devel/powerpc64-xtoolchain-gcc and such (no gcc 4.2.1).
>> The compiler for the port build is system-clang (so clang 6 as cc),
>> not used for buildworld buildkernel. [I experiment with more modern
>> compilers and toolchains for some powerpc family members.]
> [...]
>> /bin/sh ../../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H
>> -I. -I../../include -I../../include -I/usr/ports/audio/alsa-lib/files
>> -O2 -pipe -g -fno-strict-aliasing -MT control.lo -MD -MP -MF
>> .deps/control.Tpo -c -o control.lo control.c
> [...]
>> fatal error: error in backend: A @@ version cannot be undefined
...
> and can be further reduced to
> 
>  int main()
>  {
>    __asm__ (".symver __foo,foo@@FOO");
>    __asm__ (".symver .__foo,.foo@@FOO");
>  }

Submitted as https://bugs.llvm.org/show_bug.cgi?id=39270, though
upstream alsa-lib seems to have dropped this powerpc64 specific
workaround:

http://git.alsa-project.org/?p=alsa-lib.git;a=commit;h=3bad0a21b4d13d8d10691f382c836897fa7a7cb9

You might want to try if that also works for you.

-Dimitry


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW8EhMwAKCRCwXqMKLiCW
o/qHAKCBM+r/K4IMa4bJSkYbP1vgn2DLaACfZUsEsi5Td1e4eV2xAuydncfW49I=
=3S57
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B00CE5BA-452A-4752-8168-A87DDD5FC3C9>