From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: [PATCH] Add MOSAIK. Date: Tue, 27 Oct 2015 13:51:08 +0100 Message-ID: References: <87a8reyhz0.fsf@gnu.org> <20151023080219.GB7097@debian> <20151027134249.00f6d318@debian-netbook> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3ih-0003Re-3g for guix-devel@gnu.org; Tue, 27 Oct 2015 08:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr3id-0002Bm-Nx for guix-devel@gnu.org; Tue, 27 Oct 2015 08:51:18 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:58785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr3id-0002Be-Dw for guix-devel@gnu.org; Tue, 27 Oct 2015 08:51:15 -0400 In-Reply-To: <20151027134249.00f6d318@debian-netbook> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Efraim Flashner Cc: guix-devel Efraim Flashner writes: > On Fri, 23 Oct 2015 10:42:49 +0200 > Ricardo Wurmus wrote: > >> > Mosaik fails on all architectures except for x86_64. Should it be di= sabled >> > or are there configure flags to make it work elsewhere? =20 >>=20 >> I think this is caused by =E2=80=98includes/linux.inc=E2=80=99, which = is unconditionally >> included by default. >>=20 >> Disabling the line >>=20 >> include includes/$(BLD_PLATFORM).inc >>=20 >> should be sufficient to fix this. >>=20 >> Alternatively, we could set BLD_PLATFORM (to something other than just >> =E2=80=9Clinux=E2=80=9D on non-x86_64) and patch =E2=80=9Cinclude=E2=80= =9D to read =E2=80=9C-include=E2=80=9D, so that >> it doesn=E2=80=99t cause an error when the file does not exist. >>=20 >> That=E2=80=99s what the attached patch does. >>=20 > > I ran `./pre-inst-env guix build -s i686-linux mosaik` and the build fa= iled for me. I can confirm this. Too bad. The reason is that =E2=80=9Cssw.c=E2=80=9D= uses macros from emmintrin.h that are always inlined. Inlining fails here due to =E2=80=9Ctarget specific option mismatch=E2=80=9D. Does this only happen when cross-compiling or will this also happen if it=E2=80=99s built natively on i686? ~~ Ricardo