From owner-freebsd-ppc@freebsd.org Fri Oct 12 22:33:36 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1158B10CD1CB; Fri, 12 Oct 2018 22:33:36 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9566A79413; Fri, 12 Oct 2018 22:33:35 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D97333A352; Sat, 13 Oct 2018 00:33:27 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_75297E3E-55E8-49FC-91C0-B17BC9CB6C87"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: On a powerpc64, system-clang crashes on audio/alsa-lib 's control.lo : "error in backend: A @@ version cannot be undefined" Date: Sat, 13 Oct 2018 00:33:23 +0200 In-Reply-To: <8t33-9v5q-wny@FreeBSD.org> Cc: Mark Millard , FreeBSD Toolchain , FreeBSD PowerPC ML To: Jan Beich References: <1B7575F6-ED4D-42FE-BD51-B976F21B7CA6@yahoo.com> <8t33-9v5q-wny@FreeBSD.org> X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 22:33:36 -0000 --Apple-Mail=_75297E3E-55E8-49FC-91C0-B17BC9CB6C87 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 12 Oct 2018, at 15:00, Jan Beich wrote: >=20 > Mark Millard 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=3DCC --mode=3Dcompile 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 >=20 > int main() > { > __asm__ (".symver __foo,foo@@FOO"); > __asm__ (".symver .__foo,.foo@@FOO"); > } Submitted as https://bugs.llvm.org/show_bug.cgi?id=3D39270, though upstream alsa-lib seems to have dropped this powerpc64 specific workaround: = http://git.alsa-project.org/?p=3Dalsa-lib.git;a=3Dcommit;h=3D3bad0a21b4d13= d8d10691f382c836897fa7a7cb9 You might want to try if that also works for you. -Dimitry --Apple-Mail=_75297E3E-55E8-49FC-91C0-B17BC9CB6C87 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCW8EhMwAKCRCwXqMKLiCW o/qHAKCBM+r/K4IMa4bJSkYbP1vgn2DLaACfZUsEsi5Td1e4eV2xAuydncfW49I= =3S57 -----END PGP SIGNATURE----- --Apple-Mail=_75297E3E-55E8-49FC-91C0-B17BC9CB6C87--