From owner-freebsd-arm@freebsd.org Mon May 8 11:08:45 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7C5DD62265 for ; Mon, 8 May 2017 11:08:45 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3E93A1453 for ; Mon, 8 May 2017 11:08:45 +0000 (UTC) (envelope-from melounmichal@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id m123so60675428wma.0 for ; Mon, 08 May 2017 04:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:subject:to:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=xl+mUVtOrga9RdejPmT56eMmh1R3lr5NGUkHm0nI9k8=; b=B09ur4+b8D3PgvJvXkg+Q3p9hSJeRoA9DeY7WEpmolEWLwuzO4TBfMHUhMB6EEU2+Y ltnHHs5i7UeMU/3FPdFDG6Vh0OngVT7gDaae8gYUeDenw56ml/sNd6WVnfxlUeWtojoU NYANgiAw83zg5mTd/vdbZ4tF7yHA+3JFYqei223i9Wj0aO+hCs4kYAFMedvwBMxasWWB BjLBpR30bsrX8Go0W1Gklr22dbLaI419peVrHcVRWXZEyCJFSi9kzZEDSHMUAGqEIkxi b8AMHP77pExwUg677qc3P6NJusLSRalqurUatgV9cADTYLIhEnj2UpESXdLZgtsR4EWi O5Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:subject:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xl+mUVtOrga9RdejPmT56eMmh1R3lr5NGUkHm0nI9k8=; b=jtR+a+MAbEhDgzwXDxvSnKrYfK5HxJLN8s8bHRBLuMzoRvr09YOROhxoMsWtnZuNLo LjXKxck0LprUHzmm/BFVRct3zbdQb7w5uAboK9sQoflDHsOmurNL9ZmZV5DHtJPgu0ti UA1RGo3lR99f1njwvXRaZqEm3Q/LDR61G4DKsWYR3qg3NMZ50ELiEdIjRpLuNToGHMk7 oJXa9YZc/VgfFOLm9FCm1awIAj+KzVJM45xjbfBFFVFh73wNsnDm3p2y+cYSZsLGeP4G tDRN3yxUtEW4RGTSnIrQ782NfbAxPc+eLWyNNERY2QqKC66khy/b/SzRfPMaRmsDalVj g5+w== X-Gm-Message-State: AODbwcCeEajdpxSoK6MOuSLnGhZEByPvA8A/V5x+qIdupD3EtKkWVK6s 7cTmMIio4j4uNy0HeyY= X-Received: by 10.28.167.197 with SMTP id q188mr12059513wme.79.1494241722496; Mon, 08 May 2017 04:08:42 -0700 (PDT) Received: from [88.208.79.100] (halouny.humusoft.cz. [88.208.79.100]) by smtp.gmail.com with ESMTPSA id x17sm9844790wrd.63.2017.05.08.04.08.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 May 2017 04:08:42 -0700 (PDT) From: Michal Meloun X-Google-Original-From: Michal Meloun Reply-To: mmel@freebsd.org Subject: Re: www/firefox, Error: garbage following instruction...was: Re: RPI2, www/firefox, error: "NEON support not enabled" To: freebsd-arm@freebsd.org References: <20170505151339.GA51255@www.zefox.net> <962F9C0D-C7C8-4940-A381-B3097FD2A138@dsl-only.net> <20170505182838.GB51255@www.zefox.net> <078B736E-4807-42C7-B6A5-656F3A50DAEB@dsl-only.net> <20170505230106.GA52464@www.zefox.net> <20170506050140.GA54543@www.zefox.net> <20170508033331.GA61772@www.zefox.net> <80D06D70-8534-456C-A66F-CDD4CE0D5811@FreeBSD.org> Message-ID: <7306a091-1350-d6cb-b329-c56f2d80c0bf@freebsd.org> Date: Mon, 8 May 2017 13:08:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <80D06D70-8534-456C-A66F-CDD4CE0D5811@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 May 2017 11:08:46 -0000 On 08.05.2017 10:56, Dimitry Andric wrote: > On 8 May 2017, at 05:33, bob prohaska wrote: >> >> On Fri, May 05, 2017 at 10:01:40PM -0700, bob prohaska wrote: >>> It appears that using >>> make CFLAGS='-mcpu=cortex-a7' >>> is sufficient to get past the NEON not enabled error. >>> >> >> The next problem appears to be >> >> >> /usr/ports/www/firefox/work/firefox-53.0.2/media/openmax_dl/dl/sp/src/armSP_FFT_CToC_FC32_Radix4_ls_unsafe_s.S:335: Error: garbage following instruction -- `vmov Q7.F32,Q0.F32' >> cc: error: assembler command failed with exit code 1 (use -v to see invocation) >> gmake[6]: *** [/usr/ports/www/firefox/work/firefox-53.0.2/config/rules.mk:990: armSP_FFT_CToC_FC32_Radix4_ls_unsafe_s.o] Error 1 >> gmake[5]: *** [/usr/ports/www/firefox/work/firefox-53.0.2/config/recurse.mk:71: media/openmax_dl/dl/target] Error 2 >> >> Is this worth a bug report, or is firefox too far over the horizon >> for freebsd-arm? >> >> Thanks for reading, and any guidance. > > This is actually an error message from the GNU assembler, which is > invoked by the compiler driver. Can you figure out whether it is the > base version (/usr/bin/as) or the ports version (/usr/local/bin/as)? > E.g. manually run that command line with -v, so see which assembler it > runs. > > Also, I wonder why they don't use the integrated assembler in clang, but > that is an aspect of the firefox port I'm not familiar with. > > -Dimitry > It's from base (buggy, outdated) GNU assembler, gas from ports can compile affected file without problem. The integrated clang assembler cannot be used because Mozilla extensive uses macros in assembly code, and macros are not supported by clang. Moreover, many pieces of assembly files still uses pre-UAL syntax. Unfortunately, replacing base as (by the one from port) is not sufficient - the Mozilla build system doesn't pass external CFLAGS to assembly files (.S), so build fails again later. Michal